|Experimenting with the use of webcams for security.|
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
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.
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
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
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?)
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:
and change it to read
Similarly change the line:
After these changes you need to restart zoneminder ans apache.
sudo /etc/init.d/zoneminder restart sudo /etc/init.d/apache2 restartNow zoneminder should be available at http://localhost.
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
This link was very useful setting up this system: