No streaming - ZMU doesn't detect cams

Forum for questions and support relating to the 1.24.x releases only.
Locked
lepapou
Posts: 11
Joined: Thu Jul 26, 2007 6:14 am

No streaming - ZMU doesn't detect cams

Post by lepapou »

Hello I'm back after 3 years (my precedent post was in 2007)

I'm now under ubuntu 10.04 (lucid lynx) and I try to install a new config on a netbook with Zoneminder 1.24.
Install without problem but its impossible to see any stream with these 3 : internet UVC Webcam, external analogic cam (wich worked fine in my old config) and external creative webcam.

Lines monitors are always red and when I open I've blank screens.

I tried to use remote option with UVC cam and mjpg_streamer as indicate on wiki : no result.

I also tried zmfix.

All these cams are working with xawtv and other viewers.

Thanks very much for your help, here is the result of commands :

Code: Select all

lepapoubis@lepapoubis-laptop:~$ xawtv -hwscan
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.32-21-generic)
looking for available devices
port 71-86
    type : Xvideo, image scaler
    name : Intel(R) Textured Video

port 87-87
    type : Xvideo, image scaler
    name : Intel(R) Video Overlay

/dev/video0: OK                         [ -device /dev/video0 ]
    type : v4l2
    name : USB2.0 UVC VGA WebCam
    flags:  capture  


lepapoubis@lepapoubis-laptop:~$ sudo zmu -d /dev/video0 -q -v -U lepapoubis -P pass
[sudo] password for lepapoubis: 
Error, failed to query crop /dev/video0: Invalid argument


lepapoubis@lepapoubis-laptop:~$ v4l-info
### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
	driver                  : "uvcvideo"
	card                    : "USB2.0 UVC VGA WebCam"
	bus_info                : "usb-0000:00:1d.7-6"
	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                   : 0
	description             : "YUV 4:2:2 (YUYV)"
	pixelformat             : 0x56595559 [YUYV]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
	type                    : VIDEO_CAPTURE
	fmt.pix.width           : 640
	fmt.pix.height          : 480
	fmt.pix.pixelformat     : 0x56595559 [YUYV]
	fmt.pix.field           : NONE
	fmt.pix.bytesperline    : 1280
	fmt.pix.sizeimage       : 614400
	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           : 128
	flags                   : 0
    VIDIOC_QUERYCTRL(BASE+2)
	id                      : 9963778
	type                    : INTEGER
	name                    : "Saturation"
	minimum                 : 0
	maximum                 : 127
	step                    : 1
	default_value           : 64
	flags                   : 0
    VIDIOC_QUERYCTRL(BASE+3)
	id                      : 9963779
	type                    : INTEGER
	name                    : "Hue"
	minimum                 : -180
	maximum                 : 180
	step                    : 1
	default_value           : 0
	flags                   : 0

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
	name                    : "USB2.0 UVC VGA WebCam"
	type                    : 0x1 [CAPTURE]
	channels                : 1
	audios                  : 0
	maxwidth                : 640
	maxheight               : 480
	minwidth                : 48
	minheight               : 32

channels
    VIDIOCGCHAN(0)
	channel                 : 0
	name                    : "Camera 1"
	tuners                  : 0
	flags                   : 0x0 []
	type                    : CAMERA
	norm                    : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
	brightness              : 32896
	hue                     : 32768
	colour                  : 33026
	contrast                : 32896
	whiteness               : 10813
	depth                   : 16
	palette                 : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
    VIDIOCGWIN
	x                       : 0
	y                       : 0
	width                   : 640
	height                  : 480
	chromakey               : 0
	flags                   : 0

:oops:
lepapou
Posts: 11
Joined: Thu Jul 26, 2007 6:14 am

No streaming - ZMU doesn't detect cams

Post by lepapou »

Hello !

Nobody can help me ?

Is my problem too Difficult or my question not clear ?

Thank's :cry:
rob_cod
Posts: 1
Joined: Sun Sep 05, 2010 6:08 pm
Location: Midlands, England

Post by rob_cod »

I'm running Zoneminder 1.24.2 and Ubuntu 10.04 with 1 usb cam.

I had a similar problem and this link helped me:-

http://www.zoneminder.com/wiki/index.ph ... m_Pro_9000

in particular where it mentions the command:-

zmu -d /dev/video0 -V1 --query

Which listed the properties of my logitec usb camera so I could define them correctly in the Source properties on the zoneminder console page.

My cam finally worked (/dev/video0 was no longer red) with the following settings:-

Device Path - /dev/video0
Capture Method - Video For Linux version 2
Device Channel - 0
Device Format - PAL
Capture Palette - YUYV
Capture Width - 640
Capture Height - 480

Hope it helps.

:)
lepapou
Posts: 11
Joined: Thu Jul 26, 2007 6:14 am

Thank you very much rob_cod

Post by lepapou »

I'm very happy : my problem is partly resolved.
With your information I can now see my monitor (/dev/video0 is no longer red).
Thus, informations given with "zmu -d /dev/video0 -V1 --query" are very short :

Code: Select all

d:/dev/video0|N:USB2.0 UVC VGA WebCam|T:1|nC:1|nA:0|mxW:0|mxH:0|mnW:48|mnH:32|X:0|Y:0|W:640|H:480|P:8|D:16|B:32896|h:32768|Cl:33026|Cn:32896|w:10813|n0:Camera 1|C0:0|Fl0:0|T0:2|F0:0
it's only in using "Capture Palette - YUYV" like your config that my cam has worked.
Now I've a problem with zone define : no image in window.
So long
lepapou
Posts: 11
Joined: Thu Jul 26, 2007 6:14 am

Post by lepapou »

Internet forums are fantastic !

I've found the respons on this forum, device line (/dev/videox) was always red because of an option I modified : path where events and images are saved.
Default was "events" on "/" and I wanted to change with my home directory (more space) : seems to be a bug because it doesn't work.
So I deceived zoneminder on create a directory "events" on my home and a symbolic link into /usr/share/zoneminder and it works !

Now I've two others problems :

- impossible to reach zoneminder interface from Internet despite rules on my router
- sending events by mail or FTP doesn't work

Another fight with the monster !

Thank you to all the contributers of this marvelous forum ! :D
Locked