General Notes

From ZoneMinder Wiki
Revision as of 18:22, 22 May 2006 by Sawireless2000 (talk | contribs) (Notes taken from forum)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Zoneminder build notes

  • Install ffmpeg and ffmpeg-devel. ./configure --with-mysql=/usr/local/mysql --with-ffmpeg=/home/src/ffmpeg-0.4.9-pre1 --with-lame=/home/src/lame-3.96.1/libmp3lame --with-webdir=/home/sites/ --with-cgidir=/home/sites/ --with-webuser=httpd --with-webgroup=httpd --with-libarch=lib --enable-debug=yes OR

$ ./configure --with-webdir=/var/www/htdocs/ZM

--with-cgidir=/var/www/cgi-bin --sysconfdir=/etc --with-webuser=nobody --with-webgroup=nobody What is "--sysconfdir=/etc" directory ? OR ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin ZM_DB_PASS=<password>

  • Debian installation manual

With a new install create and populate mysql databases. mysql mysql < db/zm_create.sql mysql mysql grant select,insert,update,delete on <database name>.* to '<database user>'@localhost identified by '<database password>'; quit mysqladmin reload Check zone.conf or zm.conf. Check that there are no bogus vesions of this file lying around. "nobody" doesn't have shell access, choose a different Apache alias like "httpd". The zmdc.log logs any errors. zm.sock file must be able to be created.

  • Building for Suse10

  • Fedora4 notes Set web user and group correctly and set the log dir to a writeable location. With FC4 there are two things that must be done to get ZM running, 1) is in the /etc/ dir created a file with 775 perm called zm.conf and add the line '/usr/local/lib' to it and type 'ldconfig' once it is added, also with a fresh install of FC4 make sure SE linux is disabled if you are not using it. Check your log path in options under the paths tab. This will tell you were the log are going to be put. Second make sure the path exists. Third create the log files if they do not exist and make sure that they have the correct permissions. If zm can not open and write the log files, it will not start.

  • OpenSSl and openssl-devel

You should have these packages installed: openssl,openssl-devel,php-mysql To check if you have them, do rpm -qa | grep openssl


  • permission problem sudo -u apache /etc/rc.d/rc.zoneminder start now.. zmc and zma is running on user apache

  • su issue

  • http webserver must allows cgi execution

  • /usr/local/etc/zm.conf must exist and what process owns it.

webuser and webgroup must be correct for apache to have ownership over zm.conf

BIOS issues

Turn off ACPI in the bios. ACPI is a power management configuration on the motherboard that interferes with the datacapture cards.

Brightness control

Brightness control script

contribs directory

contribs directory has user based files added to zoneminder


CAPTURE card issues Single chip with 4cameras can lead to image flipping. LInux commands lspci ,dmesg BT878 card with 1 cip/4 ins - Provideo PV143

CAUSE NOTES field section

Database Mysql

Create a new database. database repair Mysql corrupted via bad BIOS. I pulled the battery for 5 minutes and slapped it back in. I booted, then started zoneminder. It didn't lock up! I went into the interface and found several lines of 'incorrect key file for table: 'E'Try to repair it' before the regular interface began. I stopped zoneminder and went into mysql - sure enough, the events and frames tables both had errors. I repaired them and restarted zoneminder successfully. The system is now running; I'm going to let it be and see if it dies as it did before.

  • My personal recommendation is to try converting your database over to INNODB tables.

Researching the web I found this to be faster for larger tables (as events grow) and much more reliable.



  • Install ffmpeg for Fedora with

yum -i ffmpeg yum -i ffmpeg-devel

  • Install ffmpeg and ffmpeg-devel on Fedore4 rpm -ivh yum install ffmpeg ffmpeg-devel Place the devel stuff in /usr/include/ffmpeg Now configure, make, make install

  • After getting ffmpeg from CVS, do:

./configure , make, make install, make installibs

Image display problems

Firefox, colorzilla extensions

Kodicom capture card

  • KMC-8800 8-chip bt878 capture card

  • modprobe.conf file Edit your /etc/modprobe.conf file and add this line: options bttv card=77 "options bttv card =77" is a DEFAULT setting to get a card working. All screens must be same resolution.

  • bttv settings


  • I'm using FC4 and had a similiar problem with a quickcam 4000.

I guess you are using the default module supplied with centos. I think, not sure about this though, that it is missing some capabilities. So I installed the pwc module ( and these crashes stopped.

Message logs


SELinux was enabled

  • Shared memory setting must be high.

frank@wdshss:/etc> cat sysctl.conf

  1. Disable response to broadcasts.
  2. You don't want yourself becoming a Smurf amplifier.

net.ipv4.icmp_echo_ignore_broadcasts = 1

  1. enable route verification on all interfaces

net.ipv4.conf.all.rp_filter = 1

  1. enable ipV6 forwarding
  2. net.ipv6.conf.all.forwarding = 1

kernel.shmall = 134217728 kernel.shmmax = 134217728

Mocord, Record, Modect


modprobe.conf mod = 133 or something like that for Kodicom


MMS gateway and API software

Multiple zones

Perl package


Remote camera source


  • rtp and raw streaming


  • "disable farm out wrtiting of imagess" if frame capture errors appear in log.

  • color pallet, video hieght, or video width. Try starting with 320x240 (assuming ntsc) and try different pallets.

Timelapsed video

Truck detection links

  • All things are possible and the example someone posted a while back of detecting trucks and buses, but not cars, passing over a distant intersection is probably appropriate for you. What I would suggest you need are quite high pixel differences (indicating difference from the background) and pretty small counts of changed pixels or blob sizes. You might find it useful to turn on diagnostic images initially (and only for a while as they slow everything down a lot) which will output what ZM thinks the differences etc are are in the images.

Update database after installing from RPM's The command you enetered above only freshens it. --version= <?>

Ubuntu install GUI package that installs Mplayer etc. EXTRA_LIBS parameter in .configure script

Using another ZoneMinder box as the remote IP camera source

Water marked

xawtv what from xawtv -hwscan? xawtv -device /dev/video?

zmc daemon captures the images