Zoneminder

From VoidWarranties - Hackerspace Antwerp, Belgium
(Difference between revisions)
Jump to: navigation, search
m (ip cam has been removed, and since no-one is really doing anything about this project, I put it to non-active.)
 
(One intermediate revision by one user not shown)

Latest revision as of 10:02, 23 August 2013


Zoneminder
What:
Experimenting with the use of webcams for security.
Event.png
Participants:
Koen
Category:
Security
Locations:
Den Bunker

Contents

Hardware

USB Camera

A USB webcam of the model "Logitec Quickcam Zoom" is also available for this project. Using VLC you can access it's output using this command:

vlc v4l2:///dev/video0 --fullscreen

Network Camera

A network camera of type TP-Link TL-SC3130G is permantently installed in the bar area of Den Bunker. Accessing this camera can be done from any browser, we in the space just browser to http://10.98.71.25/. Direct access to the streaming images is also available through VLC (and other players). This camera supports two different types of video-streams although not both simultaneous.

MP4

For a MPEG-4 videostream "Settings > Basic > Camera > RTSP" has to be set to ON in the web-interface.

vlc rtsp://10.98.71.25:8554/video.mp4 --noaudio --fullscreen

MJPG

To be able to enable the Motion JPEG stream on this camera you have to set "Settings > Basic > Camera > RTSP" to OFF.

vlc http://10.98.71.25:8070/video.mjpg --fullscreen

Software

Zoneminder

To do the aggregation, capture and motion detection of video data we plan to use Zoneminder. At the moment I can configure both camera's to work in Zoneminder but not at the same time. Once the USB camera is properly recognized the network camera is no longer available. (Strange, Ideas?)

Installation

On Ubuntu 10.10 Zoneminder can be installed straight from the repositories.

sudo apt-get install zoneminder

After this you should be able to load zoneminder at http://localhost/zm. If not you may need to change the following lines in the file /etc/apache2/sites-enabled/000-default. Find the line:

DocumentRoot /var/www

and change it to read

DocumentRoot /usr/share/zoneminder

Similarly change the line:

<Directory /var/www/>

to read

<Directory /usr/share/zoneminder/>

After these changes you need to restart zoneminder ans apache.

sudo /etc/init.d/zoneminder restart
sudo /etc/init.d/apache2 restart
Now zoneminder should be available at http://localhost.

Configuration

For the USB camera the following settings were used:

Path:      /dev/video0
Capture:   Video 4 Linux 2
Channel:   0
Format:    PAL
Palette:   YUV420
Width:     320
Height:    240

For the network camera using Motion JPEG:

Protocol:  HTTP
Method:    Simple
Name:      10.98.71.25
Port:      8070
Path:      video.mjpg
Colours:   8 bit greyscale
Width:     640
Height:    480

Links

This link was very useful setting up this system:


Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
Content Creation
Belgian Spaces