General Notes
Zoneminder Build Notes
Required for Building
- MySQL www.lamphowto.com Notes on compiling MySQL from source
- OpenSSL
- PHP
- Apache
- Perl/Libperl
./configure will complain if anything is missing.
Installing from Source
- http://www.zoneminder.com/fileadmin/downloads/README.html
- http://www.zoneminder.com/forums/viewtopic.php?t=5715
- http://www.zoneminder.com/forums/viewtopic.php?t=5929
- ./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/Security.658Ridgecrest.com/web
- --with-cgidir=/home/sites/Security.658Ridgecrest.com/web
- --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=httpd
- --with-webgroup=httpd
OR
- ./configure --with-webdir=/var/www/html/zm
- --with-cgidir=/var/www/cgi-bin ZM_DB_PASS=<password>
Create and Populate the Database
- http://www.zoneminder.com/forums/viewtopic.php?t=5754
- http://www.zoneminder.com/forums/viewtopic.php?t=6023
- 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
Misc Notes (Anyone care to categorize?)
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".
zmdc.log or /var/log/messages log any errors.
zm.sock file must be able to be created.
Apache
Permissions Problems
sudo -u apache /etc/rc.d/rc.zoneminder start
- now.. zmc and zma is running on user apache
su Issue
http://www.zoneminder.com/forums/viewtopic.php?t=5652
Allowing CGI Execution (REQUIRED for ZM)
http://www.zoneminder.com/forums/viewtopic.php?t=5853
- /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
Turning off ACPI power management in the BIOS may help alleviate some issues with ZoneMinder and capture hardware.
Brightness control
- http://www.zoneminder.com/forums/viewtopic.php?t=3953
- http://www.zoneminder.com/forums/viewtopic.php?t=5680
- http://www.zoneminder.com/forums/viewtopic.php?t=3657
Contribs Forum
The contribs forum contains contributions from ZoneMinder users like yourself!
Cambozola
Cambozola is a Java plugin that decodes multipart JPEG streams. Mozilla-based browser have native support, so this plugin is for browsers like Internet Explorer that lack that support.
To install Cambozola for use in zm, Download the cambozola.jar file from the Downloads page or directly from the charliemouse website. If you download from charliemouse you will need to extract the one file (cambozola.jar) from the archive. Place cambozola.jar in the ZM root web directory (so if your web pages for ZM is installed at /var/www/html/zm the file should go there as well). Now all thats left to be done is to enable it in ZM goto options and under the web tab check that cambozola is enabled. Thats it, you'r done.
- http://www.zoneminder.com/forums/viewtopic.php?t=5745
- http://www.zoneminder.com/forums/viewtopic.php?t=6320
Capture Card Issues
Image is Flipped
- Applies to 4 inputs on one chip:
Scrambled Images
- Applies to 4 inputs on one chip, using lspci and dmesg to determine hardware.
CAUSE NOTES field section
Database MySQL
Create a New Database
Repair a Database
- http://www.zoneminder.com/forums/viewtopic.php?t=5657
- http://www.zoneminder.com/forums/viewtopic.php?t=5845
Backup a Database
Delete Databases/Tables
Database Tricks/Tips
- 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.
- http://www.zoneminder.com/forums/viewtopic.php?t=6000
- http://www.zoneminder.com/forums/viewtopic.php?t=6143
- http://www.zoneminder.com/forums/viewtopic.php?t=5657
- http://www.zoneminder.com/forums/viewtopic.php?t=6095
Update Database After Installing from RPM's
ffmpeg
- Install ffmpeg for Fedora with
yum -i ffmpeg
yum -i ffmpeg-devel
- Install ffmpeg and ffmpeg-devel on Fedore4
rpm -ivh http://rpm.livna.org/livna-release4.rpm
yum install ffmpeg ffmpeg-devel
Place the devel stuff in /usr/include/ffmpeg
Now configure, make, make install
- http://www.zoneminder.com/forums/viewtopic.php?t=5576&sid=4e7192b74fe4306e341e9c4036727f7b
- After getting ffmpeg from CVS, do:
./configure , make, make install, make installibs
Increase Image size
If you increase the image size on a camera, it's always best to close down any streams and restart ZM to make sure that all memory is released. http://www.zoneminder.com/forums/viewtopic.php?t=7049
Image display problems
http://www.zoneminder.com/forums/viewtopic.php?t=6027
Firefox, Colorzilla Extensions
http://www.zoneminder.com/forums/viewtopic.php?t=5647
Kodicom Capture Cards
- http://www.zoneminder.com/forums/viewtopic.php?t=5640
- http://www.zoneminder.com/forums/viewtopic.php?t=4130
- http://www.zoneminder.com/forums/viewtopic.php?t=6158
- KMC-8800 8-chip bt878 capture card
- modprobe.conf file
Edit your /etc/modprobe.conf file and add this line:
options bttv card=77
- http://www.linux.com/howtos/Webcam-HOWTO/dev-intro.shtml
- http://www.zoneminder.com/forums/viewtopic.php?t=6892
All screens must be the same resolution.
- bttv settings
note that under ubuntu that the file to edit is /etc/modprobe.d/aliases.
Logitech USB QuickCam
- 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 (http://www.saillard.org/linux/pwc/INSTALL.en) and these crashes stopped. http://www.zoneminder.com/forums/viewtopic.php?t=5906
Message Logs
http://www.zoneminder.com/forums/viewtopic.php?t=5771
Memory Problems/Tweaks
- http://www.zoneminder.com/forums/viewtopic.php?t=6242
- Shared memory setting must be high.
SELinux Issues
- http://www.zoneminder.com/forums/viewtopic.php?t=6337
- http://www.zoneminder.com/forums/viewtopic.php?t=4836
- http://www.zoneminder.com/forums/viewtopic.php?t=6147
cat sysctl.conf
- Disable response to broadcasts.
- You don't want yourself becoming a Smurf amplifier.
net.ipv4.icmp_echo_ignore_broadcasts = 1
- enable route verification on all interfaces
net.ipv4.conf.all.rp_filter = 1
- enable ipV6 forwarding
- net.ipv6.conf.all.forwarding = 1
kernel.shmall = 134217728
kernel.shmmax = 134217728
Mocord, Record, Modect
http://www.zoneminder.com/forums/viewtopic.php?t=6120
External Triggering
zmtrigger.pl
(Could use your help here)
Modprobe
modprobe.conf mod = 133 or something like that for Kodicom http://www.zoneminder.com/forums/viewtopic.php?t=5603
Official ZoneMinder Manual
http://www.zoneminder.com/fileadmin/downloads/README.html
MMS Gateway and API Aoftware
GPRS or HTTP a Jpeg image to the MMS gateway server which in turn sends the image to a mobile phone
- http://www.redcoal.com/
- http://www.zoneminder.com/forums/viewtopic.php?t=6101
- http://wurfl.sourceforge.net/
- http://www.mig.co.za
Multiple zones
http://www.zoneminder.com/forums/viewtopic.php?t=6079
Perl Package zmpgk.pl
Roundrobin
Remote Camera Source/ Using Another ZM Box as a Source==
- http://www.zoneminder.com/forums/viewtopic.php?t=5549
- http://www.zoneminder.com/forums/viewtopic.php?t=5595
- http://www.zoneminder.com/forums/viewtopic.php?t=5549
Simultaneous connections (number off ) to Web browser
Streaming
- rtp and raw streaming
http://www.zoneminder.com/forums/viewtopic.php?t=5572
Settings
- "disable farm out writing of images" 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
http://www.zoneminder.com/forums/viewtopic.php?t=6049
Vehicle Detection Links
- http://www.zoneminder.com/forums/viewtopic.php?t=5858
- http://www.zoneminder.com/forums/viewtopic.php?t=5184&highlight=truck+intersection
- http://www.cnssystems.ca/
- 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.
Water marked
http://www.zoneminder.com/forums/viewtopic.php?t=4591&highlight=watermark http://www.zoneminder.com/forums/viewtopic.php?t=4188&highlight=watermark
xawtv
what from xawtv -hwscan? xawtv -device /dev/video?