Page 1 of 1

New install on Ubuntu Server

Posted: Wed May 11, 2011 1:44 am
by gowrath
Hello,

I have a computer running Ubuntu server (11.04) with 4 generic usb cameras I purchased on ebay.
The computer runs Motion with no problems but I can't get ZoneMinder running (I'm trying to get zoneminder running with one camera first).
I installed zoneminder by typing:

Code: Select all

apt-get install zoneminder
.
I set permissions on /dev/video0 to 777.
when I type:

Code: Select all

zmu -d /dev/video0 -q -v
I get:
Video Device: /dev/video0
General Capabilities
Driver: uvcvideo
Card: USB 2.0 PC Camera
Bus: usb-0000:00:11.2-5
Version: 1.0.0
Type: 0x4000001
Supports video capture (X)
Does not support video output
Does not support frame buffer overlay
Does not support VBI capture
Does not support VBI output
Does not support sliced VBI capture
Does not support sliced VBI output
Does not support video output overlay
Does not have tuner
Does not have audio in and/or out
Does not have radio
Does not support read/write i/o (X)
Does not support async i/o
Supports streaming i/o (X)
Standards:
Formats:
YUV 4:2:2 (YUYV) (YUYV)
Crop Capabilities
Bounds: 640 x 480
Default: 640 x 480
Current: Cropping is not supported
Inputs: 1
Input 0
Name: Camera 1
Type: Camera
Audioset: 00000000
Standards: 0x0
Power on (X)
Signal detected (X)
Colour Signal detected
Horizontal Lock detected
Screen caps of my settings are attached.
If I click "Probe" I get:
Can't parse command output 'd:/dev/video0|D:uvcvideo|C:USB 2.0 PC Camera|B:usb-0000:00:11.2-5|V:1.0.0|T:0x4000001|S|F:YUYV|B:640x480|I:1|i0:Camera 1|i0T:Camera|i0S:0|i0SP:1|i0SS:1|i0SC:1|i0HP:1'
I would appreciate it if someone could guide me through the process of getting it up and running.

Thanks.

Re: New install on Ubuntu Server

Posted: Wed May 11, 2011 6:36 am
by PacoLM
Your should check your logs in /var/log/syslog to see what is exactly the error zoneminder is findind. Did you checked your shared memory settings?. Is one of the most common sources of problems when trying to see the image.

Read this post: http://www.zoneminder.com/forums/viewto ... 21&t=17595, it contains a script that should tell the proper settings for your zm system.

If does not work, post a extract of the log with the errors.

Hope it helps,

PacoLM

Re: New install on Ubuntu Server

Posted: Wed May 11, 2011 6:56 am
by Polyphemus
Have you tried changing 'dev/video' to 'dev/video0' as device for your camera in the gui-settings?

Re: New install on Ubuntu Server

Posted: Thu May 12, 2011 1:42 am
by gowrath
Have you tried changing 'dev/video' to 'dev/video0' as device for your camera in the gui-settings?
Whoops! :oops:
I changed it to /dev/video0 and now when I probe I get:
Unable to probe local cameras, status is '255'

Re: New install on Ubuntu Server

Posted: Thu May 12, 2011 5:57 am
by PacoLM
Forget about probing, could you post the ERR output in the /var/log/syslog file?. Without any log, we could not know where the error come from!.

Regards,

PacoLM

Re: New install on Ubuntu Server

Posted: Thu May 12, 2011 11:59 pm
by gowrath
Did you checked your shared memory settings?. Is one of the most common sources of problems when trying to see the image.

Read this post: viewtopic.php?f=21&t=17595, it contains a script that should tell the proper settings for your zm system.
Ran the script and increased my kernel.shmmax to the recommended amount and rebooted.
Here are the ERR from the syslog:
Line 644: May 12 16:52:11 p4 zmfix[683]: ERR [Can't connect to server: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)]
Line 717: May 12 16:52:14 p4 zmfix[803]: ERR [Can't chmod /dev/video0 to 20666: Operation not permitted]
Line 725: May 12 16:52:18 p4 zmdc[837]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
Line 735: May 12 16:52:19 p4 zmdc[837]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
Line 752: May 12 16:52:24 p4 zmdc[837]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
Line 760: May 12 16:52:34 p4 zmdc[837]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
Thanks.