Webcam motion detection
Windows
To set up an ip- or webcamera for surveillance there are several program to use for Windows.
One of them that are free for personal use is ispy from : http://www.ispyconnect.com/
This program works create with motion detection with booth USB webcam and ipbased cams.
Opensuse 12.1 32-bits 1-click install
For linux there is a great program called Zoneminder.
First you need to download ffmpeg from packman:
http://packman.links2linux.org/package/ffmpeg
Then you can use this link and choose 1-click install to install Zoneminder v.1.27:
http://www.zoneminder.com/wiki/index.php/Installing_using_ZoneMinder_RPMs_for_SuSE
Navigate to: using one-click-install (openSuSE >= 10.3) select install normal version
You will then need to configure mysql:
rcmysql start
mysqladmin -u root password
zm_database_init
systemctl start zm.service
open Firefox and surf to: http://127.0.0.1/zm/
start services at boot time:
systemctl enable mysql.service
systemctl enable apache2.service
Opensuse 11.4 compile from scratch
I ones did compile zoneminder from scratch for opensuse 11.4
and wrote this simple how to:
1) Download zoneminder (verson 1.24.4)
http://www.zoneminder.com
2) start yast2 and install:
* make
* gcc
* gcc-c++
* libmysqlclient-devel
* libjpeg8-devel
* libjpeg62-devel
* libgnutls-devel
* perl-Date-Manip
* perl-YAML
* perl-DBD-mysql
* php-mysql
* apache2
* apache2-mod_perl
* apache2-mod_php5
* cheese
* v4l-conf
* v4l-tools
* yasm
3) Download and compile ffmpeg
http://ffmpeg.org/download.html OR http://packman.links2linux.org/package/ffmpeg
4) Download and compile mp3lame 3.99
http://lame.sourceforge.net/download.php
5) PHP-Ser: run from console: perl -MCPAN -e 'install PHP::Serialization'
6) start apache and create user and group
service apache2 start
create user apache
create group apache
7) Mysql create database zm
rcmysql start
> mysql -u root -p mysql < db/zm_create.sql
> mysql -u root -p mysql
Enter password:
mysql> grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass' ;
mysql> quit
>mysqladmin -u root -p reload
8) change zm_utils.cpp and make sure it includes cstdio
vi src/zm_utils.cpp
#include <cstdio>
9) create makefile and compile
./configure --with-libarch=lib64 --with-mysql
--with-ffmpeg -with-extralibs="-lmp3lame" --with-webdir=/srv/www/htdocs
--with-cgidir=/srv/www/cgi-bin ZM_DB_HOST=localhost ZM_DB_NAME=zm
ZM_DB_USER=user ZM_DB_PASS=pwd ZM_SSL_LIB=openssl --with-webuser=wwwrun
--with-webgroup=www --host x86 --enable-mmap=no
make
make install
install scripts/zm /etc/init.d/
10) Change in php-ini-file and change short_open_tag to On
vi /etc/php5/apache2/php.ini
short_open_tag = On
extension=php_mysql.so
and restart apache2
rcapache2 restart
11) Download and install mootools from http://mootools.net
extract end copy the files:
cp mootools-1.2.5-core-yc.js /srv/www/htdocs/tools/mootools/mootools-core.js
cp mootools-1.2.5.1-more-yc.js /srv/www/htdocs/tools/mootools/mootools-more.js
12. To be able to use streams of jpeg you need combozala:
http://www.charliemouse.com:8080/code/cambozola/
Activate OPT_CAMBOZOLA under the Images tab
cp cambozola.jar /srv/www/htdocs
Make sure you have permission to view it from apache:
chown wwwrun.www /srv/www/htdocs/cambozola.jar
chown wwwrun.www /srv/www/htdocs/*
chmod ugo+x /srv/www/htdocs/*
start services at boot time:
chkconfig apache2 on
chkconfig mysql on
13) open Firefox and surf to: http://127.0.0.1/zm/
14) !!!! FINISHED !!!!
==============