Page 1 of 1

Unable to use any camera in zoneminder

Posted: Sat Oct 23, 2010 9:47 am
by cquad
Hi,

I am running zoneminder installed from rpm with fedora 13. I can't use any camera.
When I am trying to use an usb-webcam I have got some shared memory error which aren't solved by change kenerl.shmmax value.

So to avoid usb webcam drivers, I am using an uvc streamer. It work fine as you can see a screen capture here :
Image

But in zoneminder I can't saw any camera image in monitor :
Image

I don't find anything to help me in log files :
http://cedric.olivier.free.fr/temp/log_zoneminder.log

Have you any idea what's wrong?

Regards,
Cedric[/img]

Posted: Sat Oct 23, 2010 2:44 pm
by Pada
It could still be the shared memory that is causing the problems.
You should change both kernel.shmmax and kernel.shmall.
I have set my kernel.shmmax to 90% of my total system memory (value is in bytes) and kernel.shmall to be kernel.shmmax / 4096, since 4096 is my PAGE_SIZE.
You can check the script that I'm using for Ubuntu here: http://www.zoneminder.com/forums/viewto ... 5280#65280

I would recommend that you enable extra debugging for the monitor 1 capturing:
EXTRA_DEBUG = on
EXTRA_DEBUG_TARGET = _zmc_m1
EXTRA_DEBUG_LEVEL = 5
Now ZM would create lots of debugging info under /tmp/zm_debug*

Also try changing the STREAM_METHOD from jpeg to mpeg
and the MPEG_LIVE_FORMAT to asf

I often open the source code of the Monitor view and then paste the stream's URL (which would contain 'zms') into VLC to ensure that the video is playing, because sometimes the browsers are incapable of streaming the videos even if they do work.

I hope this helps.

Chris

Posted: Sat Oct 23, 2010 6:23 pm
by bb99
Noticed that the UVC stream is at (localhost) 127.0.0.1:8080 but the source IP is 192.168.0.20 (no port info. avail.) .... Actual height*width (320*240?) matching within ZM and stream is very important.