Hi - i am fairly new to linux and new to Zoneminder - I have a 046d:08da Logitech, Inc. QuickCam Messanger camera that I am trying to get working with ZoneMinder. The camera works fine in vlc, cheese, xawtv, anything else I have tried it in... (the camera in all these is under /dev/video0)
I am running Fedora Core 12 and Zoneminder 1.24.2-3
# uname -r ----> 2.6.31.12-174.2.22.fc12.i686
# rpm -qa | grep zoneminder -----> zoneminder-1.24.2-3.fc12.i686
When the I type in my source settings (listed below) in the Web Interface, the Monitor comes up orange (in monitor mode) and the source turns red.
I thought it may be a permission issue so i ran a #chmod a+rw /dev/video0
also i increased the shared memory:
#echo 30000000>/proc/sys/kernel/shmall
#echo 30000000>/proc/sys/kernel/shmmax
(i know just temporary but didn't want permanent until i got it functioning, in case i screwed something up.
Here are some outputs and info for my settings:
[root@localhost]# zmu -d /dev/video0 -q -v -V 1
Video Device: /dev/video0
Video Capabilities
Name: USB Camera (046d:08da)
Type: 1
Can capture
Video Channels: 1
Audio Channels: 0
Maximum Width: 640
Maximum Height: 480
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 320
Height: 240
Picture Attributes
Palette: 0 - Unknown
Colour Depth: 8
Brightness: 32896
Hue: 0
Colour :0
Contrast: 32768
Whiteness: 39321
Channel 0 Attributes
Name: zc3xx
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 0 – PAL
In my Web Interface source settings:
Device path: /dev/video0
Capture Method Video For Linux version 2
Device Channel 0
Device Format PAL
Capture Palette RGB24
Capture Width (pixels) 320
Capture Height (pixels) 240
Preserve Aspect Ratio unchecked
Orientation Normal
/var/log/messages:
Mar 5 22:53:51 localhost zmdc[4624]: INF [Starting pending process, zmc -d /dev/video0]
Mar 5 22:53:51 localhost zmdc[4833]: INF ['zmc -d /dev/video0' started at 10/03/05 22:53:51]
Mar 5 22:53:51 localhost zmdc[4624]: INF ['zmc -d /dev/video0' starting at 10/03/05 22:53:51, pid = 4833]
Mar 5 22:53:51 localhost zmc_dvideo0[4833]: INF [Debug Level = 0, Debug Log = <none>]
Mar 5 22:53:51 localhost zmc_dvideo0[4833]: INF [Starting Capture]
Mar 5 22:53:51 localhost zmc_dvideo0[4833]: WAR [Hue control is not suppported]
Mar 5 22:53:51 localhost zmc_dvideo0[4833]: WAR [Saturation control is not suppported]
Mar 5 22:53:52 localhost kernel: zc3xx: probe 2wr ov vga 0x0000
Mar 5 22:53:53 localhost zmc_dvideo0[4833]: INF [Got signal 11 (Segmentation fault), crashing]
Mar 5 22:53:53 localhost zmc_dvideo0[4833]: ERR [Signal address is 0xb7719000, from 0xb1b546]
Mar 5 22:53:53 localhost zmc_dvideo0[4833]: ERR [Backtrace: /lib/libc.so.6(memcpy+0x46) [0xb1b546]]
Mar 5 22:53:53 localhost zmc_dvideo0[4833]: ERR [Backtrace: /lib/libc.so.6(memcpy+0x46) [0xb1b546]]
Mar 5 22:53:53 localhost zmc_dvideo0[4833]: ERR [Backtrace: /usr/bin/zmc() [0xbfc7924]]
Mar 5 22:53:53 localhost zmc_dvideo0[4833]: ERR [Backtrace: /usr/bin/zmc() [0x806cc55]]
Mar 5 22:53:53 localhost zmc_dvideo0[4833]: ERR [Backtrace: /usr/bin/zmc() [0x804c094]]
Mar 5 22:53:53 localhost zmc_dvideo0[4833]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xe6) [0xab9bb6]]
Mar 5 22:53:53 localhost zmc_dvideo0[4833]: ERR [Backtrace: /usr/bin/zmc() [0x804b911]]
Mar 5 22:53:53 localhost zmc_dvideo0[4833]: INF [Backtrace complete, please execute the following command for more information]
Mar 5 22:53:53 localhost zmc_dvideo0[4833]: INF [addr2line -e /usr/bin/zmc() 0xb1b546 0xb1b546 0xbfc7924 0x806cc55 0x804c094 0xab9bb6 0x804b911]
Mar 5 22:53:53 localhost zmdc[4624]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 11]
As the FAQ says (if you have Backtrace errors in the log…)
[root@localhost]# addr2line -e /usr/bin/zmc 0xbfc7924 0x806cc55 0x804c094 0x804b911
??:0
??:0
??:0
??:0
....nothing useful here
[root@localhost]# tail zmdc.log
03/05/2010 23:41:01.171100 zmdc[5542].ERR ['zmc -d /dev/video0' exited abnormally, exit status 11]
03/05/2010 23:41:21.094783 zmdc[5542].INF [Starting pending process, zmc -d /dev/video0]
03/05/2010 23:41:21.103290 zmdc[5542].INF ['zmc -d /dev/video0' starting at 10/03/05 23:41:21, pid = 5594]
Any info would be amazing! Thanks in advance - I hope to hear from someone soon --- so unbelievably frustrating when it seems it should be working (as I'm sure you all know)...
USB Cam working in vlc xawtv cheese etc. not in ZM [SOLVED]
-
- Posts: 4
- Joined: Sat Mar 06, 2010 6:48 am
USB Cam working in vlc xawtv cheese etc. not in ZM [SOLVED]
Last edited by forsberg94 on Sun Mar 07, 2010 6:56 am, edited 1 time in total.
-
- Posts: 4
- Joined: Sat Mar 06, 2010 6:48 am
Got It Working!
So it seemed to be a few things – I raised the shared memory in the kernel (didn’t seem to be working from just doing:
#echo 30000000>/proc/sys/kernel/shmall
#echo 30000000>/proc/sys/kernel/shmmax
So instead I edited the /etc/syctl.conf and it actually raised it.
Also edited the /usr/bin/zmdc.pl file to preload the libv4l-0 package
The following is how I got zoneminder to work with a Logitech, Inc. Quickcam Messenger (046d:08da):
# yum install zoneminder
# mysql –u root –p ‘enter_mysql_root_password_here’
once logged into mysql:
# mysql> source /usr/share/zoneminder/db/zm_create.sql
Now database and users are created
I had to give my camera permissions:
#chmod a+rw /dev/video0
Edit /etc/httpd/conf.d/zoneminder.conf – delete the line it says to delete
Now have permission to log into ‘http://localhost/zm’ and should be able to see the zoneminder Web User Interface (WUI)
If all you see is a blank white page when you go to this website edit this:
# gedit /etc/php.ini
Change the line 'short_open_tag = Off' >> to 'short_open_tag = On'
Then run:
# service httpd restart
And try to access ‘http://localhost/zm’ again
Edit /etc/sysctl.conf -- this is to raise shared memory
Increasing shared memory may not be necessary (you can try without first)
Add these lines to the bottom/end of this file:
kernel.shmall = 268435456
kernel.shmmax = 268435456
Edit /usr/bin/zmdc.pl
Just above ‘my @daemons’ -- below the other ENV’s and above the ‘delete’
Add:
$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l1compat.so';
This preloads the libv4l-0 package
Now login to ‘http://localhost/zm’
Add New Monitor: use the settings found from the following command:
Run this command to find settings for your camera (where /dev/video0 is the path to your device)
# zmu -d /dev/video0 -q –v
if that gives you an error try this one:
# zmu -d /dev/video0 -q -v -V1
My settings were as follows for a Logitech, Inc. Quickcam Messenger (046d:08da)
General: fill out name and function and sourcetype as local. I have no FPS settings for both FPS inputs
Source: Path = /dev/video0
Capture Method: Video For Linux version 2
Device Channel: 0
Device Format: PAL
Capture Palette: RGB24
Capture Width (pixels): 320
Capture Height (pixels): 240 -- try these height and width first then you can raise according to the command run above)
So it seemed to be a few things – I raised the shared memory in the kernel (didn’t seem to be working from just doing:
#echo 30000000>/proc/sys/kernel/shmall
#echo 30000000>/proc/sys/kernel/shmmax
So instead I edited the /etc/syctl.conf and it actually raised it.
Also edited the /usr/bin/zmdc.pl file to preload the libv4l-0 package
The following is how I got zoneminder to work with a Logitech, Inc. Quickcam Messenger (046d:08da):
# yum install zoneminder
# mysql –u root –p ‘enter_mysql_root_password_here’
once logged into mysql:
# mysql> source /usr/share/zoneminder/db/zm_create.sql
Now database and users are created
I had to give my camera permissions:
#chmod a+rw /dev/video0
Edit /etc/httpd/conf.d/zoneminder.conf – delete the line it says to delete
Now have permission to log into ‘http://localhost/zm’ and should be able to see the zoneminder Web User Interface (WUI)
If all you see is a blank white page when you go to this website edit this:
# gedit /etc/php.ini
Change the line 'short_open_tag = Off' >> to 'short_open_tag = On'
Then run:
# service httpd restart
And try to access ‘http://localhost/zm’ again
Edit /etc/sysctl.conf -- this is to raise shared memory
Increasing shared memory may not be necessary (you can try without first)
Add these lines to the bottom/end of this file:
kernel.shmall = 268435456
kernel.shmmax = 268435456
Edit /usr/bin/zmdc.pl
Just above ‘my @daemons’ -- below the other ENV’s and above the ‘delete’
Add:
$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l1compat.so';
This preloads the libv4l-0 package
Now login to ‘http://localhost/zm’
Add New Monitor: use the settings found from the following command:
Run this command to find settings for your camera (where /dev/video0 is the path to your device)
# zmu -d /dev/video0 -q –v
if that gives you an error try this one:
# zmu -d /dev/video0 -q -v -V1
My settings were as follows for a Logitech, Inc. Quickcam Messenger (046d:08da)
General: fill out name and function and sourcetype as local. I have no FPS settings for both FPS inputs
Source: Path = /dev/video0
Capture Method: Video For Linux version 2
Device Channel: 0
Device Format: PAL
Capture Palette: RGB24
Capture Width (pixels): 320
Capture Height (pixels): 240 -- try these height and width first then you can raise according to the command run above)
Code: Select all
$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l2compat.so';