USB Cam working in vlc xawtv cheese etc. not in ZM [SOLVED]
Posted: Sat Mar 06, 2010 7:07 am
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)...
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)...