Page 1 of 1

Fedora 14, Create Live! Cam Vista IM, ZM 1.24.2 not working

Posted: Mon Jun 27, 2011 10:49 pm
by MagicUK
Hi all,

After much Googling etc. I cannot find a solution to my problem, so I was wondering if anyone can help me out?

System specs:

Fedora 14 (64 bit)
ZoneMinder 1.24.2-6 (RPM install)
Create Live! Cam Vista IM web cam (USB, /dev/video0)

I have tested the web cam with Cheese and it works fine.

However, when running, ZoneMonitor it is unable to use the web cam:

Code: Select all

# zmu -d /dev/video0 -V 2 -q -v
Error, failed to query crop capabilities /dev/video0: Invalid argument
When using strace to work out what's going on, I get the following trace:

Code: Select all

open("/dev/video0", O_RDWR)             = 6
ioctl(6, VIDIOC_QUERYCAP or VT_OPENQRY, 0x7fff639cd890) = 0
ioctl(6, VIDIOC_ENUMSTD, 0x7fff639cd950) = -1 EINVAL (Invalid argument)
ioctl(6, VIDIOC_ENUM_FMT or VT_SETMODE, 0x7fff639cd9a0) = 0
ioctl(6, VIDIOC_ENUM_FMT or VT_SETMODE, 0x7fff639cd9a0) = -1 EINVAL (Invalid argument)
ioctl(6, VIDIOC_CROPCAP or VIDIOC_CROPCAP_OLD, 0x7fff639cc800) = -1 EINVAL (Invalid argument)
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3661, ...}) = 0
timer_gettime(0x43e00d, 0x7fff639cc5e8) = -1 EINVAL (Invalid argument)
sendto(3, "<139>Jun 27 23:48:24 zmu[15721]:"..., 90, MSG_NOSIGNAL, NULL, 0) = 90
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0919071000
write(1, "error22\n", 8error22
)                = 8
write(5, "06/27/11 23:48:24.705560 zmu[-1]"..., 230) = 230
exit_group(-1) 
Any ideas what I need to do to get ZoneMinder to work with my web cam?

Thanks in advance for any assistance,

Neil.

Re: Fedora 14, Create Live! Cam Vista IM, ZM 1.24.2 not work

Posted: Tue Jun 28, 2011 6:09 am
by mastertheknife
Hi,

Please try 320x240 (increase later), YUYV and PAL. These settings should give you an image in most webcams.

mastertheknife

Re: Fedora 14, Create Live! Cam Vista IM, ZM 1.24.2 not work

Posted: Tue Jun 28, 2011 8:28 pm
by MagicUK
Hi,

Thanks for your reply.

I have tried the settings you suggested, but alas, no image.

The zmdc log has the following errors:

Code: Select all

06/28/2011 21:23:17.033182 zmdc[25520].INF [Starting pending process, zmc -d /dev/video0]
06/28/2011 21:23:17.036436 zmdc[25520].INF ['zmc -d /dev/video0' starting at 11/06/28 21:23:17, pid = 25604]
06/28/2011 21:23:17.366936 zmdc[25520].ERR ['zmc -d /dev/video0' exited abnormally, exit status 11]
If I switch to using V4Lv1, then I get the following errors in the zmdc log:

Code: Select all


06/28/2011 21:27:07.381911 zmdc[25520].INF ['zmc -d /dev/video0' starting at 11/06/28 21:27:07, pid = 25668]
06/28/2011 21:27:07.482311 zmdc[25520].ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
06/28/2011 21:27:07.947972 zmdc[25520].WAR [Can't find process with command of 'zma -m 3']
Any ideas?

Cheers,

Neil.

Re: Fedora 14, Create Live! Cam Vista IM, ZM 1.24.2 not work

Posted: Tue Jun 28, 2011 8:35 pm
by MagicUK
Further to my last post, I have found the debug logs in case this helps:

Code: Select all

06/28/11 21:33:51.132060 zmc_dvideo0[-1].INF-zm_debug.c/292 [New Debug Level = 0, New Debug Log = /tmp/zm_debug.log.25804]
06/28/11 21:33:51.162238 zmc_dvideo0[-1].INF-zmc.cpp/188 [Starting Capture]
06/28/11 21:33:51.163479 zmc_dvideo0[-1].WAR-zm_local_camera.cpp/1279 [Hue control is not suppported]
06/28/11 21:33:51.163794 zmc_dvideo0[-1].WAR-zm_local_camera.cpp/1336 [Saturation control is not suppported]
06/28/11 21:33:51.451228 zmc_dvideo0[-1].INF-zm_signal.cpp/72 [Got signal 11 (Segmentation fault), crashing]
06/28/11 21:33:51.451370 zmc_dvideo0[-1].ERR-zm_signal.cpp/90 [Signal address is 0x10216, no eip]
06/28/11 21:33:51.451761 zmc_dvideo0[-1].ERR-zm_signal.cpp/122 [Backtrace: /lib64/libpthread.so.0() [0x39b700eeb0]]
06/28/11 21:33:51.451862 zmc_dvideo0[-1].ERR-zm_signal.cpp/122 [Backtrace: /usr/bin/zmc() [0x41939c]]
06/28/11 21:33:51.451918 zmc_dvideo0[-1].ERR-zm_signal.cpp/122 [Backtrace: /usr/bin/zmc() [0x4226a6]]
06/28/11 21:33:51.451968 zmc_dvideo0[-1].ERR-zm_signal.cpp/122 [Backtrace: /usr/bin/zmc() [0x4057e1]]
06/28/11 21:33:51.452018 zmc_dvideo0[-1].ERR-zm_signal.cpp/122 [Backtrace: /lib64/libc.so.6(__libc_start_main+0xfd) [0x39b6c1ee5d]]
06/28/11 21:33:51.452068 zmc_dvideo0[-1].ERR-zm_signal.cpp/122 [Backtrace: /usr/bin/zmc() [0x405039]]
06/28/11 21:33:51.452117 zmc_dvideo0[-1].INF-zm_signal.cpp/125 [Backtrace complete, please execute the following command for more information]
06/28/11 21:33:51.452165 zmc_dvideo0[-1].INF-zm_signal.cpp/126 [addr2line -e /usr/bin/zmc() 0x39b700eeb0 0x41939c 0x4226a6 0x4057e1 0x39b6c1ee5d 0x405039]

Re: Fedora 14, Create Live! Cam Vista IM, ZM 1.24.2 not work

Posted: Tue Jun 28, 2011 11:18 pm
by MagicUK
Well, I've spent quite a bit of time trying a build from the latest source: 1.24.4.

I uninstalled the 1.24.2 RPM and got the source build to install, but again I have the same problems.

After doing some more Googling, I found a patch for zm_local_camera.cpp. I have tried to post the URL here, but the forum software says: "Your post looks too spamy for a new user, please remove off-site URLs." Argh!!

Here's the patch:

Code: Select all

911,912c911 
<        int crop_rc = vidioctl( vid_fd, VIDIOC_G_CROP, &crop ); 
<             if ((crop_rc  < 0 ) && (errno != EINVAL)) 
--- 
>             if ( vidioctl( vid_fd, VIDIOC_G_CROP, &crop ) < 0 ) 
921,928c920,921 
<             if ( verbose ) { 
<       if (crop_rc >= 0) { 
<                    sprintf( output+strlen(output), "  Current: %d x %d\n", crop.c.width, crop.c.height ); 
<       } 
<       else { 
<          sprintf( output+strlen(output), "  Current: Cropping is not supported\n"); 
<       } 
<        } 
--- 
>             if ( verbose ) 
>                 sprintf( output+strlen(output), "  Current: %d x %d\n", crop.c.width, crop.c.height );
I applied the patch and now I can get my PS3 Eye to work with ZoneMinder (it didn't work before the patch was applied), but the "Creative Live! Cam Vista IM" still refuses to work.

Here's the output from zmu:

Code: Select all

/opt/zoneminder/1.24.4/bin/zmu -d /dev/video0 -v -q
Video Device: /dev/video0
General Capabilities
  Driver: ov519
  Card: Creative Live! Cam Vista IM
  Bus: usb-0000:00:1d.0-2
  Version: 2.12.0
  Type: 0x5000001
    Supports video capture (X)
    Does not support video output
    Does not support frame buffer overlay
    Does not support VBI capture
    Does not support VBI output
    Does not support sliced VBI capture
    Does not support sliced VBI output
    Does not support video output overlay
    Does not have tuner
    Does not have audio in and/or out
    Does not have radio
    Supports read/write i/o (X)
    Does not support async i/o
    Supports streaming i/o (X)
    Standards:
  Formats:
    JPEG (JPEG)
Crop Capabilities
  Bounds: 0 x 0
  Default: 0 x 0
Inputs: 1
  Input 0
    Name: ov519
    Type: Camera
    Audioset: 00000000
    Standards: 0x0
    Power on  (X)
    Signal detected  (X)
    Colour Signal detected
    Horizontal Lock detected
I have tried setting the colour palette to "JPEG" instead of "YUYV", but it makes no difference. The error reported in the zmc log is:

Code: Select all

06/29/2011 00:15:15.005239 zmdc[5854].INF ['zmc -d /dev/video0' starting at 11/06/29 00:15:15, pid = 6568]
06/29/2011 00:15:15.084625 zmdc[5854].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Any ideas?

Cheers,

Neil.