Surveillance video under Linux using ZoneMinder  Hot PDF Print E-mail
Tag it:
Delicious
Furl it!
Digg
NewsVine
Reddit
YahooMyWeb
Technorati
Articles Reviews Linux
Written by Bogdan V   
Monday, 13 April 2009

ZoneMinder is the most professional video monitoring software available on Linux. I had the opportunity to use a room with CAS-230 SOHO / server where is connected to the network with ZoneMinder. 

Configuration software used:

ZoneMinder 1.21.0 (running on ZoneMinder LiveCD)
ZoneMinder 1.21.3 (running on Mandrake 10.0)


ZoneMinder web interface of your attention to the most delicate settings:

ZM_OPT_REMOTE_CAMERAS - must be checked in case
ZM_OPT_USE_AUTH - should not be activated normally
ZM_PATH_LOGS - / var / log / zm should be passed here
ZM_COLOUR_JPEG_FILES - no need for face
ZM_NETCAM_REGEXPS - (does not exist in 1.21.0) cleared
ZM_HTTP_VERSION - if the girl is 1.1 to 1.0 and 1.21.0 to 1.21.3
ZM_HTTP_TIMEOUT - minimum 2500
ZM_WEB_REFRESH_METHOD - http
ZM_VIDEO_STREAM_METHOD - jpeg  

After setting the parameters above and connect the camera to the server check the following:

You need to order:

zmc-m <monitor_ID> should return immediately. If returns immediately (with or without error), something not good, check logs.

Shared memory (shared memory) (see first issue) is calculated as follows: buffer (tab to monitor the buffers) x width x height image image x 3 (for a 24 bit image). For a 640x480 24-bit would require approximately 92Mb shared memory, the buffer-standard they set. 


 
First problem: shared memory (shared memory)

Symptom in logs messages appear on the shared memory.

Be solved by increasing the shared memory.

Currently allocated shared memory can be displayed with the commands:

cat / proc / sys / kernel / shmall
cat / proc / sys / kernel / shmmax

Valorile are returned in bytes (bytes) and should be at least 134,217,728 (128 MIB). If the values returned are less than the minimum specified, should be enlarged. To enlarge the final editing kernel.shmall and kernel.shmmax in / etc / sysctl.conf. If these variables do not exist in sysctl.conf, which will be created. Note: values set in sysctl.conf will not be charged but only at boot.

For immediate application, use the command:

/ sbin / sysctl-pa second problem: errors related to the JPEG format

Symptom:

Zmc # m-1
Not a JPEG file: starts with 0x48 0x54

Camera play 640x480 image size, 24-bit color, so they must be the monitor settings and ZM. Attention: the more the image is larger and deeper color, the worse and will increase the shared memory that requires ZM (see above).

A third problem: No picture appears

Symptoms: There is no image when it opens a monitor logs in ZM (usually located in / var / log / zm) everything seems OK, but in / var / log / messages are error messages like:

Got TERM signal, exiting

Select error: interrupted system call

Shared memory will not initialised by capture, daemon must be verified that ZM_PATH_ZMS be set correctly. Normally, in / var / www should be a cgi-bin directory that contains two files, at least:

# Pwd
/ var / www / cgi-bin
# Ls

NPH-zms zmsDeci in ZM_PATH_ZMS can be two values: / cgi-bin/zms / or cgi-bin/nph-zms. Try both, until the works.

The fourth problem: the Chamber has some problems and should be reset.

If ZoneMinder will initial any signal to the file, ping the IP camera, you removed the supply room for a few seconds ...


Warning: The server's capture will need a large hard disk to meet the amount of data sent from the room. You can use standard distribution mechanism (eg tmpwatch) or, failing that.


User reviews

There are no user reviews for this item.

Add new review




Powered by jReviews

Last Updated ( Monday, 13 April 2009 )
 
< Prev   Next >