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

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
Lotharyx
Posts: 1
Joined: Wed Jul 01, 2009 4:48 am

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

Post 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!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
DervMan
Posts: 23
Joined: Wed Feb 25, 2009 2:04 pm
Location: Bristol, UK

Post by DervMan »

Did you get this working?
hellvy
Posts: 5
Joined: Tue Oct 04, 2005 7:16 pm

Post 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?
hellvy
Posts: 5
Joined: Tue Oct 04, 2005 7:16 pm

Post by hellvy »

bump, any suggestion pls.
hellvy
Posts: 5
Joined: Tue Oct 04, 2005 7:16 pm

Post 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.
bukowski
Posts: 11
Joined: Thu Feb 21, 2008 11:27 am

Post 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
scrap
Posts: 2
Joined: Wed Jan 20, 2010 2:26 pm

Post by scrap »

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

Post 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!
dclarke
Posts: 7
Joined: Wed Feb 10, 2010 3:17 am

Post by dclarke »

beerygaz
Posts: 28
Joined: Wed Jul 08, 2009 9:43 am
Location: Johannesburg, South Africa

Post 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?
Post Reply