Page 1 of 1

Failed to get channel 0 attributes

Posted: Sat Jun 13, 2009 2:16 am
by jmspaggi
Hi,

I'm trying to configure ZM but I have some troubles.

I installed ZM back from scratch (--purge)

xawtv is working fine. I can see the stream with no issue. Same thing with MPlayer.

But when I try zmu, I get that:

Code: Select all

cube:~# export ZM_DBG_PRINT=1 
cube:~# export ZM_DBG_LEVEL=9
cube:~# zmu -d /dev/video0 -q -v
06/12/09 22:02:11.072242 zmu[15183].INF-zm_debug.c/224 [Debug Level = 9, Debug Log = <none>]
06/12/09 22:02:11.169774 zmu[15183].ERR-zm_local_camera.cpp/866 [Failed to get channel 0 attributes: Invalid argument]
Error, failed to get channel 0 attributes: Invalid argument
And so I have the link in red in ZoneMinder.

I looked over the forum and tried also google with no success.

The camera is a Logitech QuickCam Pro 9000

Some details on my system:

Code: Select all

[    2.235102] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0990)
[    2.256865] input: UVC Camera (046d:0990) as /class/input/input1

cube:~# uname -a
Linux cube 2.6.30 #4 Fri Jun 12 21:10:42 EDT 2009 i686 GNU/Linux

cube:~# v4l-info  /dev/video0

### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
	driver                  : "uvcvideo"
	card                    : "UVC Camera (046d:0990)"
	bus_info                : "usb-0000:00:10.0-1"
	version                 : 0.1.0
	capabilities            : 0x4000001 [VIDEO_CAPTURE,STREAMING]

standards

inputs
    VIDIOC_ENUMINPUT(0)
	index                   : 0
	name                    : "Camera 1"
	type                    : CAMERA
	audioset                : 0
	tuner                   : 0
	std                     : 0x0 []
	status                  : 0x0 []

video capture
    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
	index                   : 0
	type                    : VIDEO_CAPTURE
	flags                   : 1
	description             : "MJPEG"
	pixelformat             : 0x47504a4d [MJPG]
    VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE)
	index                   : 1
	type                    : VIDEO_CAPTURE
	flags                   : 0
	description             : "YUV 4:2:2 (YUYV)"
	pixelformat             : 0x56595559 [YUYV]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
	type                    : VIDEO_CAPTURE
	fmt.pix.width           : 176
	fmt.pix.height          : 144
	fmt.pix.pixelformat     : 0x56595559 [YUYV]
	fmt.pix.field           : NONE
	fmt.pix.bytesperline    : 352
	fmt.pix.sizeimage       : 50688
	fmt.pix.colorspace      : SRGB
	fmt.pix.priv            : 0

controls
    VIDIOC_QUERYCTRL(BASE+0)
	id                      : 9963776
	type                    : INTEGER
	name                    : "Brightness"
	minimum                 : 0
	maximum                 : 255
	step                    : 1
	default_value           : 128
	flags                   : 0
    VIDIOC_QUERYCTRL(BASE+1)
	id                      : 9963777
	type                    : INTEGER
	name                    : "Contrast"
	minimum                 : 0
	maximum                 : 255
	step                    : 1
	default_value           : 32
	flags                   : 0
    VIDIOC_QUERYCTRL(BASE+2)
	id                      : 9963778
	type                    : INTEGER
	name                    : "Saturation"
	minimum                 : 0
	maximum                 : 255
	step                    : 1
	default_value           : 32
	flags                   : 0

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
	name                    : "UVC Camera (046d:0990)"
	type                    : 0x1 [CAPTURE]
	channels                : 1
	audios                  : 0
	maxwidth                : 800
	maxheight               : 600
	minwidth                : 48
	minheight               : 32

channels
ioctl VIDIOCGCHAN: Invalid argument

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
	brightness              : 32896
	hue                     : 0
	colour                  : 8224
	contrast                : 8224
	whiteness               : 0
	depth                   : 16
	palette                 : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
    VIDIOCGWIN
	x                       : 0
	y                       : 0
	width                   : 176
	height                  : 144
	chromakey               : 0
	flags                   : 0


Any clue where I should look? Any idea?

Thanks,

JM