Hi,
I have a Clone usb cam, but I it's not working in zoneminder
Here is some information:
.# /opt/zoneminder/bin/zmu -d /dev/video0 -q -v
Error, failed to query video capabilities /dev/video0: Invalid argument
[root@zoneminder-pv ~]# /opt/zoneminder/bin/zmu -d /dev/video0 -q -v -V 1
Video Device: /dev/video0
Video Capabilities
Name: STV0680
Type: 1
Can capture
Video Channels: 1
Audio Channels: 0
Maximum Width: 352
Maximum Height: 288
Minimum Width: 176
...
My /var/log/message
Mar 3 11:29:44 zoneminder-pv zmdc[1724]: INF [Starting pending process, zmc -d /dev/video0]
Mar 3 11:29:44 zoneminder-pv zmdc[17241]: INF ['zmc -d /dev/video0' started at 10/03/03 11:29:44]
Mar 3 11:29:44 zoneminder-pv zmdc[1724]: INF ['zmc -d /dev/video0' starting at 10/03/03 11:29:44, pid = 17241]
Mar 3 11:29:44 zoneminder-pv zmc_dvideo0[17241]: INF [Debug Level = 0, Debug Log = <none>]
Mar 3 11:29:44 zoneminder-pv zmc_dvideo0[17241]: INF [Starting Capture]
Mar 3 11:29:44 zoneminder-pv zmc_dvideo0[17241]: FAT [Failed to stat video device /dev/video0: No such file or directory]
Mar 3 11:29:44 zoneminder-pv zmc_dvideo0[17241]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Mar 3 11:29:44 zoneminder-pv zmc_dvideo0[17241]: ERR [Signal address is 0x206, no eip]
Mar 3 11:29:44 zoneminder-pv zmc_dvideo0[17241]: ERR [Backtrace: /lib64/libpthread.so.0 [0x3af740e930]]
Mar 3 11:29:44 zoneminder-pv zmc_dvideo0[17241]: ERR [Backtrace: /lib64/libc.so.6(gsignal+0x35) [0x3af6830265]]
Mar 3 11:29:44 zoneminder-pv zmc_dvideo0[17241]: ERR [Backtrace: /lib64/libc.so.6(abort+0x110) [0x3af6831d10]]
Mar 3 11:29:44 zoneminder-pv zmc_dvideo0[17241]: ERR [Backtrace: /opt/zoneminder/bin/zmc [0x40f07e]]
Mar 3 11:29:44 zoneminder-pv zmc_dvideo0[17241]: ERR [Backtrace: /opt/zoneminder/bin/zmc [0x41e96c]]
Mar 3 11:29:44 zoneminder-pv zmc_dvideo0[17241]: ERR [Backtrace: /opt/zoneminder/bin/zmc [0x41fbfd]]
Mar 3 11:29:44 zoneminder-pv zmc_dvideo0[17241]: ERR [Backtrace: /opt/zoneminder/bin/zmc(cos+0x580) [0x406a70]]
Mar 3 11:29:44 zoneminder-pv zmc_dvideo0[17241]: ERR [Backtrace: /lib64/libc.so.6(__libc_start_main+0xf4) [0x3af681d994]]
Mar 3 11:29:44 zoneminder-pv zmc_dvideo0[17241]: ERR [Backtrace: /opt/zoneminder/bin/zmc(cos+0x109) [0x4065f9]]
Mar 3 11:29:44 zoneminder-pv zmc_dvideo0[17241]: INF [Backtrace complete, please execute the following command for more information]
Mar 3 11:29:44 zoneminder-pv zmc_dvideo0[17241]: INF [addr2line -e /opt/zoneminder/bin/zmc(cos+0x109) 0x3af740e930 0x3af6830265 0x3af6831d10 0x40f07e 0x41e96c 0x41fbfd 0x406a70 0x3af681d994 0x4065f9]
Mar 3 11:29:44 zoneminder-pv zmdc[1724]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
Help?
Thanks in advance.
zmc -d /dev/video0' exited abnormally, exit status 6
-
- Posts: 4
- Joined: Sat Mar 06, 2010 6:48 am
Try this:
Edit the file: /usr/bin/zmdc.pl
Find the ‘my @daemons = (’ line.
Add this line:
I added this below the other ENV’s and above the ‘delete’ (Once you find the 'my @daemons' in this file you'll know where this is)
This preloads the libv4l-0 package
For me I added this line at line 62 in my zmdc.pl file.
Try that and post your logs again
Edit the file: /usr/bin/zmdc.pl
Find the ‘my @daemons = (’ line.
Add this line:
Code: Select all
$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l1compat.so';
This preloads the libv4l-0 package
For me I added this line at line 62 in my zmdc.pl file.
Try that and post your logs again
Same error:
Mar 8 10:26:11 zoneminder-pv kernel: drivers/media/video/stv680.c: [stv_init:374] STV(i): CIF is supported
Mar 8 10:26:12 zoneminder-pv kernel: drivers/media/video/stv680.c: [stv_init:392] STV(i): Camera has 0 pictures.
Mar 8 10:26:12 zoneminder-pv kernel: drivers/media/video/stv680.c: [stv_init:419] STV(i): Video Mode set to CIF
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: FAT [Failed to query video device: Invalid argument]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Signal address is 0x206, no eip]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /lib64/libpthread.so.0 [0x2b9e6a4ca930]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /lib64/libc.so.6(gsignal+0x35) [0x2b9e6b20b265]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /lib64/libc.so.6(abort+0x110) [0x2b9e6b20cd10]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /opt/zoneminder/bin/zmc [0x40f07e]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /opt/zoneminder/bin/zmc [0x41f7cd]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /opt/zoneminder/bin/zmc [0x41fbfd]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /opt/zoneminder/bin/zmc(cos+0x580) [0x406a70]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /lib64/libc.so.6(__libc_start_main+0xf4) [0x2b9e6b1f8994]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /opt/zoneminder/bin/zmc(cos+0x109) [0x4065f9]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: INF [Backtrace complete, please execute the following command for more information]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: INF [addr2line -e /opt/zoneminder/bin/zmc(cos+0x109) 0x2b9e6a4ca930 0x2b9e6b20b265 0x2b9e6b20cd10 0x40f07e 0x41f7cd 0x41fbfd 0x406a70 0x2b9e6b1f8994 0x4065f9]
Mar 8 10:26:15 zoneminder-pv zmdc[22130]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
Mar 8 10:26:15 zoneminder-pv zmdc[22130]: INF [Starting pending process, zmc -d /dev/video0]
Mar 8 10:26:15 zoneminder-pv zmdc[22221]: INF ['zmc -d /dev/video0' started at 10/03/08 10:26:15]
Mar 8 10:26:15 zoneminder-pv zmdc[22130]: INF ['zmc -d /dev/video0' starting at 10/03/08 10:26:15, pid = 22221]
Mar 8 10:26:15 zoneminder-pv zmc_dvideo0[22221]: INF [Debug Level = 0, Debug Log = <none>]
Mar 8 10:26:15 zoneminder-pv zmc_dvideo0[22221]: INF [Starting Capture]
I'll return to version 1.23.2
Mar 8 10:26:11 zoneminder-pv kernel: drivers/media/video/stv680.c: [stv_init:374] STV(i): CIF is supported
Mar 8 10:26:12 zoneminder-pv kernel: drivers/media/video/stv680.c: [stv_init:392] STV(i): Camera has 0 pictures.
Mar 8 10:26:12 zoneminder-pv kernel: drivers/media/video/stv680.c: [stv_init:419] STV(i): Video Mode set to CIF
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: FAT [Failed to query video device: Invalid argument]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Signal address is 0x206, no eip]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /lib64/libpthread.so.0 [0x2b9e6a4ca930]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /lib64/libc.so.6(gsignal+0x35) [0x2b9e6b20b265]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /lib64/libc.so.6(abort+0x110) [0x2b9e6b20cd10]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /opt/zoneminder/bin/zmc [0x40f07e]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /opt/zoneminder/bin/zmc [0x41f7cd]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /opt/zoneminder/bin/zmc [0x41fbfd]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /opt/zoneminder/bin/zmc(cos+0x580) [0x406a70]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /lib64/libc.so.6(__libc_start_main+0xf4) [0x2b9e6b1f8994]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: ERR [Backtrace: /opt/zoneminder/bin/zmc(cos+0x109) [0x4065f9]]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: INF [Backtrace complete, please execute the following command for more information]
Mar 8 10:26:14 zoneminder-pv zmc_dvideo0[22194]: INF [addr2line -e /opt/zoneminder/bin/zmc(cos+0x109) 0x2b9e6a4ca930 0x2b9e6b20b265 0x2b9e6b20cd10 0x40f07e 0x41f7cd 0x41fbfd 0x406a70 0x2b9e6b1f8994 0x4065f9]
Mar 8 10:26:15 zoneminder-pv zmdc[22130]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
Mar 8 10:26:15 zoneminder-pv zmdc[22130]: INF [Starting pending process, zmc -d /dev/video0]
Mar 8 10:26:15 zoneminder-pv zmdc[22221]: INF ['zmc -d /dev/video0' started at 10/03/08 10:26:15]
Mar 8 10:26:15 zoneminder-pv zmdc[22130]: INF ['zmc -d /dev/video0' starting at 10/03/08 10:26:15, pid = 22221]
Mar 8 10:26:15 zoneminder-pv zmc_dvideo0[22221]: INF [Debug Level = 0, Debug Log = <none>]
Mar 8 10:26:15 zoneminder-pv zmc_dvideo0[22221]: INF [Starting Capture]
I'll return to version 1.23.2
This worked with ubuntu 10.10, zm v1.24.2. I've been trying to get it to work for some time. I needed a headles unit and couldn't get vino to work wth larch. Live arch picked up the cameras right off the live disk but for the life of me I couldn't get vino to work. My preference was Ubuntu.
Thank you so much for posting this!
looking at the this line, from the log
Failed to stat video device /dev/video0: No such file or directory]
it looks like is not detecting the camera at all. In my case the /dev/video0 file was there but the monitor would stay red under the source list in zonminider.
thanks again
Thank you so much for posting this!
looking at the this line, from the log
Failed to stat video device /dev/video0: No such file or directory]
it looks like is not detecting the camera at all. In my case the /dev/video0 file was there but the monitor would stay red under the source list in zonminider.
thanks again