Page 1 of 1

Error, failed to query crop /dev/video: Invalid argument

Posted: Wed Jul 01, 2009 5:12 am
by Lotharyx
Hi. I just installed ZoneMinder 1.24.2 on a 64-bit CentOS 5.5 machine running kernel 2.6.18.

I have an Intel PC Camera Pro, and a brand-new Logitech QuickCam Orbit AF. Here's a dmesg snip from them being plugged in:

usb 1-1: new high speed USB device using ehci_hcd and address 5
usb 1-1: configuration #1 chosen from 1 choice
uvcvideo: Found UVC 1.00 device <unnamed> (046d:0994)
input: UVC Camera (046d:0994) as /class/input/input1
usbcore: registered new driver uvcvideo
USB Video Class driver (v0.1.0)
usbcore: registered new driver snd-usb-audio
usb 2-2: new full speed USB device using uhci_hcd and address 5
usb 2-2: configuration #1 chosen from 1 choice
gspca: probing 0733:0430
gspca: probe ok

Here's relevant output from lsusb:
Bus 001 Device 005: ID 046d:0994 Logitech, Inc. QuickCam Orbit/Sphere AF
Bus 002 Device 005: ID 0733:0430 ViewQuest Technologies, Inc. Intel Pro Share WebCam

And, ls /dev/vid*:
lrwxrwxrwx 1 root root 6 Jul 1 00:46 /dev/video -> video0
crw-r--rw- 1 root root 81, 0 Jul 1 00:46 /dev/video0
crw-r--r-- 1 root root 81, 1 Jul 1 00:46 /dev/video1

However, when I try to do zmu -d /dev/video -q -v (or /dev/video0 or /dev/video1), I get th subject error message.

What does that error message mean? I have found exactly ONE reference to it in the forums so far and the thread didn't offer an awful lot of information.

Let me know what other info is needed.

Thanks in advance!

Posted: Tue Jul 07, 2009 6:54 am
by cordel
What happens if you chmod 777 both video devices?
You might have to set the user sticky bit for zmfix so that it can change the permissions.
chmod 4755 /path/to/zmfix

Posted: Tue Jul 14, 2009 8:39 pm
by DervMan
Did you get this working?

Posted: Thu Jul 23, 2009 8:37 am
by hellvy
i got the same problem on CentOS 5.3 i386, bt878 card, here's some info of my system.
# dmesg | grep btt
bttv: driver version 0.9.16 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 0000:03:09.0, irq: 217, latency: 132, mmio: 0xe8000000
bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=00f360ff [init]
bttv0: using tuner=-1
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (1).
bttv1: Bt878 (rev 17) at 0000:03:0a.0, irq: 225, latency: 132, mmio: 0xe8002000
bttv1: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
bttv1: gpio: en=00000000, out=00000000 in=00f36fff [init]
bttv1: using tuner=-1
bttv1: registered device video1
bttv1: registered device vbi1
bttv1: PLL: 28636363 => 35468950 .. ok
#
# zmu -d /dev/video -q -v
Error, failed to query crop capabilities /dev/video: Invalid argument
#
# ls -l /usr/local/bin/zmfix
-rwsr-xr-x 1 root root 159442 Jul 22 23:58 /usr/local/bin/zmfix
#
i've tried chmod 777 to /dev/video0 but still got the same error. These cards used to work on my previous set up (older CentOS version though). Any suggestion for this prblem?

Posted: Sat Jul 25, 2009 2:11 am
by hellvy
bump, any suggestion pls.

Posted: Mon Jul 27, 2009 6:36 pm
by hellvy
ok, i got some update. when i execute 'zmu -d /dev/video0 -V 1 -q -v' i can get card property as it should. so i think there's something to do with v4l v1 & v2 here. But when i tried changing source property in zm from v4l v2 to v1, i still can't get it to work. Looking in log it says 'Capture failure for frame 0: Invalid argument'. Any ideas? thx.

Posted: Tue Sep 29, 2009 12:13 pm
by bukowski
I have the same probel after upgrade on CentOS 5.3. does someone resolve this problem?

CentOS release 5.3 (Final)
Linux 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 i686 i386 GNU/Linux

Posted: Wed Jan 20, 2010 2:28 pm
by scrap
I have this problem as well... upgraded to 1.24.2 by source on Ubuntu. Anyone have an update to this problem?

Posted: Wed Jan 20, 2010 2:38 pm
by scrap
More info...

This is only happening with my usb webcam camera. The other 3 CCTV cameras hooked up to my capture card work great!

Posted: Wed Feb 10, 2010 3:52 am
by dclarke

Posted: Tue Jun 22, 2010 1:23 pm
by beerygaz
I've got the same problem as hellvy. i'm using a Kodicom 8800 bt878 card and I get the same error. I've also just moved to CentOS and installed from source. This didn't used to happen with the same card and an RPM package for Fedora 10.

dclarke - I read your post on webcams, but neither hellvy nor I are using webcams so I'm assuming this doesn't apply.

Anyone got any other ideas? hellvy, did you get any resolution?