Can't get ANY monitor to work

Forum for questions and support relating to the 1.24.x releases only.
Locked
b0ot
Posts: 3
Joined: Tue Aug 10, 2010 8:37 pm

Can't get ANY monitor to work

Post by b0ot »

I have been trying and trying to get a monitor to work with zoneminder with no luck...

I have tried:
Remote/Local and neither seems to work

Currently I'm using a logitech pro cam 9000 with Ubuntu 10.04
========
Video Capabilities
Name: UVC Camera (046d:0809)
Type: 1
Can capture
Video Channels: 1
Audio Channels: 0
Maximum Width: 1600
Maximum Height: 1200
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 640
Height: 480
Picture Attributes
Palette: 8 - YUYV
Colour Depth: 16
Brightness: 32896
Hue: 0
Colour :7196
Contrast: 8224
Whiteness: 0
Channel 0 Attributes
Name: Camera 1
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
========


My end goal is to have zoneminder constantly record a buffer of video from each of my cameras on my network. Be able to access a live view from anywhere in my network of the cameras, and be able to access the recorded buffer from anywhere in my network.

However right now I would settle for being able to see a picture in the monitor

// My attempt a local connection
First I should mention I know my webcam works, I have been using it with vlc for network streams and other applications.

I generally open up vlc start open capture device dev/video0

Then I go into 127.0.0.1/zm to get to the console

I add/edit monitor

And have tried pretty much all combinations of
=General
--Function: Record | Monitor
=Source
--Device Path /dev/video | /dev/video0
--Device Format: PAL | NTSC
--Capture Palette: GREY | RGB444 | YUYV and misc others
--Capture Width 1600x1200 | 640 x 480 | 320 x 240

Then I click on monitor and I don't see anything at all


//For my remote attempts
I have tried all sorts of streaming options with vlc where I am able to see the stream on my local and remote computers (using vlc NOT ZM). My latest attempt has been running vlc with this option

vlc -vvv v4l2:///dev/video0 --v4l2-chroma MJPG --sout "#std{access=http,mux=mpjpeg,dst=10.1.40.1:8012/stream.mjpg}"

Then
Settings:
=General
--Source Type: Remote
--Function: Record

=Source
--Remote Protocol: HTTP
--Remote Method: Simple
--Remote Host Name: 10.1.40.1
--Remote Host Port: 8012
--Remote Host Path: stream.mjpg
--Remote Image Colours: Grey | 24 bit colour
--Width/Height: 1600 x 1200 | 320 x 240

And once again I see nothing...
The best I have managed was once I got an all black box

If anyone can help me get up and running that would be great

thanks
jusfixit
Posts: 1
Joined: Mon Jun 07, 2010 11:40 pm

Logitech Webcam Pro 9000 working

Post by jusfixit »

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

shows how the Logitech Webcam Pro 9000 was successfully configured on a Fedora 13 system with Zoneminder 1.24.2.
alf
Posts: 41
Joined: Wed Jun 17, 2009 6:13 pm

did you see if it works in xawtv?

Post by alf »

If so thats where I start with these issues.
andrewju
Posts: 2
Joined: Thu Jul 14, 2011 11:52 am

Logitech Webcam Pro 9000

Post by andrewju »

Hi All,

I can't get the Webcam Pro 9000 work for me as well. I have Fedora 13 (I know, it's already old nowadays) and ZoneMinder 1.24.2 istalled from Fedora repositories. The camera is detected by Fedora:

Code: Select all

# lsusb -s 002:005
Bus 002 Device 005: ID 046d:0809 Logitech, Inc. Webcam Pro 9000
# ls -l /dev/video*
crw-rw-rw-+ 1 root video 81, 0 Jul 14 20:45 /dev/video0
#
I configured my camera as it is described in the wiki linked to above. But in the syslog I see the following:

Code: Select all

Jul 14 20:52:16 localhost zmdc[8566]: INF [Starting pending process, zmc -d /dev/video0]
Jul 14 20:52:16 localhost zmdc[8566]: INF ['zmc -d /dev/video0' starting at 11/07/14 20:52:16, pid = 9012]
Jul 14 20:52:16 localhost zmdc[9012]: INF ['zmc -d /dev/video0' started at 11/07/14 20:52:16]
Jul 14 20:52:16 localhost zmc_dvideo0[9012]: INF [Debug Level = 0, Debug Log = <none>]
Jul 14 20:52:16 localhost zmc_dvideo0[9012]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Jul 14 20:52:16 localhost zmdc[8566]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Jul 14 20:52:22 localhost zmwatch[8605]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Jul 14 20:52:32 localhost zmwatch[8605]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Jul 14 20:52:42 localhost zmwatch[8605]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Jul 14 20:52:52 localhost zmwatch[8605]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
And there's no image in ZM, of course...

I couldn't get xawtv to work either, but that's probably related to some fonts that are missing (xawtv complains it can't find any font). This seemed like a common issue when I Googled for it, but there was no quick solution other than "the program is too old"...

Where should I go from here? Should I concentrate on getting xawtv to work first, or is there some other way to check what is going on with ZM ?

I'd appreciate any ideas!
andrewju
Posts: 2
Joined: Thu Jul 14, 2011 11:52 am

Re: Can't get ANY monitor to work

Post by andrewju »

Oh, looks I wasn't reading carefully enough. The problem seem to be in the amount of shared memory (and there is a hint about that on Wiki). When I set a small resolution and a minimal refresh rate - I get a picture!

But for some reason, I can't extend the amount of shared memory used:

Code: Select all

# cat /proc/sys/kernel/shmall
2097152
# cat /proc/sys/kernel/shmmax
33554432
# echo 536870912>/proc/sys/kernel/shmmax
-bash: 536870912: Bad file descriptor
#
A bit more browsing, and I found that shared mamory can be changed via sysctl:

Code: Select all

sysctl -w kernel.shmmax=536870912
Now I'm Ok up to 640x480. If I raise the resolution higher - I don't get an error anymore, but the image is still the same (640x480). I tried extending shared memory even more - but that doesn't seem to have an effect anymore...

What am I doing wrong?
Locked