<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.staging.zoneminder.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Flasheart</id>
	<title>ZoneMinder Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.staging.zoneminder.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Flasheart"/>
	<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/Special:Contributions/Flasheart"/>
	<updated>2026-04-19T21:35:37Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=MuninPlugins&amp;diff=6201</id>
		<title>MuninPlugins</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=MuninPlugins&amp;diff=6201"/>
		<updated>2014-06-07T10:29:55Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: /* Download */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Zoneminder plugins for Munin==&lt;br /&gt;
&lt;br /&gt;
== About Munin ==&lt;br /&gt;
&lt;br /&gt;
Munin the monitoring tool surveys all your computers and remembers what it saw. &lt;br /&gt;
It presents all the information in graphs through a web interface.&lt;br /&gt;
&lt;br /&gt;
[[Image:Zoneminder_munin_events-day.png]]&lt;br /&gt;
&lt;br /&gt;
== Available plugins ==&lt;br /&gt;
Theses plugins are available :&lt;br /&gt;
&lt;br /&gt;
; zm_events : get the number of events catched by monitors ;&lt;br /&gt;
; zm_fps : get the number of frames per seconds ;&lt;br /&gt;
; zm_hourly_events : get the number of events per hours.&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
&lt;br /&gt;
You can download theses plugins from the subversion repository :&lt;br /&gt;
&lt;br /&gt;
svn co http://svn.csquad.org/zoneminder_munin/&lt;br /&gt;
&lt;br /&gt;
Note: As of 2014, the original svn is no longer active. &lt;br /&gt;
&lt;br /&gt;
The files are available at https://github.com/bhuddah/zoneminder_munin  instead&lt;br /&gt;
&lt;br /&gt;
== Bug reports and Feature Requests ==&lt;br /&gt;
&lt;br /&gt;
Feel free to report bugs and suggest new graphs to cscm at csquad dot org.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=5927</id>
		<title>Using a dedicated Hard Drive</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=5927"/>
		<updated>2013-10-09T15:45:46Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On many installs you may wish to dedicate a hard drive or partition for Zoneminder events. There are many reasons why you may want to change the storage location - security, data segregation, preventing encroachment onto OS partition by zoneminder etc. &lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not terribly difficult to do, but may be non-obvious to the untaught so here&amp;#039;s a brief guide.&lt;br /&gt;
&lt;br /&gt;
Some commands here are based on Debian/Ubuntu installs&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Become root or &amp;quot;sudo -s&amp;quot; to gain root privs.&lt;br /&gt;
&lt;br /&gt;
2. Stop Zoneminder.  &amp;quot;/etc/init.d/zoneminder stop&amp;quot; or &amp;quot;/usr/bin/zmpkg.pl stop&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. Mount your new partition onto the root filesystem, ensuring it is automatically remounted at boot time by editing /etc/fstab  -- For the benefit of this guide, I&amp;#039;m calling my new partition /newdrive&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note this new partition can be a local drive, raid partition, lvm/md device, external NAS, SAN, NFS share or SMB share. The only condition is that the I/O throughput should be up to handling what Zoneminder will throw at it. For that speed reason, some favour non-journalled filesystems and accept the extra risk of data protection&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
4. Locate Zoneminder&amp;#039;s &amp;quot;events&amp;quot; and &amp;quot;images&amp;quot; directories. In Debian, these are usually in /usr/share/zoneminder &lt;br /&gt;
&lt;br /&gt;
If you wish to copy the data across, MOVE the events and images directories to /newdrive  &amp;#039;&amp;#039;(Note this will take a long time on systems with many events). Also, DO NOT restart zoneminder if it cannot locate these files as zmaudit.pl will delete the database entries for any events it cannot match files to&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
If you don&amp;#039;t wish to preserve the data, it is MUCH faster to simply delete or rename the original events and images dirs and create new directories in /newdrive and link to them from the original locations. There is no need to remove the &amp;quot;orphaned&amp;quot; entries in the database, zmaudit will take care of those.&lt;br /&gt;
&lt;br /&gt;
Eg: &lt;br /&gt;
&lt;br /&gt;
mkdir /newdrive/events&lt;br /&gt;
&lt;br /&gt;
mv /usr/share/zoneminder/events /usr/share/zoneminder/events_old&lt;br /&gt;
&lt;br /&gt;
Note: It was recommended to use &amp;#039;&amp;#039;ln -s /newdrive/events /usr/share/zoneminder/events&amp;#039;&amp;#039; to link the new partition in. However, at least with the debian and ubuntu packages, upgrading zoneminder later will delete these symlinks and create new dirs. This will result in all your existing events being removed from the database. &lt;br /&gt;
Update: debian&amp;#039;s upgrader will now (v.1.25) abort if it detects a symbolic link instead of silently deleting it.&lt;br /&gt;
&lt;br /&gt;
It has been suggested this is used instead to mount the new drives;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&lt;br /&gt;
these lines in fstab could allow you to bind-mount an alternate location:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdX1 /otherdrive ext3 defaults 0 2&lt;br /&gt;
 /otherdrive/zoneminder/images /var/cache/zoneminder/images none defaults,bind  0 2&lt;br /&gt;
 /otherdrive/zoneminder/events /var/cache/zoneminder/events none defaults,bind 0 2&lt;br /&gt;
&lt;br /&gt;
or in some cases,&lt;br /&gt;
&lt;br /&gt;
 /otherdrive/zoneminder/images /usr/share/zoneminder/images none defaults,bind  0 2&lt;br /&gt;
 /otherdrive/zoneminder/events /usr/share/zoneminder/events none defaults,bind 0 2&lt;br /&gt;
&lt;br /&gt;
or if you have a separate partition for each:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdX1 /var/cache/zoneminder/images ext3 defaults 0 2&lt;br /&gt;
 /dev/sdX2 /var/cache/zoneminder/events ext3 defaults 0 2&lt;br /&gt;
(Repeat for images)&lt;br /&gt;
&amp;#039;&amp;#039;&lt;br /&gt;
5. Finally, restart zoneminder ( &amp;quot;/etc/init.d/zoneminder start&amp;quot; or &amp;quot;/usr/bin/zmpkg.pl start&amp;quot;)  Monitor its operation and ensure new events are being created normally and are viewable. Zoneminder should also update the &amp;quot;Disk: %%&amp;quot; on its Console screen to reflect the disk space on its new partition.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Automatically_Adding_Monitors&amp;diff=5762</id>
		<title>Automatically Adding Monitors</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Automatically_Adding_Monitors&amp;diff=5762"/>
		<updated>2013-06-27T15:03:34Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I recently had cause to want to add monitors to Zoneminder automatically. This is how I did it. It&amp;#039;s probably not the correct way - I got it working through trial and error (never the most compatible method) and I&amp;#039;m a somewhat cavalier coder, and others are welcome to edit this page and improve the procedure, but it does work.&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER!  This could hose your database. If Zoneminder&amp;#039;s schema changes in the future, it almost certainly will. Use at your own risk!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reason: I manage over a 100 CCTV cameras across five sites via bespoke perl cgi software. This display and arrange direct mjepg feeds (described in [[IpCamMontage]] ), and I wanted to be able to control my various remote zoneminder servers using that. Managing this directly is time consuming, and should a server go down it&amp;#039;s a right faff to set up again. This way would allow me to re-configure a server instantly. I could also use it to set various configurations.&lt;br /&gt;
&lt;br /&gt;
Firstly, add a user to mysql with write permissions to the ZM database and if your software isn&amp;#039;t local, allow them to connect from anywhere/your control server using a decent password.&lt;br /&gt;
&lt;br /&gt;
Then simply issue a mysql INSERT such as;&lt;br /&gt;
&lt;br /&gt;
INSERT INTO Monitors SET name = &amp;#039;Camera_Name&amp;#039;, type=&amp;#039;Remote&amp;#039;, Port=&amp;#039;80&amp;#039;, host=&amp;#039;10.10.10.5&amp;#039;, path = &amp;#039;/videostream.cgi?user=username&amp;amp;pwd=password&amp;#039;, width=&amp;#039;640&amp;#039;, height=&amp;#039;480&amp;#039;, Function = &amp;#039;Mocord&amp;#039;, MaxFPS = &amp;#039;5.00&amp;#039;, AlarmMaxFPS = &amp;#039;5.00&amp;#039;, Protocol = &amp;#039;http&amp;#039;, Method = &amp;#039;simple&amp;#039;, Palette = &amp;#039;3&amp;#039; &lt;br /&gt;
&lt;br /&gt;
The above is enough (with ZM 1.25) to add a new monitor to Zoneminder. In this case, for a Foscam-compatible camera at 10.10.10.5, using mjpeg with a camera user/pass of username/password in VGA colour - using Mocord at 5fps.&lt;br /&gt;
&lt;br /&gt;
If you also want to use motion detection (modect/mocord) then you&amp;#039;ll need to add a zone too. First you&amp;#039;ll need to find the monitorId of the event you&amp;#039;ve just added, then use something like this, which is for a 640x480 image&lt;br /&gt;
&lt;br /&gt;
INSERT INTO Zones SET  MonitorId = &amp;#039;$monitorID&amp;#039;, Name = &amp;#039;All&amp;#039;, Type = &amp;#039;Active&amp;#039;, Units=&amp;#039;Percent&amp;#039;, NumCoords=4, Coords=&amp;#039;0,0 639,0 639,479 0,479&amp;#039;, Area = 307200, AlarmRGB=16711680, CheckMethod=&amp;#039;Blobs&amp;#039;, MinPixelThreshold=25, MinAlarmPixels=9216, MaxAlarmPixels=230400, FilterX=3, FilterY=3, MinFilterPixels=9216, MaxFilterPixels=230400, MinBlobPixels=6144, MinBlobs=1 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you happen to have Zoneminder&amp;#039;s console open, nothing will happen until it refreshes, or you force a refresh, then the new monitor will show. Zoneminder won&amp;#039;t immediately activate it, but after a minute or so will notice this monitor and that it&amp;#039;s not doing anything, and start it.&lt;br /&gt;
&lt;br /&gt;
And of course, by directly manipulating the database, you can set statuses and delete monitors too. (I find the Zoneminder way of automatically setting statuses for day/night rather clunky and tiresome to keep up to date with changing monitors). By issuing db commands directly, you can of course control it as much as you like.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;re a strict coder and the above fills you with horror, well, I do understand. :)&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Automatically_Adding_Monitors&amp;diff=5761</id>
		<title>Automatically Adding Monitors</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Automatically_Adding_Monitors&amp;diff=5761"/>
		<updated>2013-06-24T20:22:41Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: Created page with &amp;quot;I recently had cause to want to add monitors to Zoneminder automatically. This is how I did it. It&amp;#039;s probably not the correct way - I got it working through trial and error (n...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I recently had cause to want to add monitors to Zoneminder automatically. This is how I did it. It&amp;#039;s probably not the correct way - I got it working through trial and error (never the most compatible method) and I&amp;#039;m a somewhat cavalier coder, and others are welcome to edit this page and improve the procedure, but it does work.&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER!  This could hose your database. If Zoneminder&amp;#039;s schema changes in the future, it almost certainly will. Use at your own risk!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reason: I manage over a 100 CCTV cameras across five sites via bespoke perl cgi software. This display and arrange direct mjepg feeds (described in [[IpCamMontage]] ), and I wanted to be able to control my various remote zoneminder servers using that. Managing this directly is time consuming, and should a server go down it&amp;#039;s a right faff to set up again. This way would allow me to re-configure a server instantly. I could also use it to set various configurations.&lt;br /&gt;
&lt;br /&gt;
Firstly, add a user to mysql with write permissions to the ZM database and if your software isn&amp;#039;t local, allow them to connect from anywhere/your control server using a decent password.&lt;br /&gt;
&lt;br /&gt;
Then simply issue a mysql INSERT such as;&lt;br /&gt;
&lt;br /&gt;
INSERT INTO Monitors SET name = &amp;#039;Camera_Name&amp;#039;, type=&amp;#039;Remote&amp;#039;, Port=&amp;#039;80&amp;#039;, host=&amp;#039;10.10.10.5&amp;#039;, path = &amp;#039;/videostream.cgi?user=username&amp;amp;pwd=password&amp;#039;, width=&amp;#039;640&amp;#039;, height=&amp;#039;480&amp;#039;, Function = &amp;#039;Mocord&amp;#039;, MaxFPS = &amp;#039;5.00&amp;#039;, AlarmMaxFPS = &amp;#039;5.00&amp;#039;, Protocol = &amp;#039;http&amp;#039;, Method = &amp;#039;simple&amp;#039;, Palette = &amp;#039;3&amp;#039; &lt;br /&gt;
&lt;br /&gt;
The above is enough (with ZM 1.25) to add a new monitor to Zoneminder. In this case, for a Foscam-compatible camera at 10.10.10.5, using mjpeg with a camera user/pass of username/password in VGA colour - using Mocord at 5fps.&lt;br /&gt;
&lt;br /&gt;
If you happen to have Zoneminder&amp;#039;s console open, nothing will happen until it refreshes, or you force a refresh, then the new monitor will show. Zoneminder won&amp;#039;t immediately activate it, but after a minute or so will notice this monitor and that it&amp;#039;s not doing anything, and start it.&lt;br /&gt;
&lt;br /&gt;
And of course, by directly manipulating the database, you can set statuses and delete monitors too. (I find the Zoneminder way of automatically setting statuses for day/night rather clunky and tiresome to keep up to date with changing monitors). By issuing db commands directly, you can of course control it as much as you like.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;re a strict coder and the above fills you with horror, well, I do understand. :)&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Add_a_user_to_ZoneMinder&amp;diff=5736</id>
		<title>Add a user to ZoneMinder</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Add_a_user_to_ZoneMinder&amp;diff=5736"/>
		<updated>2013-06-06T08:21:46Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: /* Navigate to the user settings */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--[[User:Stagecoach|stagecoach]] 15:27, 23 October 2010 (BST)&lt;br /&gt;
&lt;br /&gt;
Go back to the [[How_To|How To]] pages...&lt;br /&gt;
&lt;br /&gt;
=How to add a user to ZoneMinder=&lt;br /&gt;
==Navigate to options menu==&lt;br /&gt;
From the landing page navigate to the options menu.&lt;br /&gt;
[[image:Landingpage.png|thumb|none|caption|How to get to the ZoneMinder main menu]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Navigate to the user settings==&lt;br /&gt;
When you open up the options menu by default you are on the system settings tab, navigate to the users tab. &amp;lt;b&amp;gt;Note: This tab only appears when OPT_USE_AUTH is enabled in the &amp;#039;System&amp;#039; section of options, and Zoneminder is restarted.&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
[[image: Options_system.png|thumb|none|caption|How to get to the user settings]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From this view you can see a list of current users and their permission settings. Click the add new user button to continue.&lt;br /&gt;
[[image: Options_user.png|right|thumb|none|caption|How to find add user configuration]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configure user settings==&lt;br /&gt;
&lt;br /&gt;
On this page we can add a new user with the username, password and permissions of our choice.&lt;br /&gt;
In the restricted monitor field it is possible to restrict which cameras a user can view by clicking on them while holding down the shift key. When you have finished configuring the language/permissions and restricted monitors simply save the settings by clicking the save button.&lt;br /&gt;
[[image: Options_adduser.png|none|thumb|caption|Add user configuration form]]&lt;br /&gt;
&lt;br /&gt;
If this procedure was successful we will be able to see the new user under the &amp;quot;users&amp;quot; tab in the options. In this example i have added a user called &amp;#039;security&amp;#039; restricted to view only &amp;#039;monitor-2. Too make changes to a user simply click on their name and change settings as required.&lt;br /&gt;
[[image: Options_userAdded.png|none|thumb|caption|Successfully added new user]]&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Add_a_user_to_ZoneMinder&amp;diff=5735</id>
		<title>Add a user to ZoneMinder</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Add_a_user_to_ZoneMinder&amp;diff=5735"/>
		<updated>2013-06-06T08:21:25Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--[[User:Stagecoach|stagecoach]] 15:27, 23 October 2010 (BST)&lt;br /&gt;
&lt;br /&gt;
Go back to the [[How_To|How To]] pages...&lt;br /&gt;
&lt;br /&gt;
=How to add a user to ZoneMinder=&lt;br /&gt;
==Navigate to options menu==&lt;br /&gt;
From the landing page navigate to the options menu.&lt;br /&gt;
[[image:Landingpage.png|thumb|none|caption|How to get to the ZoneMinder main menu]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Navigate to the user settings==&lt;br /&gt;
When you open up the options menu by default you are on the system settings tab, navigate to the users tab. &amp;lt;b&amp;gt;Note: This tab only appears when OPT_USE_AUTH is enabled in the &amp;#039;System&amp;#039; section of options, and Zoneminder is restarted.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
[[image: Options_system.png|thumb|none|caption|How to get to the user settings]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From this view you can see a list of current users and their permission settings. Click the add new user button to continue.&lt;br /&gt;
[[image: Options_user.png|right|thumb|none|caption|How to find add user configuration]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==Configure user settings==&lt;br /&gt;
&lt;br /&gt;
On this page we can add a new user with the username, password and permissions of our choice.&lt;br /&gt;
In the restricted monitor field it is possible to restrict which cameras a user can view by clicking on them while holding down the shift key. When you have finished configuring the language/permissions and restricted monitors simply save the settings by clicking the save button.&lt;br /&gt;
[[image: Options_adduser.png|none|thumb|caption|Add user configuration form]]&lt;br /&gt;
&lt;br /&gt;
If this procedure was successful we will be able to see the new user under the &amp;quot;users&amp;quot; tab in the options. In this example i have added a user called &amp;#039;security&amp;#039; restricted to view only &amp;#039;monitor-2. Too make changes to a user simply click on their name and change settings as required.&lt;br /&gt;
[[image: Options_userAdded.png|none|thumb|caption|Successfully added new user]]&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Backups&amp;diff=5731</id>
		<title>Backups</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Backups&amp;diff=5731"/>
		<updated>2013-05-24T14:59:27Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: Created page with &amp;quot;General notes about backups:  Zoneminder requires the filesystem to be backed up, AND the Database. It can be backed up whilst running (if you can accept the odd missing event...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;General notes about backups:&lt;br /&gt;
&lt;br /&gt;
Zoneminder requires the filesystem to be backed up, AND the Database. It can be backed up whilst running (if you can accept the odd missing event taken during the backup).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Backing up ==&lt;br /&gt;
&lt;br /&gt;
A typical backup would be to dump the mysql database &amp;quot;zm&amp;quot; and also the events directories. Because of the size of both of these in an active system with many cameras, this may require a LOT of space. The events won&amp;#039;t compress well, being JPGs (already compressed) The event directory is build and distro dependant, but on a typical debian install will be in /usr/share/zoneminder/events &lt;br /&gt;
&lt;br /&gt;
ZM&amp;#039;s main configuration is kept in the mysql database, although some basic settings are typically held in /etc/zm (debian)&lt;br /&gt;
&lt;br /&gt;
How often you do this is up to you, but consider CPU load during backup, and length of backup. It&amp;#039;s not unknown for a highly stressed server to be overwhelmed with a large backup.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;backup-manager&amp;quot; is an excellent program that will do both database and directories, and sequentialise them as you wish, keeping only the N most recent. It can transfer them offsite too.&lt;br /&gt;
&lt;br /&gt;
Because of these complexities, some zoneminder admins do not do do regular backups, preferring to archive and export as video any events they particularly want to keep as they occur.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Offsite Live Backups ==&lt;br /&gt;
&lt;br /&gt;
Occasionally an admin realises that because the server recording CCTV is housed at the same location it is recording, should a burglary take place the thieves are likely to take the shiny server while they&amp;#039;re at it, even if they don&amp;#039;t realise it&amp;#039;s acting as a cctv recorder. It&amp;#039;s hard to dispute this logic. However, because of the amount of bandwidth a medium sized zoneminder install requires, offsite backups may be difficult to achieve using consumer grade technologies. A professional thief may also cut phone/data wires or power before gaining entry.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Some thoughts to formulating your plan... ==&lt;br /&gt;
&lt;br /&gt;
* Hide the server!  Make it hidden. Cupboards, in loftspace, an outbuilding, etc. Consideration should be given to heat dissipation, dust, acessibility and noise - but this is a low cost and often effective low-tech solution.&lt;br /&gt;
&lt;br /&gt;
* Record offsite. You can use existing technologies like NFS to mount a remote drive to your local server, and change your events/ do to live on that. The downside is fairly obvious - you will need a LOT of upstream bandwidth to cope with anything but the most basic of installs. Of course, you will also have to formulate a plan for keeping the database up to date too, unless you want a lot of manual digging through directories to find the files you want.&lt;br /&gt;
&lt;br /&gt;
* Record selected cameras from a remote server. Either using IP cameras, or having Zoneminder locally acting as a transcoder (you can record from a zoneminder monitor), have a remote server recording 1 or 2 cameras so you at least stand a shot. This is also a highly configurable system allowing for you to adjust FPS, size and colour to suit your upstream.&lt;br /&gt;
&lt;br /&gt;
* Synchronous backup. In theory it&amp;#039;s possible to set mysql to replicate to a slave database offsite, and have rsync (or similar) constantly synchronising the events/ dir. Given the large file directories (deep or not), I have no idea how rsync will cope constantly syncing such a large filesystem with regard to both local cpu and io load, and bandwidth. If you have experience of this, please expand this article.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Talk:Panasonic&amp;diff=5635</id>
		<title>Talk:Panasonic</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Talk:Panasonic&amp;diff=5635"/>
		<updated>2013-01-27T20:14:27Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: Created page with &amp;quot;&amp;quot;Panasonic equipment after you have a working ZoneMinder configuration. ZoneMinder handles network camera authentication very poorly, which can cause frustrating problems like...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;quot;Panasonic equipment after you have a working ZoneMinder configuration. ZoneMinder handles network camera authentication very poorly, which can cause frustrating problems like the &amp;quot;white screen&amp;quot; error, the &amp;quot;blue screen&amp;quot; error, &amp;quot;exit 255&amp;quot; crashes, or segmentation faults.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I found this statement both unsubstantiated and incredibly misleading, so have removed it unless the author can justify it. It was found by someone seeking help with bluescreens on a trendnet camera and it caused more confusion than help.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Panasonic&amp;diff=5634</id>
		<title>Panasonic</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Panasonic&amp;diff=5634"/>
		<updated>2013-01-27T20:11:00Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: /* Initial Hardware Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All members of the BL and BB model families are likely to be compatible, including PTZ support.  The &amp;quot;Panasonic IP&amp;quot; monitor preset in ZoneMinder is known to be compatible with these Panasonic netcam models:&lt;br /&gt;
&lt;br /&gt;
* BL-C1A, BL-C1CN, BL-C1E&lt;br /&gt;
* BL-C20A, BL-C20CN, BL-C20E&lt;br /&gt;
* BL-C30A, BL-C30CN, BL-C30E&lt;br /&gt;
* BL-C101A, BL-C101CN, BL-C101E&lt;br /&gt;
* BL-C111A, BL-C111CN, BL-C111E&lt;br /&gt;
* BL-C121A, BL-C121CN, BL-C121E&lt;br /&gt;
* BL-C131A, BL-C131CN, BL-C131E&lt;br /&gt;
* BL-C140A, BL-C140CN, BL-C140E&lt;br /&gt;
* BL-C160A, BL-C160CN, BL-C160E&lt;br /&gt;
* BB-HCM381A, BB-HCM381CN, BB-HCM381E&lt;br /&gt;
* BB-HCM511A, BB-HCM511CN, BB-HCM511E&lt;br /&gt;
* BB-HCM527A, BB-HCM527CN, BB-HCM527E&lt;br /&gt;
* BB-HCM531A, BB-HCM531CN, BB-HCM531E&lt;br /&gt;
* BB-HCM547A, BB-HCM547CN, BB-HCM547E&lt;br /&gt;
* BB-HCM580A, BB-HCM580CN, BB-HCM580E&lt;br /&gt;
* BB-HCM581A, BB-HCM581CN, BB-HCM581E&lt;br /&gt;
* KX-HCM10&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Initial Hardware Setup=&lt;br /&gt;
&lt;br /&gt;
# The camera uses a default IP address of 192.168.0.254 if it does not get a DHCP lease.  Many firmware revisions ship with DHCP disabled by default.  If you are not using the configuration utility for Microsoft Windows, then you may need to do something like `sudo ifconfig eth0:0 192.168.0.2` at a terminal prompt to access the camera and enable DHCP.&lt;br /&gt;
# Upgrade the firmware. ZoneMinder 1.25 expects version 3.00 or later.&lt;br /&gt;
# Enable the guest account:&lt;br /&gt;
## Click &amp;#039;&amp;#039;Setup&amp;#039;&amp;#039; in the top menu.&lt;br /&gt;
## Click &amp;#039;&amp;#039;Administrator&amp;#039;&amp;#039; in the side menu.&lt;br /&gt;
## Choose &amp;#039;&amp;#039;Permit access from guest users&amp;#039;&amp;#039;.&lt;br /&gt;
## Click the &amp;#039;&amp;#039;Save&amp;#039;&amp;#039; button.&lt;br /&gt;
# Set privileges on the guest account for ZoneMinder:&lt;br /&gt;
## Click &amp;#039;&amp;#039;Setup&amp;#039;&amp;#039; in the top menu.&lt;br /&gt;
## Click &amp;#039;&amp;#039;General User&amp;#039;&amp;#039; in the side menu.&lt;br /&gt;
## Choose &amp;#039;&amp;#039;Guest User&amp;#039;&amp;#039; in the menu.&lt;br /&gt;
## Click the &amp;#039;&amp;#039;Modify&amp;#039;&amp;#039; button.&lt;br /&gt;
## Change &amp;#039;&amp;#039;Video Display Time&amp;#039;&amp;#039; to &amp;#039;&amp;#039;Unlimited&amp;#039;&amp;#039;.&lt;br /&gt;
## Enable all &amp;#039;&amp;#039;Access Level&amp;#039;&amp;#039; checkboxes.&lt;br /&gt;
## Click the &amp;#039;&amp;#039;Save&amp;#039;&amp;#039; button.&lt;br /&gt;
&lt;br /&gt;
Only set access credentials on Panasonic equipment after you have a working ZoneMinder configuration.&lt;br /&gt;
&lt;br /&gt;
=MJPEG Configuration=&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
At the &amp;#039;&amp;#039;Monitor -&amp;gt; Source&amp;#039;&amp;#039; page for the camera:&lt;br /&gt;
&lt;br /&gt;
  Remote Protocol: HTTP&lt;br /&gt;
  Remote Method: Simple&lt;br /&gt;
  Remote Host Name: 192.168.1.254&lt;br /&gt;
  Remote Host Port: 80&lt;br /&gt;
  Remote Host Path: nphMotionJpeg?Resolution=640x480&amp;amp;Quality=Standard&lt;br /&gt;
  Remote Image Colors: 24 bit color&lt;br /&gt;
  Capture Width (pixels): 640&lt;br /&gt;
  Capture Height (pixels): 480&lt;br /&gt;
  Preserve Aspect Ratio: Off&lt;br /&gt;
  Orientation: Normal&lt;br /&gt;
&lt;br /&gt;
==Example for Old Firmware==&lt;br /&gt;
&lt;br /&gt;
Change &amp;#039;&amp;#039;&amp;#039;nphMotionJpeg&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;nphContinuousServerPush&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;cgi-bin/nphContinuousServerPush&amp;#039;&amp;#039;&amp;#039; if the camera has old firmware like this:&lt;br /&gt;
&lt;br /&gt;
  Remote Host Path: cgi-bin/nphContinuousServerPush?Resolution=640x480&amp;amp;Quality=Standard&lt;br /&gt;
&lt;br /&gt;
Cameras models that only have the old version 2.00 firmware interface are:&lt;br /&gt;
&lt;br /&gt;
* BL-C20A&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
The required &amp;#039;&amp;#039;&amp;#039;Quality&amp;#039;&amp;#039;&amp;#039; CGI parameter sets JPEG quality and can be one of Clarity, Standard, or Motion.&lt;br /&gt;
&lt;br /&gt;
The required &amp;#039;&amp;#039;&amp;#039;Resolution&amp;#039;&amp;#039;&amp;#039; CGI parameter can be one of 1280x1024, 640x480, 320x240, or 160x120 pixels.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; Only hi-def models support the 1280x1024 resolution, and some low end models like the Panasonic BL-C1A Petcam do not support the 640x480 resolution.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! MJPEG Frame Size&lt;br /&gt;
| Quality=Clarity&lt;br /&gt;
| Quality=Standard&lt;br /&gt;
| Quality=Motion&lt;br /&gt;
|-&lt;br /&gt;
| Resolution=1280x1024&lt;br /&gt;
| ?&lt;br /&gt;
| ?&lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| Resolution=640x480&lt;br /&gt;
| 50kB&lt;br /&gt;
| 30kB&lt;br /&gt;
| 20kb&lt;br /&gt;
|-&lt;br /&gt;
| Resolution=320x240&lt;br /&gt;
| 25kB&lt;br /&gt;
| 15kB&lt;br /&gt;
| 8kB&lt;br /&gt;
|-&lt;br /&gt;
| Resolution=160x120&lt;br /&gt;
| 8kB&lt;br /&gt;
| 5kB&lt;br /&gt;
| 3kB&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The optional &amp;#039;&amp;#039;&amp;#039;Framerate&amp;#039;&amp;#039;&amp;#039; parameter can be 0.1 through 30.00 frames per second in one-tenth increments.  For example, to take an image every other second:&lt;br /&gt;
&lt;br /&gt;
  Remote Host Path: nphMotionJpeg?Resolution=640x480&amp;amp;Quality=Standard&amp;amp;Framerate=0.5&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; The default MJPEG frame rate in the web interface is the same as &amp;quot;MPEG-4 Max. Frame Rate&amp;quot; option, which is set on the &amp;#039;&amp;#039;Video Streaming&amp;#039;&amp;#039; page.&lt;br /&gt;
&lt;br /&gt;
==Performance==&lt;br /&gt;
&lt;br /&gt;
In MJPEG mode with a default configuration, ZoneMinder can sustain approximately 5 fps from a Panasonic netcam.  In ideal conditions with tuning, the maximum is approximately 25 fps.&lt;br /&gt;
&lt;br /&gt;
On slow or busy systems, ZoneMinder performs better if the frame rate is externally limited at the camera.  For example, to limit capture to 10 fps, set:&lt;br /&gt;
&lt;br /&gt;
  Remote Host Path: nphMotionJpeg?Resolution=640x480&amp;amp;Quality=Standard&amp;amp;Framerate=10&lt;br /&gt;
&lt;br /&gt;
On the &amp;#039;&amp;#039;Monitor -&amp;gt; General&amp;#039;&amp;#039; configuration page for the camera in ZoneMinder, leave the &amp;#039;&amp;#039;&amp;#039;Maximum FPS&amp;#039;&amp;#039;&amp;#039; field empty.&lt;br /&gt;
&lt;br /&gt;
=RTSP/MPEG4 Configuration=&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;:  Low end models like the Panasonic BL-C1A Petcam only support MJPEG because they do not have an MPEG4 encoder.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
At the &amp;#039;&amp;#039;Monitor -&amp;gt; Source&amp;#039;&amp;#039; page for the camera:&lt;br /&gt;
&lt;br /&gt;
  Remote Protocol: RTSP&lt;br /&gt;
  Remote Method: RTP/Unicast&lt;br /&gt;
  Remote Host Name: 192.168.1.254&lt;br /&gt;
  Remote Host Port: 554&lt;br /&gt;
  Remote Host Path: nphMpeg4/nil-640x480&lt;br /&gt;
  Remote Image Colors: 24 bitcolor&lt;br /&gt;
  Capture Width (pixels): 640&lt;br /&gt;
  Capture Height (pixels): 480&lt;br /&gt;
  Preserve Aspect Ratio: Off&lt;br /&gt;
  Orientation: Normal&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; Only high definition models support the 1280x1024 resolution.&lt;br /&gt;
&lt;br /&gt;
Available streaming resolutions are:&lt;br /&gt;
&lt;br /&gt;
  Remote Host Path: nphMpeg4/nil-1280x1024&lt;br /&gt;
  Remote Host Path: nphMpeg4/nil-640x480&lt;br /&gt;
  Remote Host Path: nphMpeg4/nil-320x240&lt;br /&gt;
  Remote Host Path: nphMpeg4/nil-160x120&lt;br /&gt;
&lt;br /&gt;
None of these URIs take parameters. Video streaming options are always global and can only be changed through the CGI or web interface.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; The camera must be manually rebooted for MPEG-4 or H.264 options to take affect.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; Audio can be enabled on models that have it by changing the &amp;#039;&amp;#039;&amp;#039;nil&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;g726&amp;#039;&amp;#039;&amp;#039;, but ZoneMinder lacks audio support, so doing this would waste network capacity and storage.  For example:&lt;br /&gt;
&lt;br /&gt;
  Remote Host Path: nphMpeg4/g726-640x480&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Performance==&lt;br /&gt;
&lt;br /&gt;
In RTSP mode, ZoneMinder can get 30 fps from a Panasonic netcam that has an MPEG4 encoder.  The raw idle RTP output of a bright quiet scene for these cameras is usually 400 kbps, or 5GB per day.&lt;br /&gt;
&lt;br /&gt;
Even if the RTSP stream is frame limited by the camera, the transport will be at 30fps.  If the frame rate is decreased at the default maximum bit rate, then streaming image quality will noticeably improve.  To reduce streaming bandwidth, reduce both the frame rate and the maximum bit rate on the &amp;quot;Setup -&amp;gt; Video Streaming&amp;quot; page. Remember to reboot the camera on the &amp;quot;Maintenance&amp;quot; tab after changing these options.&lt;br /&gt;
&lt;br /&gt;
ZoneMinder transcodes the MPEG4 stream to add a banner or stream through the web interface.  Doing this on one 640x480@30fps stream can consume an entire core on a modern CPU.  If the CPU becomes overloaded, then the zmc process will crash and the Feed Watch page will be blank or show the broken image icon.  An easy way to reduce CPU load is to set the &amp;quot;Maximum FPS&amp;quot; field on the monitor General tab to 15 or less, but ZoneMinder performs better if frame rate limiting happens at the camera.&lt;br /&gt;
&lt;br /&gt;
=Authentication=&lt;br /&gt;
&lt;br /&gt;
If the camera requires a username and password, then put the credentials in the &amp;#039;&amp;#039;&amp;#039;Remote Host Name&amp;#039;&amp;#039;&amp;#039; field on the &amp;#039;&amp;#039;Monitor -&amp;gt; Source&amp;#039;&amp;#039; tab for the camera in ZoneMinder like this:&lt;br /&gt;
&lt;br /&gt;
  Remote Protocol: HTTP&lt;br /&gt;
  Remote Method: Simple&lt;br /&gt;
  Remote Host Name: &amp;#039;&amp;#039;&amp;#039;MyUser:MyPass@&amp;#039;&amp;#039;&amp;#039;192.168.1.254&lt;br /&gt;
  Remote Host Port: 80&lt;br /&gt;
  Remote Host Path: /nphMotionJpeg?Resolution=640x480&amp;amp;Quality=Standard&lt;br /&gt;
  Remote Image Colors: 24 bit color&lt;br /&gt;
  Capture Width (pixels): 640&lt;br /&gt;
  Capture Height (pixels): 480&lt;br /&gt;
  Preserve Aspect Ratio: Off&lt;br /&gt;
  Orientation: Normal&lt;br /&gt;
&lt;br /&gt;
The username and password are separated by one colon character, which are separated from the IP address or host name by the &amp;#039;at&amp;#039; symbol.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Troubleshooting=&lt;br /&gt;
&lt;br /&gt;
* Using the anonymous guest account with default permissions, or using incorrect credentials, will result in a black box or this error in the zmdc.log file:&lt;br /&gt;
&lt;br /&gt;
  zmdc.ERR [&amp;#039;zmc -m 1&amp;#039; exited abnormally, exit status 255]&lt;br /&gt;
&lt;br /&gt;
* All CGI parameters are case sensitive.  Using &amp;quot;nphmotionjpeg?resolution=640x480&amp;amp;quality=standard&amp;quot; instead of &amp;quot;nphMotionJpeg?Resolution=640x480&amp;amp;Quality=Standard&amp;quot; will cause the camera to return a &amp;quot;400 Bad Request&amp;quot; error.&lt;br /&gt;
&lt;br /&gt;
* Remember to grant all permissions to the ZoneMinder account in the camera and double check the spelling of the username and password.  ZoneMinder does not log a sensible error message if the access privileges or credentials are incorrect, it just crashes.&lt;br /&gt;
&lt;br /&gt;
* Use the VideoLAN player to test RTSP like this:&lt;br /&gt;
&lt;br /&gt;
  vlc rtsp://192.168.0.254/nphMpeg4/nil-640x480&lt;br /&gt;
&lt;br /&gt;
If VLC cannot play the stream, then ZoneMinder cannot record it. (Many other RTSP players are incompatible with Panasonic network cameras.  Use VLC.)&lt;br /&gt;
&lt;br /&gt;
* Using RTSP through NAT usually requires a custom firewall configuration.  Always get MJPEG working first.&lt;br /&gt;
&lt;br /&gt;
* These cameras also provide an RTP-over-HTTP interface over a single port.  In VLC, click &amp;#039;&amp;#039;Media -&amp;gt; Open Network Stream&amp;#039;&amp;#039; and input this URL:&lt;br /&gt;
&lt;br /&gt;
  http://192.168.0.254/rtpOverHttp?Url=nphMpeg4/nil-640x480&lt;br /&gt;
&lt;br /&gt;
This is easier to punch through a firewall, but it has timing and sync problems.&lt;br /&gt;
&lt;br /&gt;
==Hidden Configuration Options==&lt;br /&gt;
&lt;br /&gt;
Login to the web interface, and manually open this URI:&lt;br /&gt;
&lt;br /&gt;
  http://192.168.0.254/Get?Func=VDelivery&amp;amp;Kind=1&lt;br /&gt;
&lt;br /&gt;
The camera could return a list of configuration options like this:&lt;br /&gt;
&lt;br /&gt;
  640framerate:15&lt;br /&gt;
  320framerate:15&lt;br /&gt;
  192framerate:15&lt;br /&gt;
  640bitrateL:256&lt;br /&gt;
  640bitrateH:1024&lt;br /&gt;
  320bitrateL:128&lt;br /&gt;
  320bitrateH:512&lt;br /&gt;
  192bitrateL:64&lt;br /&gt;
  192bitrateH:256&lt;br /&gt;
  RTSPPortNo:554&lt;br /&gt;
  RTPPortMin:33000&lt;br /&gt;
  Multicast:0 &lt;br /&gt;
&lt;br /&gt;
Not all of these options will be exposed in the web interface.  For example, firmware version 3.50 does not expose the MPEG4 framerate option, which is the first line in the example.  You can set it by manually opening this URI in a web browser:&lt;br /&gt;
&lt;br /&gt;
  http://192.168.0.254/Set?Func=VDelivery&amp;amp;Kind=1&amp;amp;640framerate=30&lt;br /&gt;
&lt;br /&gt;
A plain web page like this means success:&lt;br /&gt;
&lt;br /&gt;
  Return:0&lt;br /&gt;
&lt;br /&gt;
=External Resources=&lt;br /&gt;
&lt;br /&gt;
* [http://panasonic.net/pcc/support/netwkcam/download/index.html Panasonic Network Camera Downloads - Firmware, Manuals, and Application Software]&lt;br /&gt;
* [http://panasonic.net/pcc/cgi-bin/products/netwkcam/download_us/tbookmarka_m.cgi?mm=2007032816275868 Panasonic Camera CGI Specification]&lt;br /&gt;
* [http://shop.panasonic.com/shop/cameras-and-camcorders-network-cameras?support Current Panasonic Netcam Catalog]&lt;br /&gt;
&lt;br /&gt;
[[Category:Cameras]]&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=5345</id>
		<title>Helpful user contributed resources</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=5345"/>
		<updated>2012-05-30T13:06:33Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: /* Third party */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Documentation==&lt;br /&gt;
[[Main Documentation]]&lt;br /&gt;
&lt;br /&gt;
[[FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[Supplementary Documentation]]&lt;br /&gt;
&lt;br /&gt;
[[General Notes]]&lt;br /&gt;
&lt;br /&gt;
[[Change History]]&lt;br /&gt;
&lt;br /&gt;
[[Future Development]]&lt;br /&gt;
&lt;br /&gt;
[[Patches]]&lt;br /&gt;
&lt;br /&gt;
[[ZoneMinder 1.24.2 Bugfixes]]&lt;br /&gt;
&lt;br /&gt;
==Supported== &lt;br /&gt;
&lt;br /&gt;
[[Beginner hardware]]&lt;br /&gt;
&lt;br /&gt;
[[Supported distributions]]&lt;br /&gt;
&lt;br /&gt;
[[Hardware Compatibility List ]]&lt;br /&gt;
&lt;br /&gt;
(External: Flash&amp;#039;s IP Camera Database: http://digdilem.org/cameras ]&lt;br /&gt;
&lt;br /&gt;
[[MobileDevices]]&lt;br /&gt;
&lt;br /&gt;
==Distribution-specific guides==&lt;br /&gt;
[[Fedora]] / [[CentOS]]&lt;br /&gt;
&lt;br /&gt;
[[Debian]] / [[Ubuntu]] / [http://www.guiadohardware.net/tutoriais/sistema-vigilancia-zoneminder/ Kurumin (in Portuguese)] &lt;br /&gt;
&lt;br /&gt;
[[Mandrake-Mandriva]] / [[ZMliveCD]]&lt;br /&gt;
&lt;br /&gt;
[[Slackware]]&lt;br /&gt;
&lt;br /&gt;
[[SuSE]]&lt;br /&gt;
&lt;br /&gt;
[[Gentoo]] / [[Sabayon]]&lt;br /&gt;
&lt;br /&gt;
[[Yellow Dog Linux]] / [[Sony PS3]]&lt;br /&gt;
&lt;br /&gt;
[[PCLinuxOS_and_1.23.1|PCLinuxOS]]&lt;br /&gt;
&lt;br /&gt;
[[FreeBSD]]&lt;br /&gt;
&lt;br /&gt;
[[Arch Linux]] / [[ZMLarch]]&lt;br /&gt;
&lt;br /&gt;
[[MS Windows/Virtual Appliance]]&lt;br /&gt;
&lt;br /&gt;
==Third party==&lt;br /&gt;
[[Flash&amp;#039;s IP Camera Database]]&lt;br /&gt;
&lt;br /&gt;
[[Utilities]]&lt;br /&gt;
&lt;br /&gt;
[[Standalone Zm Frontends]]&lt;br /&gt;
&lt;br /&gt;
[http://code.google.com/p/zonerama/ Zonerama] - Merges multiple  monitors into one and supports video creation. &lt;br /&gt;
&lt;br /&gt;
[[IpCamMontage]] Ip Camera Montage - remove the user viewing load from the server for IP Camera setups.&lt;br /&gt;
&lt;br /&gt;
[[Plugins]]&lt;br /&gt;
&lt;br /&gt;
[[Infrared Leds, Cameras, DC-DC converters etc]]&lt;br /&gt;
&lt;br /&gt;
[[Consultants]]&lt;br /&gt;
&lt;br /&gt;
[[Video Recorders running ZM]]&lt;br /&gt;
&lt;br /&gt;
==Other documentation==&lt;br /&gt;
[[External resources of information related to ZM]]&lt;br /&gt;
&lt;br /&gt;
[[How To]] &lt;br /&gt;
&lt;br /&gt;
[[Miscellaneous helpful hints]]&lt;br /&gt;
&lt;br /&gt;
[[Hardware specific tips]]&lt;br /&gt;
&lt;br /&gt;
==CCTV Laws==&lt;br /&gt;
[[Area Specific Laws]]&lt;br /&gt;
&lt;br /&gt;
[http://www.library.ca.gov/CRB/97/05/ California Report on Public Video Surveillance]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=How_Many_Cameras&amp;diff=5277</id>
		<title>How Many Cameras</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=How_Many_Cameras&amp;diff=5277"/>
		<updated>2012-04-29T13:31:14Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: /* Bottlenecks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A question that is often asked is &amp;quot;&amp;#039;&amp;#039;&amp;#039;How many cameras can my server support?&amp;#039;&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Well, it depends. A lot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zoneminder runs well on a quad core HP ML115 with 40 IP cameras. However, that&amp;#039;s a pointless statistic since all of the following have a bearing:&lt;br /&gt;
&lt;br /&gt;
== Factors ==&lt;br /&gt;
&lt;br /&gt;
* Type of use. Recording uses lots of local IO but not much CPU (Although every frame is converted to a .jpg and saved, but not otherwised changed (timestamps etc excepted)). Motion detection uses far more CPU but less disk IO.&lt;br /&gt;
&lt;br /&gt;
* Obviously the hardware available makes a huge impact. RAM is always useful in a linux server, but ZM&amp;#039;s demands are relatively modest - depending also on the size of the ring buffer, pre/post event buffers and how often the website IO is accessed. (Apache adds its own load separate to ZM)&lt;br /&gt;
&lt;br /&gt;
* The type of input. IP cameras can use more CPU but it depends on the stream. Whether JPG, MJPEG, MPEG4 or whatever - each stream is handled differently and each has its own overhead. Analogue cameras are often seen as lower load, but this may be due to them having a generally lower resolution. USB cams are another example, as are file system feeds. &lt;br /&gt;
&lt;br /&gt;
* The size, colour and framerate of the feed. One of the biggest newbie mistakes is to assume that CCTV cameras should be recording at 25fps when in fact it&amp;#039;s not uncommon to see 1, 2, 3 or 5 fps used as the standard. Many IP cams allow you to specify the FPS (and ZM does it itself with JPG mode), and this also lowers the bandwidth used. Colour is often not important with CCTV, dropping to grayscale (if the camera is capable) usually drops the memory, bandwidth and cpu needs to a quarter. Size - well, bigger is better here, provided the camera is capable and doesn&amp;#039;t blur a larger picture by upscaling. Any camera that does this should be taken outside and shot.&lt;br /&gt;
&lt;br /&gt;
* Bandwidth. Not often a consideration in smaller feeds and modern gbit networks, but wireless links can become saturated and if you&amp;#039;re taking feeds over the internet that can be a major bottleneck. There is a useful guide to working out bandwidth and IO here: [[FAQ#How_much_Hard_Disk_Space_.2F_Bandwidth_do_I_need_for_ZM.3F]]&lt;br /&gt;
&lt;br /&gt;
* User loads. If you view the cameras through Zoneminder&amp;#039;s interface you are adding a significant load to the server. With IP cams this is entirely unneccessary and can be achieved by accessing them directly. You can create montages with very simple html - a guide is here; [[IpCamMontage]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The good news is that zoneminder has no fixed limit to the number of monitors it supports. Everything is able to be improved upon in theory and by using clusters or &amp;quot;super servers&amp;quot; you could grow a zoneminder system to quite impressive scales.&lt;br /&gt;
&lt;br /&gt;
There is some help on tuning zoneminder and linux to get the most out of your Zoneminder Server: [[FAQ#Managing_system_load_.28with_IP_Cameras_in_mind.29]]&lt;br /&gt;
&lt;br /&gt;
== Bottlenecks ==&lt;br /&gt;
&lt;br /&gt;
* Server hardware. Overcome by buying a bigger server, linux clustering and offloading the MySql database to another server. (This can make a big difference too!) &lt;br /&gt;
&lt;br /&gt;
* CPU. Reduce size, colour, fps. Remove any shared use from the server, don&amp;#039;t use ZM to view the cameras live if you can avoid it.&lt;br /&gt;
&lt;br /&gt;
* Disk I/O. It is possible to saturate a slow HDD with zoneminder&amp;#039;s recording even on less huge setups. SSD&amp;#039;s are an expensive option, and Raiding and SANs produce fast results.  Using fast SANs you could even allow another server to audit ZM&amp;#039;s files via the remote Mysql database, taking another load off the main server. &lt;br /&gt;
&lt;br /&gt;
* Bandwidth (IP Cams): Reduce size, colour, fps of images. If internet links, improve internet links - multiple DSLs, cable, ethernet whatever is available. If LAN: Improve network hardware. Consider creating more than one physical network and bridging on the local server in extreme cases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, Zoneminder will support as many cameras as you have the hardware available for. Every bottleneck can be overcome, but balancing the cost and need is a decision only you can make.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=How_Many_Cameras&amp;diff=5276</id>
		<title>How Many Cameras</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=How_Many_Cameras&amp;diff=5276"/>
		<updated>2012-04-29T13:21:19Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: /* Factors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A question that is often asked is &amp;quot;&amp;#039;&amp;#039;&amp;#039;How many cameras can my server support?&amp;#039;&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Well, it depends. A lot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zoneminder runs well on a quad core HP ML115 with 40 IP cameras. However, that&amp;#039;s a pointless statistic since all of the following have a bearing:&lt;br /&gt;
&lt;br /&gt;
== Factors ==&lt;br /&gt;
&lt;br /&gt;
* Type of use. Recording uses lots of local IO but not much CPU (Although every frame is converted to a .jpg and saved, but not otherwised changed (timestamps etc excepted)). Motion detection uses far more CPU but less disk IO.&lt;br /&gt;
&lt;br /&gt;
* Obviously the hardware available makes a huge impact. RAM is always useful in a linux server, but ZM&amp;#039;s demands are relatively modest - depending also on the size of the ring buffer, pre/post event buffers and how often the website IO is accessed. (Apache adds its own load separate to ZM)&lt;br /&gt;
&lt;br /&gt;
* The type of input. IP cameras can use more CPU but it depends on the stream. Whether JPG, MJPEG, MPEG4 or whatever - each stream is handled differently and each has its own overhead. Analogue cameras are often seen as lower load, but this may be due to them having a generally lower resolution. USB cams are another example, as are file system feeds. &lt;br /&gt;
&lt;br /&gt;
* The size, colour and framerate of the feed. One of the biggest newbie mistakes is to assume that CCTV cameras should be recording at 25fps when in fact it&amp;#039;s not uncommon to see 1, 2, 3 or 5 fps used as the standard. Many IP cams allow you to specify the FPS (and ZM does it itself with JPG mode), and this also lowers the bandwidth used. Colour is often not important with CCTV, dropping to grayscale (if the camera is capable) usually drops the memory, bandwidth and cpu needs to a quarter. Size - well, bigger is better here, provided the camera is capable and doesn&amp;#039;t blur a larger picture by upscaling. Any camera that does this should be taken outside and shot.&lt;br /&gt;
&lt;br /&gt;
* Bandwidth. Not often a consideration in smaller feeds and modern gbit networks, but wireless links can become saturated and if you&amp;#039;re taking feeds over the internet that can be a major bottleneck. There is a useful guide to working out bandwidth and IO here: [[FAQ#How_much_Hard_Disk_Space_.2F_Bandwidth_do_I_need_for_ZM.3F]]&lt;br /&gt;
&lt;br /&gt;
* User loads. If you view the cameras through Zoneminder&amp;#039;s interface you are adding a significant load to the server. With IP cams this is entirely unneccessary and can be achieved by accessing them directly. You can create montages with very simple html - a guide is here; [[IpCamMontage]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The good news is that zoneminder has no fixed limit to the number of monitors it supports. Everything is able to be improved upon in theory and by using clusters or &amp;quot;super servers&amp;quot; you could grow a zoneminder system to quite impressive scales.&lt;br /&gt;
&lt;br /&gt;
There is some help on tuning zoneminder and linux to get the most out of your Zoneminder Server: [[FAQ#Managing_system_load_.28with_IP_Cameras_in_mind.29]]&lt;br /&gt;
&lt;br /&gt;
== Bottlenecks ==&lt;br /&gt;
&lt;br /&gt;
* Server hardware. Overcome by linux clustering and offloading the MySql database to another server. (This can make a big difference too!) &lt;br /&gt;
&lt;br /&gt;
* CPU. Reduce size, colour, fps. Remove any shared use from the server, don&amp;#039;t use ZM to view the cameras live if you can avoid it.&lt;br /&gt;
&lt;br /&gt;
* Disk I/O. It is possible to saturate a slow HDD with zoneminder&amp;#039;s recording even on less huge setups. SSD&amp;#039;s are an expensive option, and Raiding and SANs produce fast results.  Using fast SANs you could even allow another server to audit ZM&amp;#039;s files via the remote Mysql database, taking another load off the main server. &lt;br /&gt;
&lt;br /&gt;
* Bandwidth (IP Cams): Reduce size, colour, fps of images. If internet links, improve internet links - multiple DSLs, cable, ethernet whatever is available. If LAN: Improve network hardware. Consider creating more than one physical network and bridging on the local server in extreme cases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, Zoneminder will support as many cameras as you have the hardware available for. Every bottleneck can be overcome, but balancing the cost and need is a decision only you can make.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=How_Many_Cameras&amp;diff=5275</id>
		<title>How Many Cameras</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=How_Many_Cameras&amp;diff=5275"/>
		<updated>2012-04-29T13:13:15Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: Created page with &amp;quot;A question that is often asked is &amp;quot;&amp;#039;&amp;#039;&amp;#039;How many cameras can my server support?&amp;#039;&amp;#039;&amp;#039;&amp;quot;   Well, it depends. A lot.   Zoneminder runs well on a quad core HP ML115 with 40 IP cameras. Ho...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A question that is often asked is &amp;quot;&amp;#039;&amp;#039;&amp;#039;How many cameras can my server support?&amp;#039;&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Well, it depends. A lot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zoneminder runs well on a quad core HP ML115 with 40 IP cameras. However, that&amp;#039;s a pointless statistic since all of the following have a bearing:&lt;br /&gt;
&lt;br /&gt;
== Factors ==&lt;br /&gt;
&lt;br /&gt;
* Type of use. Recording uses lots of local IO but not much CPU (Although every frame is converted to a .jpg and saved, but not otherwised changed (timestamps etc excepted)). Motion detection uses far more CPU but less disk IO.&lt;br /&gt;
&lt;br /&gt;
* Obviously the hardware available makes a huge impact. RAM is always useful in a linux server, but ZM&amp;#039;s demands are relatively modest - depending also on the size of the ring buffer, pre/post event buffers and how often the website IO is accessed. (Apache adds its own load separate to ZM)&lt;br /&gt;
&lt;br /&gt;
* The type of input. IP cameras can use more CPU but it depends on the stream. Whether JPG, MJPEG, MPEG4 or whatever - each stream is handled differently and each has its own overhead. Analogue cameras are often seen as lower load, but this may be due to them having a generally lower resolution. USB cams are another example, as are file system feeds. &lt;br /&gt;
&lt;br /&gt;
* The size, colour and framerate of the feed. One of the biggest newbie mistakes is to assume that CCTV cameras should be recording at 25fps when in fact it&amp;#039;s not uncommon to see 1, 2, 3 or 5 fps used as the standard. Many IP cams allow you to specify the FPS (and ZM does it itself with JPG mode), and this also lowers the bandwidth used. Colour is often not important with CCTV, dropping to grayscale (if the camera is capable) usually drops the memory, bandwidth and cpu needs to a quarter. Size - well, bigger is better here, provided the camera is capable and doesn&amp;#039;t blur a larger picture by upscaling. Any camera that does this should be taken outside and shot.&lt;br /&gt;
&lt;br /&gt;
* Bandwidth. Not often a consideration in smaller feeds and modern gbit networks, but wireless links can become saturated and if you&amp;#039;re taking feeds over the internet that can be a major bottleneck. There is a useful guide to working out bandwidth and IO here: [[FAQ#How_much_Hard_Disk_Space_.2F_Bandwidth_do_I_need_for_ZM.3F]]&lt;br /&gt;
&lt;br /&gt;
* User loads. If you view the cameras through Zoneminder&amp;#039;s interface you are adding a significant load to the server. With IP cams this is entirely unneccessary and can be achieved by accessing them directly. You can create montages with very simple html - a guide is here; [[IpCamMontage]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The good news is that zoneminder has no fixed limit to the number of monitors it supports. Everything is able to be improved upon in theory and by using clusters or &amp;quot;super servers&amp;quot; you could grow a zoneminder system to quite impressive scales.&lt;br /&gt;
&lt;br /&gt;
== Bottlenecks ==&lt;br /&gt;
&lt;br /&gt;
* Server hardware. Overcome by linux clustering and offloading the MySql database to another server. (This can make a big difference too!) &lt;br /&gt;
&lt;br /&gt;
* CPU. Reduce size, colour, fps. Remove any shared use from the server, don&amp;#039;t use ZM to view the cameras live if you can avoid it.&lt;br /&gt;
&lt;br /&gt;
* Disk I/O. It is possible to saturate a slow HDD with zoneminder&amp;#039;s recording even on less huge setups. SSD&amp;#039;s are an expensive option, and Raiding and SANs produce fast results.  Using fast SANs you could even allow another server to audit ZM&amp;#039;s files via the remote Mysql database, taking another load off the main server. &lt;br /&gt;
&lt;br /&gt;
* Bandwidth (IP Cams): Reduce size, colour, fps of images. If internet links, improve internet links - multiple DSLs, cable, ethernet whatever is available. If LAN: Improve network hardware. Consider creating more than one physical network and bridging on the local server in extreme cases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, Zoneminder will support as many cameras as you have the hardware available for. Every bottleneck can be overcome, but balancing the cost and need is a decision only you can make.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=ZM4MS&amp;diff=4677</id>
		<title>ZM4MS</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=ZM4MS&amp;diff=4677"/>
		<updated>2011-09-15T06:15:14Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: Reinstate un spammed original by James&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ZM4MS is a windows application that acts as a front end for ZM. It allows streaming of images from upto 36 different sources, these are usualy zm servers but can be ip cameras, anything that gives a pure jpeg. (note will not pass authentication info before the ip). If using zm servers then you can enter multiple servers and zm4ms will get the images fom the server as fast as (a, it can or b, to the refresh rate set in options)&lt;br /&gt;
&lt;br /&gt;
Screen Shots&lt;br /&gt;
&lt;br /&gt;
[[Image:MainScreen.jpg]]&lt;br /&gt;
The above view shows the (optional) Dual head setup this is turned on from settings and when pressing [home key] when in man viewer will load the full screen view on monitor 2 (if dual head is not enabled it will open on the main monitor!)&lt;br /&gt;
This allows siplit screen views on the second monitor with the map view and alarms on the right&lt;br /&gt;
&lt;br /&gt;
[[Image:Dualhead2.jpg]]&lt;br /&gt;
&lt;br /&gt;
Right Click on the full screen view and you can select camera per quadrant or change view (currently up to 16 way split)&lt;br /&gt;
&lt;br /&gt;
[[Image:rightclick.jpg]]&lt;br /&gt;
&lt;br /&gt;
When in the main view you have playback that allow playback for each configured monitor, you can press play on the toolbar or press the green button on any live view windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:alarminfo.jpg]]&lt;br /&gt;
This shows the alarm info (if enabled) is currently very beta, allows you to set alarm tone/speech etc and video responses&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:alarmstill.jpg]]&lt;br /&gt;
&lt;br /&gt;
This shows a few still alarms&lt;br /&gt;
&lt;br /&gt;
For More info please see my site as i will only make major changes here all the minor releases will only be on my site see news at [http://www.jpwilson.eu jpwilson]&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=IpCamMontage&amp;diff=4638</id>
		<title>IpCamMontage</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=IpCamMontage&amp;diff=4638"/>
		<updated>2011-08-24T12:52:20Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Monitoring multiple IP cameras. &lt;br /&gt;
&lt;br /&gt;
Using zoneminder&amp;#039;s montage facility is great, but there&amp;#039;s no denying it puts a lot of extra load on the server. If you&amp;#039;re using IP cameras that can supply mjpeg feeds, this is totally unneccessary and by some simple html can be bypassed completely.&lt;br /&gt;
&lt;br /&gt;
Both firefox and chrome will view mjpeg streams without plugins if they&amp;#039;re enclosed in normal &amp;lt;img&amp;gt; tags. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Example: &amp;lt;img src = &amp;quot;http://10.0.0.112/Jpeg/CamImg.jpg&amp;quot; width=&amp;quot;240&amp;quot; height=&amp;quot;180&amp;quot; &amp;gt;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This will show a 240x180 picture from a Gadspot camera. &lt;br /&gt;
&lt;br /&gt;
Another example, this time for an Axis camera and helping bandwidth by specifying a smaller image size in the first place:&lt;br /&gt;
&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;img src = &amp;quot;http://10.0.0.102/axis-cgi/mjpg/video.cgi?resolution=320x240&amp;quot; width=&amp;quot;240&amp;quot; height=&amp;quot;180&amp;quot; &amp;gt;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Knowing this, you can easily build an html file with these image tags and lay them out as you wish, as many as you can fit on a screen. Save it in your web directories on your server, or even locally on your own computer, and once the html is loaded the server has no part to play in displaying the images and thus no extra load. Leave the server to get on with running zoneminder.&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;ve actually gone a step further with my system. I have a mysql database with the ips, names and mjpg paths for each camera make on my four sites. Users visit a cgi page which generates a table of images based on their choices - there&amp;#039;s a menu along the top allowing them to choose different groups of cameras or view cameras from other sites. Each link visits the cgi script with different parameters which produce a different html file linking to each of the cameras.  That&amp;#039;s probably overkill for most users, but works well for me.&lt;br /&gt;
&lt;br /&gt;
What if you don&amp;#039;t have mjpeg-capable ip cameras, or a mixture? Or even some analogues too? Well you can use zoneminder to convert those inputs and produce an mjpeg stream using zms. Get a live image up on screen, then right-click the image and &amp;quot;Copy image location&amp;quot; - paste that inside an &amp;lt;img&amp;gt; tag and you&amp;#039;ve got a stream for that camera too. Of course, that does put load on the server, but if you&amp;#039;ve got a mixture allows you to move some off, and of course arrange to suit yourself. One of the feeds below is actually from a camera that only provides mpeg4 and I&amp;#039;m using a zm server to include it here. Works ok.&lt;br /&gt;
&lt;br /&gt;
Pictures explain better, so:&lt;br /&gt;
&lt;br /&gt;
[[File:IpCamMontage.jpg]]&lt;br /&gt;
&lt;br /&gt;
(Pink bits conceal private information, and each img links to that camera directly, so that if you see movement and want a bigger picture, just click the corresponding image)&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=IpCamMontage&amp;diff=4637</id>
		<title>IpCamMontage</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=IpCamMontage&amp;diff=4637"/>
		<updated>2011-08-24T12:51:32Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Monitoring multiple IP cameras. &lt;br /&gt;
&lt;br /&gt;
Using zoneminder&amp;#039;s montage facility is great, but there&amp;#039;s no denying it puts a lot of extra load on the server. If you&amp;#039;re using IP cameras that can supply mjpeg feeds, this is totally unneccessary and by some simple html can be bypassed completely.&lt;br /&gt;
&lt;br /&gt;
Both firefox and chrome will view mjpeg streams without plugins if they&amp;#039;re enclosed in normal &amp;lt;img&amp;gt; tags. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Example: &amp;lt;img src = &amp;quot;http://10.0.0.112/Jpeg/CamImg.jpg&amp;quot; width=&amp;quot;240&amp;quot; height=&amp;quot;180&amp;quot; &amp;gt;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This will show a 240x180 picture from a Gadspot camera. &lt;br /&gt;
&lt;br /&gt;
Another example, this time for an Axis camera and helping bandwidth by specifying a smaller image size in the first place:&lt;br /&gt;
&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;img src = &amp;quot;http://10.0.0.102/axis-cgi/mjpg/video.cgi?resolution=320x240&amp;quot; width=&amp;quot;240&amp;quot; height=&amp;quot;180&amp;quot; &amp;gt;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Knowing this, you can easily build an html file with these image tags and lay them out as you wish, as many as you can fit on a screen. Save it in your web directories on your server, or even locally on your own computer, and once the html is loaded the server has no part to play in displaying the images and thus no extra load. Leave the server to get on with running zoneminder.&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;ve actually gone a step further with my system. I have a mysql database with the ips, names and mjpg paths for each camera make on my four sites. Users visit a cgi page which generates a table of images based on their choices - there&amp;#039;s a menu along the top allowing them to choose different groups of cameras or view cameras from other sites. Each link visits the cgi script with different parameters which produce a different html file linking to each of the cameras.  That&amp;#039;s probably overkill for most users, but works well for me.&lt;br /&gt;
&lt;br /&gt;
What if you don&amp;#039;t have mjpeg-capable ip cameras, or a mixture? Or even some analogues too? Well you can use zoneminder to convert those inputs and produce an mjpeg stream using zms. Get a live image up on screen, then right-click the image and &amp;quot;Copy image location&amp;quot; - paste that inside an &amp;lt;img&amp;gt; tag and you&amp;#039;ve got a stream for that camera too. Of course, that does put load on the server, but if you&amp;#039;ve got a mixture allows you to move some off, and of course arrange to suit yourself.&lt;br /&gt;
&lt;br /&gt;
Pictures explain better, so:&lt;br /&gt;
&lt;br /&gt;
[[File:IpCamMontage.jpg]]&lt;br /&gt;
&lt;br /&gt;
(Pink bits conceal private information, and each img links to that camera directly, so that if you see movement and want a bigger picture, just click the corresponding image)&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=IpCamMontage&amp;diff=4636</id>
		<title>IpCamMontage</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=IpCamMontage&amp;diff=4636"/>
		<updated>2011-08-24T12:16:20Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Monitoring multiple IP cameras. &lt;br /&gt;
&lt;br /&gt;
Using zoneminder&amp;#039;s montage facility is great, but there&amp;#039;s no denying it puts a lot of extra load on the server. If you&amp;#039;re using IP cameras that can supply mjpeg feeds, this is totally unneccessary and by some simple html can be bypassed completely.&lt;br /&gt;
&lt;br /&gt;
Both firefox and chrome will view mjpeg streams without plugins if they&amp;#039;re enclosed in normal &amp;lt;img&amp;gt; tags. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Example: &amp;lt;img src = &amp;quot;http://10.0.0.112/Jpeg/CamImg.jpg&amp;quot; width=&amp;quot;240&amp;quot; height=&amp;quot;180&amp;quot; &amp;gt;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This will show a 240x180 picture from a Gadspot camera. &lt;br /&gt;
&lt;br /&gt;
Another example, this time for an Axis camera and helping bandwidth by specifying a smaller image size in the first place:&lt;br /&gt;
&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;img src = &amp;quot;http://10.0.0.102/axis-cgi/mjpg/video.cgi?resolution=320x240&amp;quot; width=&amp;quot;240&amp;quot; height=&amp;quot;180&amp;quot; &amp;gt;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Knowing this, you can easily build an html file with these image tags and lay them out as you wish, as many as you can fit on a screen. Save it in your web directories on your server, or even locally on your own computer, and once the html is loaded the server has no part to play in displaying the images and thus no extra load. Leave the server to get on with running zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;ve actually gone a step further with my system. I have a mysql database with the ips, names and mjpg paths for each camera make on my four sites. Users visit a cgi page which generates a table of images based on their choices - there&amp;#039;s a menu along the top allowing them to choose different groups of cameras or view cameras from other sites. Each link visits the cgi script with different parameters which produce a different html file linking to each of the cameras.  That&amp;#039;s probably overkill for most users, but works well for me.&lt;br /&gt;
&lt;br /&gt;
Pictures explain better, so:&lt;br /&gt;
&lt;br /&gt;
[[File:IpCamMontage.jpg]]&lt;br /&gt;
&lt;br /&gt;
(Pink bits conceal private information, and each img links to that camera directly, so that if you see movement and want a bigger picture, just click the corresponding image)&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=IpCamMontage&amp;diff=4635</id>
		<title>IpCamMontage</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=IpCamMontage&amp;diff=4635"/>
		<updated>2011-08-24T12:15:54Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Monitoring multiple IP cameras. &lt;br /&gt;
&lt;br /&gt;
Using zoneminder&amp;#039;s montage facility is great, but there&amp;#039;s no denying it puts a lot of extra load on the server. If you&amp;#039;re using IP cameras that can supply mjpeg feeds, this is totally unneccessary and by some simple html can be bypassed completely.&lt;br /&gt;
&lt;br /&gt;
Both firefox and chrome will view mjpeg streams without plugins if they&amp;#039;re enclosed in normal &amp;lt;img&amp;gt; tags. &lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;math&amp;gt;&amp;lt;img src = &amp;quot;http://10.0.0.112/Jpeg/CamImg.jpg&amp;quot; width=&amp;quot;240&amp;quot; height=&amp;quot;180&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
This will show a 240x180 picture from a Gadspot camera. &lt;br /&gt;
&lt;br /&gt;
Another example, this time for an Axis camera and helping bandwidth by specifying a smaller image size in the first place:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&amp;lt;img src = &amp;quot;http://10.0.0.102/axis-cgi/mjpg/video.cgi?resolution=320x240&amp;quot; width=&amp;quot;240&amp;quot; height=&amp;quot;180&amp;quot; &amp;gt;&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Knowing this, you can easily build an html file with these image tags and lay them out as you wish, as many as you can fit on a screen. Save it in your web directories on your server, or even locally on your own computer, and once the html is loaded the server has no part to play in displaying the images and thus no extra load. Leave the server to get on with running zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;ve actually gone a step further with my system. I have a mysql database with the ips, names and mjpg paths for each camera make on my four sites. Users visit a cgi page which generates a table of images based on their choices - there&amp;#039;s a menu along the top allowing them to choose different groups of cameras or view cameras from other sites. Each link visits the cgi script with different parameters which produce a different html file linking to each of the cameras.  That&amp;#039;s probably overkill for most users, but works well for me.&lt;br /&gt;
&lt;br /&gt;
Pictures explain better, so:&lt;br /&gt;
&lt;br /&gt;
[[File:IpCamMontage.jpg]]&lt;br /&gt;
&lt;br /&gt;
(Pink bits conceal private information, and each img links to that camera directly, so that if you see movement and want a bigger picture, just click the corresponding image)&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=File:IpCamMontage.jpg&amp;diff=4634</id>
		<title>File:IpCamMontage.jpg</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=File:IpCamMontage.jpg&amp;diff=4634"/>
		<updated>2011-08-24T12:14:05Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: Demonstration of img tags displaying live video feeds in html&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Demonstration of img tags displaying live video feeds in html&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=IpCamMontage&amp;diff=4633</id>
		<title>IpCamMontage</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=IpCamMontage&amp;diff=4633"/>
		<updated>2011-08-24T12:13:18Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: Created page with &amp;quot;Monitoring multiple IP cameras.   Using zoneminder&amp;#039;s montage facility is great, but there&amp;#039;s no denying it puts a lot of extra load on the server. If you&amp;#039;re using IP cameras that ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Monitoring multiple IP cameras. &lt;br /&gt;
&lt;br /&gt;
Using zoneminder&amp;#039;s montage facility is great, but there&amp;#039;s no denying it puts a lot of extra load on the server. If you&amp;#039;re using IP cameras that can supply mjpeg feeds, this is totally unneccessary and by some simple html can be bypassed completely.&lt;br /&gt;
&lt;br /&gt;
Both firefox and chrome will view mjpeg streams without plugins if they&amp;#039;re enclosed in normal &amp;lt;img&amp;gt; tags. &lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;img src = &amp;quot;http://10.0.0.112/Jpeg/CamImg.jpg&amp;quot; width=&amp;quot;240&amp;quot; height=&amp;quot;180&amp;quot; &amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will show a 240x180 picture from a Gadspot camera. &lt;br /&gt;
&lt;br /&gt;
Another example, this time for an Axis camera and helping bandwidth by specifying a smaller image size in the first place:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;img src = &amp;quot;http://10.0.0.102/axis-cgi/mjpg/video.cgi?resolution=320x240&amp;quot; width=&amp;quot;240&amp;quot; height=&amp;quot;180&amp;quot; &amp;gt;&lt;br /&gt;
&lt;br /&gt;
Knowing this, you can easily build an html file with these image tags and lay them out as you wish, as many as you can fit on a screen. Save it in your web directories on your server, or even locally on your own computer, and once the html is loaded the server has no part to play in displaying the images and thus no extra load. Leave the server to get on with running zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;ve actually gone a step further with my system. I have a mysql database with the ips, names and mjpg paths for each camera make on my four sites. Users visit a cgi page which generates a table of images based on their choices - there&amp;#039;s a menu along the top allowing them to choose different groups of cameras or view cameras from other sites. Each link visits the cgi script with different parameters which produce a different html file linking to each of the cameras. &lt;br /&gt;
&lt;br /&gt;
Pictures explain better, so:&lt;br /&gt;
&lt;br /&gt;
[[File:IpCamMontage.jpg]]&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=4556</id>
		<title>Helpful user contributed resources</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=4556"/>
		<updated>2011-06-25T20:57:30Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: /* Supported */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Documentation==&lt;br /&gt;
[[Main Documentation]]&lt;br /&gt;
&lt;br /&gt;
[[FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[Supplementary Documentation]]&lt;br /&gt;
&lt;br /&gt;
[[General Notes]]&lt;br /&gt;
&lt;br /&gt;
[[Change History]]&lt;br /&gt;
&lt;br /&gt;
[[Future Development]]&lt;br /&gt;
&lt;br /&gt;
[[Patches]]&lt;br /&gt;
&lt;br /&gt;
[[ZoneMinder 1.24.2 Bugfixes]]&lt;br /&gt;
&lt;br /&gt;
==Supported== &lt;br /&gt;
&lt;br /&gt;
[[Beginner hardware]]&lt;br /&gt;
&lt;br /&gt;
[[Supported distributions]]&lt;br /&gt;
&lt;br /&gt;
[[Hardware Compatibility List ]]&lt;br /&gt;
&lt;br /&gt;
(External: Flash&amp;#039;s IP Camera Database: http://digdilem.org/cameras ]&lt;br /&gt;
&lt;br /&gt;
[[MobileDevices]]&lt;br /&gt;
&lt;br /&gt;
==Distribution-specific guides==&lt;br /&gt;
[[Fedora]] / [[CentOS]]&lt;br /&gt;
&lt;br /&gt;
[[Debian]] / [[Ubuntu]] / [http://www.guiadohardware.net/tutoriais/sistema-vigilancia-zoneminder/ Kurumin (in Portuguese)] &lt;br /&gt;
&lt;br /&gt;
[[Mandrake-Mandriva]] / [[ZMliveCD]]&lt;br /&gt;
&lt;br /&gt;
[[Slackware]]&lt;br /&gt;
&lt;br /&gt;
[[SuSE]]&lt;br /&gt;
&lt;br /&gt;
[[Gentoo]] / [[Sabayon]]&lt;br /&gt;
&lt;br /&gt;
[[Yellow Dog Linux]] / [[Sony PS3]]&lt;br /&gt;
&lt;br /&gt;
[[PCLinuxOS_and_1.23.1|PCLinuxOS]]&lt;br /&gt;
&lt;br /&gt;
[[FreeBSD]]&lt;br /&gt;
&lt;br /&gt;
[[Arch Linux]] / [[ZMLarch]]&lt;br /&gt;
&lt;br /&gt;
[[MS Windows/Virtual Appliance]]&lt;br /&gt;
&lt;br /&gt;
==Third party==&lt;br /&gt;
[[Flash&amp;#039;s IP Camera Database]]&lt;br /&gt;
&lt;br /&gt;
[[Utilities]]&lt;br /&gt;
&lt;br /&gt;
[[Standalone Zm Frontends]]&lt;br /&gt;
&lt;br /&gt;
[http://code.google.com/p/zonerama/ Zonerama] - Merges multiple monitors into one and supports video creation. See Link for Screenshots, Download and Documentation&lt;br /&gt;
&lt;br /&gt;
[[Plugins]]&lt;br /&gt;
&lt;br /&gt;
[[Infrared Leds, Cameras, DC-DC converters etc]]&lt;br /&gt;
&lt;br /&gt;
[[Consultants]]&lt;br /&gt;
&lt;br /&gt;
[[Video Recorders running ZM]]&lt;br /&gt;
&lt;br /&gt;
==Other documentation==&lt;br /&gt;
[[External resources of information related to ZM]]&lt;br /&gt;
&lt;br /&gt;
[[How To]]&lt;br /&gt;
&lt;br /&gt;
[[Miscellaneous helpful hints]]&lt;br /&gt;
&lt;br /&gt;
[[Hardware specific tips]]&lt;br /&gt;
&lt;br /&gt;
==CCTV Laws==&lt;br /&gt;
[[Area Specific Laws]]&lt;br /&gt;
&lt;br /&gt;
[http://www.library.ca.gov/CRB/97/05/ California Report on Public Video Surveillance]&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=4545</id>
		<title>Hardware Compatibility List</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=4545"/>
		<updated>2011-06-20T15:21:38Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: /* Network Cameras */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Zoneminder will work with almost any capture card that is supported by the linux kernel.  You may find additional details about supported hardware in the [http://www.zoneminder.com/forums/viewforum.php?f=10  Hardware Compatibility List] part of the forums.  Also if you find something in the forums that is  missing from the wiki ADD IT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Capture Cards ==&lt;br /&gt;
&lt;br /&gt;
[[Anykeeper]] &lt;br /&gt;
&lt;br /&gt;
[[Avermedia]]&lt;br /&gt;
&lt;br /&gt;
[[Camsecure PCI Express video capture]]&lt;br /&gt;
&lt;br /&gt;
[[Digiflower]]&lt;br /&gt;
&lt;br /&gt;
[[Grandtec Grand X Guard]] [http://www.grandtec.com/products/surveillance/xguard.html]&lt;br /&gt;
&lt;br /&gt;
[[Hauppauge]]&lt;br /&gt;
&lt;br /&gt;
[[Ituner Spectra 8]] [http://www.ituner.com/spectra.htm]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 4400r]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 8800]]&lt;br /&gt;
&lt;br /&gt;
[[Tungson TE-8008]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Leadtek WinFast VC 100 - the cheapest bt878 model with no tuner on it, just Com/Svideo in.&lt;br /&gt;
&lt;br /&gt;
[[Linux Media Labs LMLBT44]] [http://www.linuxmedialabs.com]&lt;br /&gt;
&lt;br /&gt;
[[Osprey 100]]&lt;br /&gt;
&lt;br /&gt;
[[Provideo PV- series (Bluecherry)]] [http://store.bluecherry.net/SearchResults.asp?Cat=63&amp;amp;Click=51]&lt;br /&gt;
&lt;br /&gt;
[[TView 95/99]]&lt;br /&gt;
&lt;br /&gt;
[[Videocards with Philips saa7134 chipset]]&lt;br /&gt;
&lt;br /&gt;
[[WinFast TV2000 XP]]&lt;br /&gt;
&lt;br /&gt;
[[Rapid OS]]&lt;br /&gt;
&lt;br /&gt;
== bt8x8 Cards ==&lt;br /&gt;
A note on the bt8x8-based TV-tuner cards: these usually have beside the tuner input, also a Composite and an S-Video input. You can hook up 2 analog cameras to these, and access from ZoneMinder both of them as individual cameras, at max 15Fps. You don&amp;#039;t need two separate TV cards for two cameras!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Pico2000]] - 4 port card, one chip bt878, around 2 fps when using all channels&lt;br /&gt;
&lt;br /&gt;
[[Bt878_4chip_8inputs]] -4 chips bt878, 8 inputs, around 5 fps when using 2 inputs per chip&lt;br /&gt;
&lt;br /&gt;
[[:Image:Karta.jpg| bt878 8 chip 8 input]] - This card is supplied with D-sub to 8 BNC connector and uses the bt878 chip for each input allowing full frame rates and quality. See [[Kodicom 8800]] for more information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Most other BTTV (bt878, bt848) cards, see /usr/src/linux/Documentation/video4linux/bttv/CARDLIST on your system for a list of some of them.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Analog Cameras ==&lt;br /&gt;
&lt;br /&gt;
Any regular composite or S-video camera connected via a supported capture card.  Some analog cameras feature camera control - ZM supports several of these camera&amp;#039;s Pan/Tilt/Zoom functions via serial port control, as well as camera Presets, Focus, Iris, etc.&lt;br /&gt;
*[[PicturetelControlScript | PictureTel PTZ2N]].&lt;br /&gt;
&lt;br /&gt;
== Network Cameras ==&lt;br /&gt;
For Network Cams to work they need to be able to stream MJPEG without the requirement of activex controls. If you see the requirement for the camera calls for IE then there is a good chance it may not work. The other option is to grab JPEG images if the camera supports that option which will work but at a lower frame rate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any network camera that allows access to single JPEG image grabs or &amp;#039;&amp;#039;&amp;#039;some but not all&amp;#039;&amp;#039;&amp;#039; multi-part JPEG feeds.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Full Compatibility &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[Abus]]  some&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some &lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[Astak Mole]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Brickcom]] These have been tested&lt;br /&gt;
&lt;br /&gt;
* [[BSTI]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Cisco]] some&lt;br /&gt;
&lt;br /&gt;
* [[D-Link]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Foscam]] (FI8908W, FI8904W, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Gadspot]] Most&lt;br /&gt;
&lt;br /&gt;
* [[hootoo]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Instar]] (IN-2905, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Level One]] some&lt;br /&gt;
&lt;br /&gt;
* [[Linksys]] WVC-210 / WVC2300 / PVC2300 / WVC54GC&lt;br /&gt;
&lt;br /&gt;
* [[Maygion]] (IP-603, IP-604, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Rimax]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Sony]] Most&lt;br /&gt;
&lt;br /&gt;
* [[TP-LINK]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Trendnet]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Y-Cam]] (Sharx Ip) Most&lt;br /&gt;
&lt;br /&gt;
* [[Zavio]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Iguard]] IP390E&lt;br /&gt;
&lt;br /&gt;
* [[x-vision]] Xvision cameras by y3k&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Remote systems, themselves running zoneminder, can be accessed as cameras using the Remote Path of &amp;#039;&amp;#039;&amp;#039;/cgi-bin/nph-zms?mode=single&amp;amp;monitor=1&amp;amp;scale=100&amp;amp;maxfps=5&amp;amp;buffer=1000&amp;#039;&amp;#039;&amp;#039; - where the monitor number is the correct camera on the remote system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Single Jpeg Only&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some&lt;br /&gt;
&lt;br /&gt;
* [[JVC]] some&lt;br /&gt;
&lt;br /&gt;
* [[Panasonic]] some&lt;br /&gt;
&lt;br /&gt;
* PLANET some&lt;br /&gt;
&lt;br /&gt;
*[[Toshiba]] some&lt;br /&gt;
&lt;br /&gt;
* [[Veo Observer IP NetCam]] most&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] All&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mpeg(ver1.24.0 and up)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[ABS_MegaCam]]&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[ ACTi]] All&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] Most&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with modifications&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[Aviosys]] some&lt;br /&gt;
&lt;br /&gt;
* [[Mobotix]]  all  &lt;br /&gt;
&lt;br /&gt;
*[[Edimax]] some&lt;br /&gt;
&lt;br /&gt;
* [[Conceptronic]]  some&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with problems&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
* [[Compro]] IP70. MPEG4 only, some reliability issues and general poor firmware quality.&lt;br /&gt;
&lt;br /&gt;
* [[Grandtec]] [[Grandtec_WLAN_Camera|WLAN Camera]] WiFi or III - acceptable indoor quality, no infrared-filter (better nightvision) cheap!&lt;br /&gt;
&lt;br /&gt;
* [[Intellinet]]  IPCamera with the new firmware.&lt;br /&gt;
&lt;br /&gt;
* Old Intellinet IPCamera (model MWNC-100) with this (http://www.zoneminder.com/forums/viewtopic.php?t=7500) protocol adapter. &lt;br /&gt;
&lt;br /&gt;
* OvisLink AirLive WL-5400CAM&lt;br /&gt;
&lt;br /&gt;
Useful link: Flash&amp;#039;s IP Camera Database, with Zoneminder compatibility guide:   http://digdilem.org/cameras&lt;br /&gt;
&lt;br /&gt;
== Network Digitizers ==&lt;br /&gt;
&lt;br /&gt;
Like Network Cameras, these devices produce a video stream - but they accept an analog video input from a camera or other video source.&lt;br /&gt;
&lt;br /&gt;
*The [[IP9100 | Aviosys IP9100, Models A, B and Plus]] has four analog video inputs.  It produces a ZM compatible video stream from one of the inputs, which is selectable via an HTTP GET command.  There might even be a control script for ZM that lets you select the active video input using &amp;#039;&amp;#039;ZM&amp;#039;s Camera Control Presets!&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
With the yoics Aviosys 9100 firmware at http://www.yoics.com/?p=28, ZoneMinder can directly access all four ports via /usr/yoicsX.jpg as the remote host path, where X is 0 - 3.&lt;br /&gt;
&lt;br /&gt;
== USB Cameras ==&lt;br /&gt;
&lt;br /&gt;
*Just Zoom USB cam&lt;br /&gt;
&lt;br /&gt;
*Creative Webcam Pro, Webcam 3, LIVE! Cam OPTIA PRO (V4L2, Chan 0, PAL, YUYV)&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;Most&amp;#039;&amp;#039; UVCvideo cameras, including: [[Logitech QuickCam Express]], QuickCam Pro 3000, QuickCam Communicate STX/Deluxe, and [[Logitech Webcam Pro 9000]]&lt;br /&gt;
&lt;br /&gt;
*Logitech Quickcam Orbit/Sphere (experimental basic pan/tilt control has also published for testing and hacking [http://www.zoneminder.com/forums/viewtopic.php?t=9788])&lt;br /&gt;
&lt;br /&gt;
*[[Philips]] &lt;br /&gt;
&lt;br /&gt;
*Any OV511 based USB camera [http://alpha.dyndns.org/ov511/cameras.html]&lt;br /&gt;
&lt;br /&gt;
*Any CPIA based USB camera [http://webcam.sourceforge.net]&lt;br /&gt;
&lt;br /&gt;
*[[LabTec WebCam Pro]]&lt;br /&gt;
&lt;br /&gt;
*Confirmed basic functionality with Microsoft Lifecam VX 5000 using UVC Streaming method&lt;br /&gt;
&lt;br /&gt;
Note that most USB cameras that can use Video4Linux/V4L2, and so can be used by ZoneMinder.  Some have older chipsets and can be hard to find new.&lt;br /&gt;
&lt;br /&gt;
Note that PWC drivers are not included in the kernel. Some distribution&amp;#039;s add them in and other may not. Here are some relevant links:&lt;br /&gt;
* [http://www.smcc.demon.nl/webcam/ Old Maintainer]&lt;br /&gt;
* [http://www.saillard.org/linux/pwc/ Current PWC Maintainer]&lt;br /&gt;
&lt;br /&gt;
== X10 Devices ==&lt;br /&gt;
The only device that really needs to be compatable with ZM is the Transceiver, all other x10 devices comunicate through that device.&lt;br /&gt;
*[[CM11]] Bi-Directional Transceiver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other X10 notes:&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=6423&amp;amp;highlight=x10 Topic 6423]&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=7082&amp;amp;highlight=x10 Topic 7082]&lt;br /&gt;
&lt;br /&gt;
== All other hardware as supported by Linux ==&lt;br /&gt;
To find out if your hardware is supported, check the HCL at [http://www.linuxquestions.org/hcl/ linuxquestions.org]&lt;br /&gt;
&lt;br /&gt;
[http://kmuto.jp/debian/hcl/ Debian]&lt;br /&gt;
&lt;br /&gt;
[http://fedoraproject.org/wiki/HCL Fedora]  [http://fedora-linux.nl/wiki/index.php/HCL Fedora Unofficial HCL]&lt;br /&gt;
&lt;br /&gt;
[http://www.mandriva.com/hardware Mandriva]&lt;br /&gt;
&lt;br /&gt;
[https://hardware.redhat.com/index.cgi RedHat]&lt;br /&gt;
&lt;br /&gt;
[http://en.opensuse.org/Hardware Suse]&lt;br /&gt;
&lt;br /&gt;
[http://doc.gwos.org/index.php/HCL Ubuntu]&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* [http://www.macmanitou.de/mediawiki/index.php?title=Webcam_Manufacturer_Data Manufacturer Data]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Plug Computers ==&lt;br /&gt;
Guruplug Server Plus -&amp;gt; How to install Zoneminder on it -&amp;gt; [http://plugcomputer.org/plugwiki/index.php/ZoneMinder PlugComputer Wiki Zoneminder Howto]&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Flash%27s_IP_Camera_Database&amp;diff=4544</id>
		<title>Flash&#039;s IP Camera Database</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Flash%27s_IP_Camera_Database&amp;diff=4544"/>
		<updated>2011-06-20T15:20:37Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: Created page with &amp;quot;A publically available database of many IP cameras and their settings, including a setup guide for Zoneminder for specific cameras.  http://digdilem.org/cameras  (Please submit n...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A publically available database of many IP cameras and their settings, including a setup guide for Zoneminder for specific cameras.&lt;br /&gt;
&lt;br /&gt;
http://digdilem.org/cameras&lt;br /&gt;
&lt;br /&gt;
(Please submit new cameras when available)&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=4543</id>
		<title>Helpful user contributed resources</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=4543"/>
		<updated>2011-06-20T15:20:04Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: /* Third party */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Documentation==&lt;br /&gt;
[[Main Documentation]]&lt;br /&gt;
&lt;br /&gt;
[[FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[Supplementary Documentation]]&lt;br /&gt;
&lt;br /&gt;
[[General Notes]]&lt;br /&gt;
&lt;br /&gt;
[[Change History]]&lt;br /&gt;
&lt;br /&gt;
[[Future Development]]&lt;br /&gt;
&lt;br /&gt;
[[Patches]]&lt;br /&gt;
&lt;br /&gt;
[[ZoneMinder 1.24.2 Bugfixes]]&lt;br /&gt;
&lt;br /&gt;
==Supported== &lt;br /&gt;
&lt;br /&gt;
[[Beginner hardware]]&lt;br /&gt;
&lt;br /&gt;
[[Supported distributions]]&lt;br /&gt;
&lt;br /&gt;
[[Hardware Compatibility List ]]&lt;br /&gt;
&lt;br /&gt;
[[MobileDevices]]&lt;br /&gt;
&lt;br /&gt;
==Distribution-specific guides==&lt;br /&gt;
[[Fedora]] / [[CentOS]]&lt;br /&gt;
&lt;br /&gt;
[[Debian]] / [[Ubuntu]] / [http://www.guiadohardware.net/tutoriais/sistema-vigilancia-zoneminder/ Kurumin (in Portuguese)] &lt;br /&gt;
&lt;br /&gt;
[[Mandrake-Mandriva]] / [[ZMliveCD]]&lt;br /&gt;
&lt;br /&gt;
[[Slackware]]&lt;br /&gt;
&lt;br /&gt;
[[SuSE]]&lt;br /&gt;
&lt;br /&gt;
[[Gentoo]] / [[Sabayon]]&lt;br /&gt;
&lt;br /&gt;
[[Yellow Dog Linux]] / [[Sony PS3]]&lt;br /&gt;
&lt;br /&gt;
[[PCLinuxOS_and_1.23.1|PCLinuxOS]]&lt;br /&gt;
&lt;br /&gt;
[[FreeBSD]]&lt;br /&gt;
&lt;br /&gt;
[[Arch Linux]] / [[ZMLarch]]&lt;br /&gt;
&lt;br /&gt;
[[MS Windows/Virtual Appliance]]&lt;br /&gt;
&lt;br /&gt;
==Third party==&lt;br /&gt;
[[Flash&amp;#039;s IP Camera Database]]&lt;br /&gt;
&lt;br /&gt;
[[Utilities]]&lt;br /&gt;
&lt;br /&gt;
[[Standalone Zm Frontends]]&lt;br /&gt;
&lt;br /&gt;
[[Plugins]]&lt;br /&gt;
&lt;br /&gt;
[[Infrared Leds, Cameras, DC-DC converters etc]]&lt;br /&gt;
&lt;br /&gt;
[[Consultants]]&lt;br /&gt;
&lt;br /&gt;
[[Video Recorders running ZM]]&lt;br /&gt;
&lt;br /&gt;
==Other documentation==&lt;br /&gt;
[[External resources of information related to ZM]]&lt;br /&gt;
&lt;br /&gt;
[[How To]]&lt;br /&gt;
&lt;br /&gt;
[[Miscellaneous helpful hints]]&lt;br /&gt;
&lt;br /&gt;
[[Hardware specific tips]]&lt;br /&gt;
&lt;br /&gt;
==CCTV Laws==&lt;br /&gt;
[[Area Specific Laws]]&lt;br /&gt;
&lt;br /&gt;
[http://www.library.ca.gov/CRB/97/05/ California Report on Public Video Surveillance]&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=4542</id>
		<title>Helpful user contributed resources</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=4542"/>
		<updated>2011-06-20T15:19:39Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: /* Third party */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Documentation==&lt;br /&gt;
[[Main Documentation]]&lt;br /&gt;
&lt;br /&gt;
[[FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[Supplementary Documentation]]&lt;br /&gt;
&lt;br /&gt;
[[General Notes]]&lt;br /&gt;
&lt;br /&gt;
[[Change History]]&lt;br /&gt;
&lt;br /&gt;
[[Future Development]]&lt;br /&gt;
&lt;br /&gt;
[[Patches]]&lt;br /&gt;
&lt;br /&gt;
[[ZoneMinder 1.24.2 Bugfixes]]&lt;br /&gt;
&lt;br /&gt;
==Supported== &lt;br /&gt;
&lt;br /&gt;
[[Beginner hardware]]&lt;br /&gt;
&lt;br /&gt;
[[Supported distributions]]&lt;br /&gt;
&lt;br /&gt;
[[Hardware Compatibility List ]]&lt;br /&gt;
&lt;br /&gt;
[[MobileDevices]]&lt;br /&gt;
&lt;br /&gt;
==Distribution-specific guides==&lt;br /&gt;
[[Fedora]] / [[CentOS]]&lt;br /&gt;
&lt;br /&gt;
[[Debian]] / [[Ubuntu]] / [http://www.guiadohardware.net/tutoriais/sistema-vigilancia-zoneminder/ Kurumin (in Portuguese)] &lt;br /&gt;
&lt;br /&gt;
[[Mandrake-Mandriva]] / [[ZMliveCD]]&lt;br /&gt;
&lt;br /&gt;
[[Slackware]]&lt;br /&gt;
&lt;br /&gt;
[[SuSE]]&lt;br /&gt;
&lt;br /&gt;
[[Gentoo]] / [[Sabayon]]&lt;br /&gt;
&lt;br /&gt;
[[Yellow Dog Linux]] / [[Sony PS3]]&lt;br /&gt;
&lt;br /&gt;
[[PCLinuxOS_and_1.23.1|PCLinuxOS]]&lt;br /&gt;
&lt;br /&gt;
[[FreeBSD]]&lt;br /&gt;
&lt;br /&gt;
[[Arch Linux]] / [[ZMLarch]]&lt;br /&gt;
&lt;br /&gt;
[[MS Windows/Virtual Appliance]]&lt;br /&gt;
&lt;br /&gt;
==Third party==&lt;br /&gt;
[[Flash&amp;#039;s IP Camera Database]]&lt;br /&gt;
&lt;br /&gt;
A publically available database of many IP cameras and their settings, including a setup guide for Zoneminder.  http://digdilem.org/cameras&lt;br /&gt;
&lt;br /&gt;
[[Utilities]]&lt;br /&gt;
&lt;br /&gt;
[[Standalone Zm Frontends]]&lt;br /&gt;
&lt;br /&gt;
[[Plugins]]&lt;br /&gt;
&lt;br /&gt;
[[Infrared Leds, Cameras, DC-DC converters etc]]&lt;br /&gt;
&lt;br /&gt;
[[Consultants]]&lt;br /&gt;
&lt;br /&gt;
[[Video Recorders running ZM]]&lt;br /&gt;
&lt;br /&gt;
==Other documentation==&lt;br /&gt;
[[External resources of information related to ZM]]&lt;br /&gt;
&lt;br /&gt;
[[How To]]&lt;br /&gt;
&lt;br /&gt;
[[Miscellaneous helpful hints]]&lt;br /&gt;
&lt;br /&gt;
[[Hardware specific tips]]&lt;br /&gt;
&lt;br /&gt;
==CCTV Laws==&lt;br /&gt;
[[Area Specific Laws]]&lt;br /&gt;
&lt;br /&gt;
[http://www.library.ca.gov/CRB/97/05/ California Report on Public Video Surveillance]&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=4244</id>
		<title>Using a dedicated Hard Drive</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=4244"/>
		<updated>2011-01-06T11:20:23Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On many installs you may wish to dedicate a hard drive or partition for Zoneminder events. There are many reasons why you may wish to do this - security, data segregation, preventing encroachment onto OS partition by zoneminder etc. &lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not terribly difficult to do, but may be non-obvious to the untaught so here&amp;#039;s a brief guide.&lt;br /&gt;
&lt;br /&gt;
Some commands here are based on Debian/Ubuntu installs&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Become root or &amp;quot;sudo -s&amp;quot; to gain root privs.&lt;br /&gt;
&lt;br /&gt;
2. Stop Zoneminder.  &amp;quot;/etc/init.d/zoneminder stop&amp;quot; or &amp;quot;/usr/bin/zmpkg.pl stop&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. Mount your new partition onto the root filesystem, ensuring it is automatically remounted at boot time by editing /etc/fstab  -- For the benefit of this guide, I&amp;#039;m calling my new partition /newdrive&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note this new partition can be a local drive, raid partition, lvm/md device, external NAS, SAN, NFS share or SMB share. The only condition is that the I/O throughput should be up to handling what Zoneminder will throw at it. For that speed reason, some favour non-journalled filesystems and accept the extra risk of data protection&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
4. Locate Zoneminder&amp;#039;s &amp;quot;events&amp;quot; and &amp;quot;images&amp;quot; directories. In Debian, these are usually in /usr/share/zoneminder &lt;br /&gt;
&lt;br /&gt;
If you wish to copy the data across, MOVE the events and images directories to /newdrive  &amp;#039;&amp;#039;(Note this will take a long time on systems with many events). Also, DO NOT restart zoneminder if it cannot locate these files as zmaudit.pl will delete the database entries for any events it cannot match files to&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
If you don&amp;#039;t wish to preserve the data, it is MUCH faster to simply delete or rename the original events and images dirs and create new directories in /newdrive and link to them from the original locations. There is no need to remove the &amp;quot;orphaned&amp;quot; entries in the database, zmaudit will take care of those.&lt;br /&gt;
&lt;br /&gt;
Eg: &lt;br /&gt;
&lt;br /&gt;
mkdir /newdrive/events&lt;br /&gt;
&lt;br /&gt;
mv /usr/share/zoneminder/events /usr/share/zoneminder/events_old&lt;br /&gt;
&lt;br /&gt;
Note: It was recommended to use &amp;#039;&amp;#039;ln -s /newdrive/events /usr/share/zoneminder/events&amp;#039;&amp;#039; to link the new partition in. However, at least with the debian and ubuntu packages, upgrading zoneminder later will delete these symlinks and create new dirs. This will result in all your existing events being removed from the database.&lt;br /&gt;
&lt;br /&gt;
It has been suggested this is used instead to mount the new drives;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&lt;br /&gt;
these lines in fstab could allow you to bind-mount an alternate location:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdX1 /otherdrive ext3 defaults 0 2&lt;br /&gt;
 /otherdrive/zoneminder/images /var/cache/zoneminder/images none defaults,bind  0 2&lt;br /&gt;
 /otherdrive/zoneminder/events /var/cache/zoneminder/events none defaults,bind 0 2&lt;br /&gt;
&lt;br /&gt;
or in some cases,&lt;br /&gt;
&lt;br /&gt;
 /otherdrive/zoneminder/images /usr/share/zoneminder/images none defaults,bind  0 2&lt;br /&gt;
 /otherdrive/zoneminder/events /usr/share/zoneminder/events none defaults,bind 0 2&lt;br /&gt;
&lt;br /&gt;
or if you have a separate partition for each:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdX1 /var/cache/zoneminder/images ext3 defaults 0 2&lt;br /&gt;
 /dev/sdX2 /var/cache/zoneminder/events ext3 defaults 0 2&lt;br /&gt;
(Repeat for images)&lt;br /&gt;
&amp;#039;&amp;#039;&lt;br /&gt;
5. Finally, restart zoneminder ( &amp;quot;/etc/init.d/zoneminder start&amp;quot; or &amp;quot;/usr/bin/zmpkg.pl start&amp;quot;)  Monitor its operation and ensure new events are being created normally and are viewable. Zoneminder should also update the &amp;quot;Disk: %%&amp;quot; on its Console screen to reflect the disk space on its new partition.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=4243</id>
		<title>Using a dedicated Hard Drive</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=4243"/>
		<updated>2011-01-06T11:11:53Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On many installs you may wish to dedicate a hard drive or partition for Zoneminder events. There are many reasons why you may wish to do this - security, data segregation, preventing encroachment onto OS partition by zoneminder etc. &lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not terribly difficult to do, but may be non-obvious to the untaught so here&amp;#039;s a brief guide.&lt;br /&gt;
&lt;br /&gt;
Some commands here are based on Debian/Ubuntu installs&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Become root or &amp;quot;sudo -s&amp;quot; to gain root privs.&lt;br /&gt;
&lt;br /&gt;
2. Stop Zoneminder.  &amp;quot;/etc/init.d/zoneminder stop&amp;quot; or &amp;quot;/usr/bin/zmpkg.pl stop&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. Mount your new partition onto the root filesystem, ensuring it is automatically remounted at boot time by editing /etc/fstab  -- For the benefit of this guide, I&amp;#039;m calling my new partition /newdrive&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note this new partition can be a local drive, raid partition, lvm/md device, external NAS, SAN, NFS share or SMB share. The only condition is that the I/O throughput should be up to handling what Zoneminder will throw at it. For that speed reason, some favour non-journalled filesystems and accept the extra risk of data protection&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
4. Locate Zoneminder&amp;#039;s &amp;quot;events&amp;quot; and &amp;quot;images&amp;quot; directories. In Debian, these are usually in /usr/share/zoneminder &lt;br /&gt;
&lt;br /&gt;
If you wish to copy the data across, MOVE the events and images directories to /newdrive  &amp;#039;&amp;#039;(Note this will take a long time on systems with many events). Also, DO NOT restart zoneminder if it cannot locate these files as zmaudit.pl will delete the database entries for any events it cannot match files to&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
If you don&amp;#039;t wish to preserve the data, it is MUCH faster to simply delete or rename the original events and images dirs and create new directories in /newdrive and link to them from the original locations. There is no need to remove the &amp;quot;orphaned&amp;quot; entries in the database, zmaudit will take care of those.&lt;br /&gt;
&lt;br /&gt;
Eg: &lt;br /&gt;
&lt;br /&gt;
mkdir /newdrive/events&lt;br /&gt;
&lt;br /&gt;
mv /usr/share/zoneminder/events /usr/share/zoneminder/events_old&lt;br /&gt;
&lt;br /&gt;
Note: It was recommended to use &amp;#039;&amp;#039;ln -s /newdrive/events /usr/share/zoneminder/events&amp;#039;&amp;#039; to link the new partition in. However, at least with the debian and ubuntu packages, upgrading zoneminder later will delete these symlinks and create new dirs. This will result in all your existing events being removed from the database.&lt;br /&gt;
&lt;br /&gt;
It has been suggested this is used instead to mount the new drives;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&lt;br /&gt;
these lines in fstab could allow you to bind-mount an alternate location:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdX1 /otherdrive ext3 defaults 0 2&lt;br /&gt;
 /otherdrive/zoneminder/images /var/cache/zoneminder/images none defaults,bind  0 2&lt;br /&gt;
 /otherdrive/zoneminder/events /var/cache/zoneminder/events none defaults,bind 0 2&lt;br /&gt;
&lt;br /&gt;
or if you have a separate partition for each:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdX1 /var/cache/zoneminder/images ext3 defaults 0 2&lt;br /&gt;
 /dev/sdX2 /var/cache/zoneminder/events ext3 defaults 0 2&lt;br /&gt;
(Repeat for images)&lt;br /&gt;
&amp;#039;&amp;#039;&lt;br /&gt;
5. Finally, restart zoneminder ( &amp;quot;/etc/init.d/zoneminder start&amp;quot; or &amp;quot;/usr/bin/zmpkg.pl start&amp;quot;)  Monitor its operation and ensure new events are being created normally and are viewable. Zoneminder should also update the &amp;quot;Disk: %%&amp;quot; on its Console screen to reflect the disk space on its new partition.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=4239</id>
		<title>Using a dedicated Hard Drive</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=4239"/>
		<updated>2011-01-05T07:10:33Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On many installs you may wish to dedicate a hard drive or partition for Zoneminder events. There are many reasons why you may wish to do this - security, data segregation, preventing encroachment onto OS partition by zoneminder etc. &lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not terribly difficult to do, but may be non-obvious to the untaught so here&amp;#039;s a brief guide.&lt;br /&gt;
&lt;br /&gt;
Some commands here are based on Debian/Ubuntu installs&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Become root or &amp;quot;sudo -s&amp;quot; to gain root privs.&lt;br /&gt;
&lt;br /&gt;
2. Stop Zoneminder.  &amp;quot;/etc/init.d/zoneminder stop&amp;quot; or &amp;quot;/usr/bin/zmpkg.pl stop&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. Mount your new partition onto the root filesystem, ensuring it is automatically remounted at boot time by editing /etc/fstab  -- For the benefit of this guide, I&amp;#039;m calling my new partition /newdrive&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note this new partition can be a local drive, raid partition, lvm/md device, external NAS, SAN, NFS share or SMB share. The only condition is that the I/O throughput should be up to handling what Zoneminder will throw at it. For that speed reason, some favour non-journalled filesystems and accept the extra risk of data protection&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
4. Locate Zoneminder&amp;#039;s &amp;quot;events&amp;quot; and &amp;quot;images&amp;quot; directories. In Debian, these are usually in /usr/share/zoneminder &lt;br /&gt;
&lt;br /&gt;
If you wish to copy the data across, MOVE the events and images directories to /newdrive  &amp;#039;&amp;#039;(Note this will take a long time on systems with many events). Also, DO NOT restart zoneminder if it cannot locate these files as zmaudit.pl will delete the database entries for any events it cannot match files to&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
If you don&amp;#039;t wish to preserve the data, it is MUCH faster to simply delete or rename the original events and images dirs and create new directories in /newdrive and link to them from the original locations. There is no need to remove the &amp;quot;orphaned&amp;quot; entries in the database, zmaudit will take care of those.&lt;br /&gt;
&lt;br /&gt;
Eg: &lt;br /&gt;
&lt;br /&gt;
mkdir /newdrive/events&lt;br /&gt;
&lt;br /&gt;
mv /usr/share/zoneminder/events /usr/share/zoneminder/events_old&lt;br /&gt;
&lt;br /&gt;
Note: It was recommended to use &amp;#039;&amp;#039;ln -s /newdrive/events /usr/share/zoneminder/events&amp;#039;&amp;#039; to link the new partition in. However, at least with the debian and ubuntu packages, upgrading zoneminder later will delete these symlinks and create new dirs. This will result in all your existing events being removed from the database.&lt;br /&gt;
&lt;br /&gt;
It has been suggested this is used instead to mount the new drives;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&lt;br /&gt;
these lines in fstab could allow you to bind-mount an alternate location:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdX1 /otherdrive ext3 defaults 0 2&lt;br /&gt;
 /otherdrive/zoneminder/images /var/cache/zoneminder/images bind defaults 0 2&lt;br /&gt;
 /otherdrive/zoneminder/events /var/cache/zoneminder/events bind defaults 0 2&lt;br /&gt;
&lt;br /&gt;
or if you have a separate partition for each:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdX1 /var/cache/zoneminder/images ext3 defaults 0 2&lt;br /&gt;
 /dev/sdX2 /var/cache/zoneminder/events ext3 defaults 0 2&lt;br /&gt;
(Repeat for images)&lt;br /&gt;
&amp;#039;&amp;#039;&lt;br /&gt;
5. Finally, restart zoneminder ( &amp;quot;/etc/init.d/zoneminder start&amp;quot; or &amp;quot;/usr/bin/zmpkg.pl start&amp;quot;)  Monitor its operation and ensure new events are being created normally and are viewable. Zoneminder should also update the &amp;quot;Disk: %%&amp;quot; on its Console screen to reflect the disk space on its new partition.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Compro&amp;diff=4164</id>
		<title>Compro</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Compro&amp;diff=4164"/>
		<updated>2010-11-09T22:57:19Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Cheap cameras from Taiwan (Despite the American references on the name)&lt;br /&gt;
&lt;br /&gt;
IP70&lt;br /&gt;
&lt;br /&gt;
Setup REQUIRES Internet Explorer (the configuration pages contain broken javascript which hide various settings and won&amp;#039;t let you save settings unless you&amp;#039;re running IE)&lt;br /&gt;
&lt;br /&gt;
mjpeg is not. The browser page for live view is merely a javascript wrapper which requests a static jpg repeatedly. This would be fine for Zoneminder if it wasn&amp;#039;t for the fact that the js appends a unique identifier to the end of each fetch and the camera appears to cache files without this. So if you dig through the html to find the url and try it in zm, zm will just record the first image repeatedly.&lt;br /&gt;
&lt;br /&gt;
DOES work with RTSP / MPEG4  (Zoneminder 1.24.2)&lt;br /&gt;
&lt;br /&gt;
However - it does NOT work very well! Feed drops out at random points. Zm reconnects ok, but it cannot be relied upon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source tab;&lt;br /&gt;
&lt;br /&gt;
Remote Protocol RTSP&lt;br /&gt;
Remote Method RTP/RTSP&lt;br /&gt;
Remote Host Name IP of camera&lt;br /&gt;
Remote Host Port 554&lt;br /&gt;
Remote Host Path /medias2&lt;br /&gt;
Remote Image Colours 24 bit&lt;br /&gt;
Capture Width (pixels) 640&lt;br /&gt;
Capture Height (pixels) 480&lt;br /&gt;
Preserve Aspect Ratio Unticked&lt;br /&gt;
Orientation Normal&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On the camera configuration;&lt;br /&gt;
&lt;br /&gt;
Update to firmware &amp;quot;IP70 1.47&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Enter Setup, Camera tab;&lt;br /&gt;
Dot Turbo Picture&lt;br /&gt;
Tick &amp;quot;Enable 2nd stream&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Under Stream2 settings (Use IE if old firmware as FF doesn&amp;#039;t save settings)&lt;br /&gt;
&lt;br /&gt;
Untick 3GPP&lt;br /&gt;
Set Resolution to VGA&lt;br /&gt;
Codec: MPEG-4&lt;br /&gt;
Framerate 5&lt;br /&gt;
Quality 1Mbps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Update, November 2010 - Compro now have a new firmware - 1.51 - on their website. What it does is not fully listed - the page mentions it does SMS announcement and some other minor stuff, but I note the stream now works in firefox which it didn&amp;#039;t before. although the controls are still broken. In IE, a new activex component requires installing and a restart is mandatory.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Compro&amp;diff=4163</id>
		<title>Compro</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Compro&amp;diff=4163"/>
		<updated>2010-11-09T22:55:35Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Cheap cameras from Taiwan (Despite the American references on the name)&lt;br /&gt;
&lt;br /&gt;
IP70&lt;br /&gt;
&lt;br /&gt;
Setup REQUIRES Internet Explorer (the configuration pages contain broken javascript which hide various settings and won&amp;#039;t let you save settings unless you&amp;#039;re running IE)&lt;br /&gt;
&lt;br /&gt;
mjpeg is not. The browser page for live view is merely a javascript wrapper which requests a static jpg repeatedly. This would be fine for Zoneminder if it wasn&amp;#039;t for the fact that the js appends a unique identifier to the end of each fetch and the camera appears to cache files without this. So if you dig through the html to find the url and try it in zm, zm will just record the first image repeatedly.&lt;br /&gt;
&lt;br /&gt;
DOES work with RTSP / MPEG4  (Zoneminder 1.24.2)&lt;br /&gt;
&lt;br /&gt;
However - it does NOT work very well! Feed drops out at random points. Zm reconnects ok, but it cannot be relied upon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source tab;&lt;br /&gt;
&lt;br /&gt;
Remote Protocol RTSP&lt;br /&gt;
Remote Method RTP/RTSP&lt;br /&gt;
Remote Host Name IP of camera&lt;br /&gt;
Remote Host Port 554&lt;br /&gt;
Remote Host Path /medias2&lt;br /&gt;
Remote Image Colours 24 bit&lt;br /&gt;
Capture Width (pixels) 640&lt;br /&gt;
Capture Height (pixels) 480&lt;br /&gt;
Preserve Aspect Ratio Unticked&lt;br /&gt;
Orientation Normal&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On the camera configuration;&lt;br /&gt;
&lt;br /&gt;
Update to firmware &amp;quot;IP70 1.47&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Enter Setup, Camera tab;&lt;br /&gt;
Dot Turbo Picture&lt;br /&gt;
Tick &amp;quot;Enable 2nd stream&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Under Stream2 settings (Use IE if old firmware as FF doesn&amp;#039;t save settings)&lt;br /&gt;
&lt;br /&gt;
Untick 3GPP&lt;br /&gt;
Set Resolution to VGA&lt;br /&gt;
Codec: MPEG-4&lt;br /&gt;
Framerate 5&lt;br /&gt;
Quality 1Mbps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Update, November 2010 - Compro now have a new firmware - 1.51 - on their website. What it does is not fully listed - the page mentions it does SMS announcement and some other minor stuff, but I note the stream now works in firefox which it didn&amp;#039;t before.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Compro&amp;diff=4162</id>
		<title>Compro</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Compro&amp;diff=4162"/>
		<updated>2010-11-09T22:26:26Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Cheap cameras from Taiwan (Despite the American references on the name)&lt;br /&gt;
&lt;br /&gt;
IP70&lt;br /&gt;
&lt;br /&gt;
Setup REQUIRES Internet Explorer (the configuration pages contain broken javascript which hide various settings and won&amp;#039;t let you save settings unless you&amp;#039;re running IE)&lt;br /&gt;
&lt;br /&gt;
mjpeg is not. The browser page for live view is merely a javascript wrapper which requests a static jpg repeatedly. This would be fine for Zoneminder if it wasn&amp;#039;t for the fact that the js appends a unique identifier to the end of each fetch and the camera appears to cache files without this. So if you dig through the html to find the url and try it in zm, zm will just record the first image repeatedly.&lt;br /&gt;
&lt;br /&gt;
DOES work with RTSP / MPEG4  (Zoneminder 1.24.2)&lt;br /&gt;
&lt;br /&gt;
However - it does NOT work very well! Feed drops out at random points. Zm reconnects ok, but it cannot be relied upon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source tab;&lt;br /&gt;
&lt;br /&gt;
Remote Protocol RTSP&lt;br /&gt;
Remote Method RTP/RTSP&lt;br /&gt;
Remote Host Name IP of camera&lt;br /&gt;
Remote Host Port 554&lt;br /&gt;
Remote Host Path /medias2&lt;br /&gt;
Remote Image Colours 24 bit&lt;br /&gt;
Capture Width (pixels) 640&lt;br /&gt;
Capture Height (pixels) 480&lt;br /&gt;
Preserve Aspect Ratio Unticked&lt;br /&gt;
Orientation Normal&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On the camera configuration;&lt;br /&gt;
&lt;br /&gt;
Update to firmware &amp;quot;IP70 1.47&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Enter Setup, Camera tab;&lt;br /&gt;
Dot Turbo Picture&lt;br /&gt;
Tick &amp;quot;Enable 2nd stream&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Under Stream2 settings (Use IE if old firmware as FF doesn&amp;#039;t save settings)&lt;br /&gt;
&lt;br /&gt;
Untick 3GPP&lt;br /&gt;
Set Resolution to VGA&lt;br /&gt;
Codec: MPEG-4&lt;br /&gt;
Framerate 5&lt;br /&gt;
Quality 1Mbps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Update, November 2010 - Compro now have a new firmware - 1.51 - on their website.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Compro&amp;diff=4161</id>
		<title>Compro</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Compro&amp;diff=4161"/>
		<updated>2010-11-08T21:29:12Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Cheap cameras from Taiwan (Despite the American references on the name)&lt;br /&gt;
&lt;br /&gt;
IP70&lt;br /&gt;
&lt;br /&gt;
Setup REQUIRES Internet Explorer (the configuration pages contain broken javascript which hide various settings and won&amp;#039;t let you save settings unless you&amp;#039;re running IE)&lt;br /&gt;
&lt;br /&gt;
mjpeg is not. The browser page for live view is merely a javascript wrapper which requests a static jpg repeatedly. This would be fine for Zoneminder if it wasn&amp;#039;t for the fact that the js appends a unique identifier to the end of each fetch and the camera appears to cache files without this. So if you dig through the html to find the url and try it in zm, zm will just record the first image repeatedly.&lt;br /&gt;
&lt;br /&gt;
DOES work with RTSP / MPEG4  (Zoneminder 1.24.2)&lt;br /&gt;
&lt;br /&gt;
However - it does NOT work very well! Feed drops out at random points. Zm reconnects ok, but it cannot be relied upon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source tab;&lt;br /&gt;
&lt;br /&gt;
Remote Protocol RTSP&lt;br /&gt;
Remote Method RTP/RTSP&lt;br /&gt;
Remote Host Name IP of camera&lt;br /&gt;
Remote Host Port 554&lt;br /&gt;
Remote Host Path /medias2&lt;br /&gt;
Remote Image Colours 24 bit&lt;br /&gt;
Capture Width (pixels) 640&lt;br /&gt;
Capture Height (pixels) 480&lt;br /&gt;
Preserve Aspect Ratio Unticked&lt;br /&gt;
Orientation Normal&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On the camera configuration;&lt;br /&gt;
&lt;br /&gt;
Update to firmware &amp;quot;IP70 1.47&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Enter Setup, Camera tab;&lt;br /&gt;
Dot Turbo Picture&lt;br /&gt;
Tick &amp;quot;Enable 2nd stream&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Under Stream2 settings (Use IE if old firmware as FF doesn&amp;#039;t save settings)&lt;br /&gt;
&lt;br /&gt;
Untick 3GPP&lt;br /&gt;
Set Resolution to VGA&lt;br /&gt;
Codec: MPEG-4&lt;br /&gt;
Framerate 5&lt;br /&gt;
Quality 1Mbps&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Compro&amp;diff=4160</id>
		<title>Compro</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Compro&amp;diff=4160"/>
		<updated>2010-11-08T21:28:58Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Cheap cameras from Taiwan (Despite the American references on the name)&lt;br /&gt;
&lt;br /&gt;
IP70&lt;br /&gt;
&lt;br /&gt;
Setup REQUIRES Internet Explorer (the configuration pages contain broken javascript which hide various settings and won&amp;#039;t let you save settings unless you&amp;#039;re running IE)&lt;br /&gt;
&lt;br /&gt;
mjpeg is not. The browser page for live view is merely a javascript wrapper which requests a static jpg repeatedly. This would be fine for Zoneminder if it wasn&amp;#039;t for the fact that the js appends a unique identifier to the end of each fetch and the camera appears to cache files without this. So if you dig through the html to find the url and try it in zm, zm will just record the first image repeatedly.&lt;br /&gt;
&lt;br /&gt;
DOES work with RTSP / MPEG4  (Zoneminder 1.24.2)&lt;br /&gt;
&lt;br /&gt;
However - it does NOT work very well! Feed drops out at random points. Zm reconnects ok, but it cannot be relied upon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source tab;&lt;br /&gt;
&lt;br /&gt;
Remote Protocol RTSP&lt;br /&gt;
Remote Method RTP/RTSP&lt;br /&gt;
Remote Host Name IP of camera&lt;br /&gt;
Remote Host Port 554&lt;br /&gt;
Remote Host Path /medias2&lt;br /&gt;
Remote Image Colours 24 bit&lt;br /&gt;
Capture Width (pixels) 640&lt;br /&gt;
Capture Height (pixels) 480&lt;br /&gt;
Preserve Aspect Ratio Unticked&lt;br /&gt;
Orientation Normal&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On the camera configuration;&lt;br /&gt;
&lt;br /&gt;
Update to firmware &amp;quot;IP70 1.47&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Enter Setup, Camera tab;&lt;br /&gt;
Dot Turbo Picture&lt;br /&gt;
Tick &amp;quot;Enable 2nd stream&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Under Stream2 settings (Use IE if old firmware as FF doesn&amp;#039;t save settings)&lt;br /&gt;
&lt;br /&gt;
Untick 3GPP&lt;br /&gt;
Set Resolution to VGA&lt;br /&gt;
Codec: MPEG-4&lt;br /&gt;
Framerate 30&lt;br /&gt;
Quality 1Mbps&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=3902</id>
		<title>Using a dedicated Hard Drive</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=3902"/>
		<updated>2010-09-28T19:20:15Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On many installs you may wish to dedicate a hard drive or partition for Zoneminder events. There are many reasons why you may wish to do this - security, data segregation, preventing encroachment onto OS partition by zoneminder etc. &lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not terribly difficult to do, but may be non-obvious to the untaught so here&amp;#039;s a brief guide.&lt;br /&gt;
&lt;br /&gt;
Some commands here are based on Debian/Ubuntu installs&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Become root or &amp;quot;sudo -s&amp;quot; to gain root privs.&lt;br /&gt;
&lt;br /&gt;
2. Stop Zoneminder.  &amp;quot;/etc/init.d/zoneminder stop&amp;quot; or &amp;quot;/usr/bin/zmpkg.pl stop&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. Mount your new partition onto the root filesystem, ensuring it is automatically remounted at boot time by editing /etc/fstab  -- For the benefit of this guide, I&amp;#039;m calling my new partition /newdrive&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note this new partition can be a local drive, raid partition, lvm/md device, external NAS, SAN, NFS share or SMB share. The only condition is that the I/O throughput should be up to handling what Zoneminder will throw at it. For that speed reason, some favour non-journalled filesystems and accept the extra risk of data protection&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
4. Locate Zoneminder&amp;#039;s &amp;quot;events&amp;quot; and &amp;quot;images&amp;quot; directories. In Debian, these are usually in /usr/share/zoneminder &lt;br /&gt;
&lt;br /&gt;
If you wish to copy the data across, MOVE the events and images directories to /newdrive  &amp;#039;&amp;#039;(Note this will take a long time on systems with many events). Also, DO NOT restart zoneminder if it cannot locate these files as zmaudit.pl will delete the database entries for any events it cannot match files to&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
If you don&amp;#039;t wish to preserve the data, it is MUCH faster to simply delete or rename the original events and images dirs and create new directories in /newdrive and link to them from the original locations. There is no need to remove the &amp;quot;orphaned&amp;quot; entries in the database, zmaudit will take care of those.&lt;br /&gt;
&lt;br /&gt;
Eg: &lt;br /&gt;
&lt;br /&gt;
mkdir /newdrive/events&lt;br /&gt;
&lt;br /&gt;
mv /usr/share/zoneminder/events /usr/share/zoneminder/events_old&lt;br /&gt;
&lt;br /&gt;
ln -s /newdrive/events /usr/share/zoneminder/events&lt;br /&gt;
&lt;br /&gt;
(Repeat for images)&lt;br /&gt;
&lt;br /&gt;
5. Finally, restart zoneminder ( &amp;quot;/etc/init.d/zoneminder start&amp;quot; or &amp;quot;/usr/bin/zmpkg.pl start&amp;quot;)  Monitor its operation and ensure new events are being created normally and are viewable. Zoneminder should also update the &amp;quot;Disk: %%&amp;quot; on its Console screen to reflect the disk space on its new partition.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=3901</id>
		<title>Hardware Compatibility List</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=3901"/>
		<updated>2010-09-24T10:13:14Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: /* Network Cameras */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Zoneminder will work with almost any capture card that is supported by the linux kernel.  You may find additional details about supported hardware in the [http://www.zoneminder.com/forums/viewforum.php?f=10  Hardware Compatibility List] part of the forums.  Also if you find something in the forums that is  missing from the wiki ADD IT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Capture Cards ==&lt;br /&gt;
&lt;br /&gt;
[[Anykeeper]] &lt;br /&gt;
&lt;br /&gt;
[[Avermedia]]&lt;br /&gt;
&lt;br /&gt;
[[Camsecure PCI Express video capture]]&lt;br /&gt;
&lt;br /&gt;
[[Digiflower]]&lt;br /&gt;
&lt;br /&gt;
[[Grandtec Grand X Guard]] [http://www.grandtec.com/products/surveillance/xguard.html]&lt;br /&gt;
&lt;br /&gt;
[[Hauppauge]]&lt;br /&gt;
&lt;br /&gt;
[[Ituner Spectra 8]] [http://www.ituner.com/spectra.htm]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 4400r]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 8800]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Leadtek WinFast VC 100 - the cheapest bt878 model with no tuner on it, just Com/Svideo in.&lt;br /&gt;
&lt;br /&gt;
[[Linux Media Labs LMLBT44]] [http://www.linuxmedialabs.com]&lt;br /&gt;
&lt;br /&gt;
[[Osprey 100]]&lt;br /&gt;
&lt;br /&gt;
[[Provideo PV- series (Bluecherry)]] [http://store.bluecherry.net/SearchResults.asp?Cat=63&amp;amp;Click=51]&lt;br /&gt;
&lt;br /&gt;
[[TView 95/99]]&lt;br /&gt;
&lt;br /&gt;
[[Videocards with Philips saa7134 chipset]]&lt;br /&gt;
&lt;br /&gt;
[[WinFast TV2000 XP]]&lt;br /&gt;
&lt;br /&gt;
== bt8x8 Cards ==&lt;br /&gt;
A note on the bt8x8-based TV-tuner cards: these usually have beside the tuner input, also a Composite and an S-Video input. You can hook up 2 analog cameras to these, and access from ZoneMinder both of them as individual cameras, at max 15Fps. You don&amp;#039;t need two separate TV cards for two cameras!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Pico2000]] - 4 port card, one chip bt878, around 2 fps when using all channels&lt;br /&gt;
&lt;br /&gt;
[[Bt878_4chip_8inputs]] -4 chips bt878, 8 inputs, around 5 fps when using 2 inputs per chip&lt;br /&gt;
&lt;br /&gt;
[[:Image:Karta.jpg| bt878 8 chip 8 input]] - options bttv card=77,77,77,77,77,77,77,77.  The card is supplied with D-sub to 8 BNC connector with the connectors labelled VID1, AUD1, VID2, AUD3 etc. The /dev/video device numbering may be backwards such that /dev/video7 is VID1, /dev/video6 -&amp;gt; VID2, 5 -&amp;gt; 3, 4 -&amp;gt; 4, /dev/video3 -&amp;gt; AUD1 etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Most other BTTV (bt878, bt848) cards, see /usr/src/linux/Documentation/video4linux/bttv/CARDLIST on your system for a list of some of them.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Analog Cameras ==&lt;br /&gt;
&lt;br /&gt;
Any regular composite or S-video camera connected via a supported capture card.  Some analog cameras feature camera control - ZM supports several of these camera&amp;#039;s Pan/Tilt/Zoom functions via serial port control, as well as camera Presets, Focus, Iris, etc.&lt;br /&gt;
*[[PicturetelControlScript | PictureTel PTZ2N]].&lt;br /&gt;
&lt;br /&gt;
== Network Cameras ==&lt;br /&gt;
For Network Cams to work they need to be able to stream MJPEG without the requirement of activex controls. If you see the requirement for the camera calls for IE then there is a good chance it may not work. The other option is to grab JPEG images if the camera supports that option which will work but at a lower frame rate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any network camera that allows access to single JPEG image grabs or &amp;#039;&amp;#039;&amp;#039;some but not all&amp;#039;&amp;#039;&amp;#039; multi-part JPEG feeds.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Full Compatibility &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some &lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[BSTI]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Cisco]] some&lt;br /&gt;
&lt;br /&gt;
* [[Cisco]] WVC80N&lt;br /&gt;
&lt;br /&gt;
* [[D-Link]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Foscam]] (FI8908W, FI8904W, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Gadspot]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Level One]] some&lt;br /&gt;
&lt;br /&gt;
* [[Linksys]] WVC-210 / WVC2300 / PVC2300 / WVC54GC&lt;br /&gt;
&lt;br /&gt;
* [[Maygion]] (IP-603, IP-604, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Rimax]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Sony]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Trendnet]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Y-Cam]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Zavio]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Iguard]] IP390E&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Remote systems, themselves running zoneminder, can be accessed as cameras using the Remote Path of &amp;#039;&amp;#039;&amp;#039;/cgi-bin/nph-zms?mode=single&amp;amp;monitor=1&amp;amp;scale=100&amp;amp;maxfps=5&amp;amp;buffer=1000&amp;#039;&amp;#039;&amp;#039; - where the monitor number is the correct camera on the remote system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Single Jpeg Only&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some&lt;br /&gt;
&lt;br /&gt;
* [[JVC]] some&lt;br /&gt;
&lt;br /&gt;
* [[Panasonic]] some&lt;br /&gt;
&lt;br /&gt;
* PLANET some&lt;br /&gt;
&lt;br /&gt;
*[[Toshiba]] some&lt;br /&gt;
&lt;br /&gt;
* [[Veo Observer IP NetCam]] most&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] All&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mpeg(ver1.24.0 and up)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[ABS_MegaCam]]&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[ ACTi]] All&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] Most&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with modifications&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[Aviosys]] some&lt;br /&gt;
&lt;br /&gt;
* [[Mobotix]]  all  &lt;br /&gt;
&lt;br /&gt;
*[[Edimax]] some&lt;br /&gt;
&lt;br /&gt;
* [[Conceptronic]]  some&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with problems&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
* [[Compro]] IP70. MPEG4 only, some reliability issues and general poor firmware quality.&lt;br /&gt;
&lt;br /&gt;
* [[Grandtec]] [[Grandtec_WLAN_Camera|WLAN Camera]] WiFi or III - acceptable indoor quality, no infrared-filter (better nightvision) cheap!&lt;br /&gt;
&lt;br /&gt;
* [[Intellinet]]  IPCamera with the new firmware.&lt;br /&gt;
&lt;br /&gt;
* Old Intellinet IPCamera (model MWNC-100) with this (http://www.zoneminder.com/forums/viewtopic.php?t=7500) protocol adapter. &lt;br /&gt;
&lt;br /&gt;
* OvisLink AirLive WL-5400CAM&lt;br /&gt;
&lt;br /&gt;
== Network Digitizers ==&lt;br /&gt;
&lt;br /&gt;
Like Network Cameras, these devices produce a video stream - but they accept an analog video input from a camera or other video source.&lt;br /&gt;
&lt;br /&gt;
*The [[IP9100 | Aviosys IP9100, Models A, B and Plus]] has four analog video inputs.  It produces a ZM compatible video stream from one of the inputs, which is selectable via an HTTP GET command.  There might even be a control script for ZM that lets you select the active video input using &amp;#039;&amp;#039;ZM&amp;#039;s Camera Control Presets!&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
With the yoics Aviosys 9100 firmware at http://www.yoics.com/?p=28, ZoneMinder can directly access all four ports via /usr/yoicsX.jpg as the remote host path, where X is 0 - 3.&lt;br /&gt;
&lt;br /&gt;
== USB Cameras ==&lt;br /&gt;
&lt;br /&gt;
*Just Zoom USB cam&lt;br /&gt;
&lt;br /&gt;
*Creative Webcam Pro, Webcam 3, LIVE! Cam OPTIA PRO (V4L2, Chan 0, PAL, YUYV)&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;Most&amp;#039;&amp;#039; UVCvideo cameras, including: [[Logitech QuickCam Express]], QuickCam Pro 3000, QuickCam Communicate STX/Deluxe, and [[Logitech Webcam Pro 9000]]&lt;br /&gt;
&lt;br /&gt;
*Logitech Quickcam Orbit/Sphere (experimental basic pan/tilt control has also published for testing and hacking [http://www.zoneminder.com/forums/viewtopic.php?t=9788])&lt;br /&gt;
&lt;br /&gt;
*[[Philips]] &lt;br /&gt;
&lt;br /&gt;
*Any OV511 based USB camera [http://alpha.dyndns.org/ov511/cameras.html]&lt;br /&gt;
&lt;br /&gt;
*Any CPIA based USB camera [http://webcam.sourceforge.net]&lt;br /&gt;
&lt;br /&gt;
*[[LabTec WebCam Pro]]&lt;br /&gt;
&lt;br /&gt;
*Confirmed basic functionality with Microsoft Lifecam VX 5000 using UVC Streaming method&lt;br /&gt;
&lt;br /&gt;
Note that most USB cameras that can use Video4Linux/V4L2, and so can be used by ZoneMinder.  Some have older chipsets and can be hard to find new.&lt;br /&gt;
&lt;br /&gt;
Note that PWC drivers are not included in the kernel. Some distribution&amp;#039;s add them in and other may not. Here are some relevant links:&lt;br /&gt;
* [http://www.smcc.demon.nl/webcam/ Old Maintainer]&lt;br /&gt;
* [http://www.saillard.org/linux/pwc/ Current PWC Maintainer]&lt;br /&gt;
&lt;br /&gt;
== X10 Devices ==&lt;br /&gt;
The only device that really needs to be compatable with ZM is the Transceiver, all other x10 devices comunicate through that device.&lt;br /&gt;
*[[CM11]] Bi-Directional Transceiver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other X10 notes:&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=6423&amp;amp;highlight=x10 Topic 6423]&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=7082&amp;amp;highlight=x10 Topic 7082]&lt;br /&gt;
&lt;br /&gt;
== All other hardware as supported by Linux ==&lt;br /&gt;
To find out if your hardware is supported, check the HCL at [http://www.linuxquestions.org/hcl/ linuxquestions.org]&lt;br /&gt;
&lt;br /&gt;
[http://kmuto.jp/debian/hcl/ Debian]&lt;br /&gt;
&lt;br /&gt;
[http://fedoraproject.org/wiki/HCL Fedora]  [http://fedora-linux.nl/wiki/index.php/HCL Fedora Unofficial HCL]&lt;br /&gt;
&lt;br /&gt;
[http://www.mandriva.com/hardware Mandriva]&lt;br /&gt;
&lt;br /&gt;
[https://hardware.redhat.com/index.cgi RedHat]&lt;br /&gt;
&lt;br /&gt;
[http://en.opensuse.org/Hardware Suse]&lt;br /&gt;
&lt;br /&gt;
[http://doc.gwos.org/index.php/HCL Ubuntu]&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Compro&amp;diff=3900</id>
		<title>Compro</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Compro&amp;diff=3900"/>
		<updated>2010-09-24T10:11:57Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Cheap cameras from Taiwan (Despite the American references on the name)&lt;br /&gt;
&lt;br /&gt;
IP70&lt;br /&gt;
&lt;br /&gt;
Setup REQUIRES Internet Explorer (the configuration pages contain broken javascript which hide various settings and won&amp;#039;t let you save settings unless you&amp;#039;re running IE)&lt;br /&gt;
&lt;br /&gt;
mjpeg is not. The browser page for live view is merely a javascript wrapper which requests a static jpg repeatedly. This would be fine for Zoneminder if it wasn&amp;#039;t for the fact that the js appends a unique identifier to the end of each fetch and the camera appears to cache files without this. So if you dig through the html to find the url and try it in zm, zm will just record the first image repeatedly.&lt;br /&gt;
&lt;br /&gt;
DOES work with RTSP / MPEG4  (Zoneminder 1.24.2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source tab;&lt;br /&gt;
&lt;br /&gt;
Remote Protocol RTSP&lt;br /&gt;
Remote Method RTP/RTSP&lt;br /&gt;
Remote Host Name IP of camera&lt;br /&gt;
Remote Host Port 554&lt;br /&gt;
Remote Host Path /medias2&lt;br /&gt;
Remote Image Colours 24 bit&lt;br /&gt;
Capture Width (pixels) 640&lt;br /&gt;
Capture Height (pixels) 480&lt;br /&gt;
Preserve Aspect Ratio Unticked&lt;br /&gt;
Orientation Normal&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On the camera configuration;&lt;br /&gt;
&lt;br /&gt;
Update to firmware &amp;quot;IP70 1.47&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Enter Setup, Camera tab;&lt;br /&gt;
Dot Turbo Picture&lt;br /&gt;
Tick &amp;quot;Enable 2nd stream&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Under Stream2 settings (Use IE if old firmware as FF doesn&amp;#039;t save settings)&lt;br /&gt;
&lt;br /&gt;
Untick 3GPP&lt;br /&gt;
Set Resolution to VGA&lt;br /&gt;
Codec: MPEG-4&lt;br /&gt;
Framerate 30&lt;br /&gt;
Quality 1Mbps&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Y-Cam&amp;diff=3899</id>
		<title>Y-Cam</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Y-Cam&amp;diff=3899"/>
		<updated>2010-09-24T10:06:19Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Y-Cam Black:&lt;br /&gt;
&lt;br /&gt;
RTSP MPEG4 stream:	/live_mpeg4.sdp&lt;br /&gt;
&lt;br /&gt;
RTSP MJPEG stream:	/live_mjpeg.sdp&lt;br /&gt;
&lt;br /&gt;
HTTP MPEG4 stream:	/stream.av&lt;br /&gt;
&lt;br /&gt;
HTTP MJPEG stream:	/stream.jpg&lt;br /&gt;
&lt;br /&gt;
HTTP snapshot image:  /snapshot.jpg&lt;br /&gt;
&lt;br /&gt;
Size of each stream is setup in preferences. Normally recommended to leave primary stream as the maximum and set the secondary stream for 320x240 for thumbnails or smaller recorded streams.&lt;br /&gt;
&lt;br /&gt;
Note: Colour balance on some of the Y-Cam blacks is /very/ off. Greens as pinks etc.&lt;br /&gt;
&lt;br /&gt;
Do not use this camera if colour is important, however as a night-time room Infra-red camera it is very suitable. We use several for welfare monitoring of horses.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Panasonic&amp;diff=3898</id>
		<title>Panasonic</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Panasonic&amp;diff=3898"/>
		<updated>2010-09-24T10:03:51Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;BL-C1, BL-C10, BL-C20, BL-C30, BL-C101, KX-HCM10, BB-HCM531 etc (including PTZ support) &lt;br /&gt;
&lt;br /&gt;
BB-HCM381. At least JPEG capture (640x480@5fps) works. &lt;br /&gt;
&lt;br /&gt;
bl-c1 works on http://user:password@ip/cgi-bin/nphContinuousServerPush?Resolution=640x480&amp;amp;Quality=Standard&lt;br /&gt;
&lt;br /&gt;
bl-c101 works on http://user:password@ip/nphMotionJpeg?Resolution=640x480&amp;amp;Quality=Standard  (However, on mine this mjpeg stream drops out intermittently and won&amp;#039;t resync without camera restart)&lt;br /&gt;
&lt;br /&gt;
BB-HCM531 works on the same as the c101 and varieties. Very reliable external camera.&lt;br /&gt;
&lt;br /&gt;
BB-HCM511A and BB-HCM531A&lt;br /&gt;
&lt;br /&gt;
=BL-C20A=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source type: Remote&lt;br /&gt;
 Remote Host Name: IP Address of Camera&lt;br /&gt;
 Remote Host Port: 80 (Default) or the non-default port assigned to the camera in your network&lt;br /&gt;
 Remote host Path: /cgi-bin/nphContinuousServerPush?Resolution=640x480&amp;amp;Quality=Standard &lt;br /&gt;
 Control script: download at www.condrau.com/download/zmcontrol-blc30.pl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=BL-C30=&lt;br /&gt;
&lt;br /&gt;
 Source type: Remote&lt;br /&gt;
 Remote Host Name: IP Address of Camera&lt;br /&gt;
 Remote Host Port: 80 (Default) or the non-default port assigned to the camera in your network&lt;br /&gt;
 Remote host Path: nphMotionJpeg?Resolution=320x240&amp;amp;Quality=Standard&lt;br /&gt;
 Control script: download at www.condrau.com/download/zmcontrol-blc30.pl&lt;br /&gt;
&lt;br /&gt;
The control script supports all controls for this camera, but it can be used for other Panasonic cameras as well.&lt;br /&gt;
&lt;br /&gt;
Note that I implemented a real name preset functionality, where you can set any desired name as the preset name. It is basically possible to set the presets through ZM&amp;#039;s interface, but I prefer to do it through the cam&amp;#039;s firmware interface, which is the default setting in the script. By changing one constant definition, you may change this behaviour. In any case still activate the &amp;quot;can set presets&amp;quot; option in ZM, after which you can assign names to each preset.&lt;br /&gt;
&lt;br /&gt;
I would further recommend to update the cam&amp;#039;s firmware. I found smoother operation in ZM after having updated the firmware.&lt;br /&gt;
[bco]&lt;br /&gt;
&lt;br /&gt;
[[Category:Cameras]]&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Panasonic&amp;diff=3897</id>
		<title>Panasonic</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Panasonic&amp;diff=3897"/>
		<updated>2010-09-24T10:02:50Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;BL-C1, BL-C10, BL-C20, BL-C30, KX-HCM10 etc (including PTZ support) &lt;br /&gt;
&lt;br /&gt;
BB-HCM381. At least JPEG capture (640x480@5fps) works. &lt;br /&gt;
&lt;br /&gt;
bl-c1 works on http://user:password@ip/cgi-bin/nphContinuousServerPush?Resolution=640x480&amp;amp;Quality=Standard&lt;br /&gt;
&lt;br /&gt;
bl-c101 works on http://user:password@ip/nphMotionJpeg?Resolution=640x480&amp;amp;Quality=Standard  (However, on mine this mjpeg stream drops out intermittently and won&amp;#039;t resync without camera restart)&lt;br /&gt;
&lt;br /&gt;
BB-HCM531 works on the same as the c101 and varieties. Very reliable external camera.&lt;br /&gt;
&lt;br /&gt;
BB-HCM511A and BB-HCM531A&lt;br /&gt;
&lt;br /&gt;
=BL-C20A=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source type: Remote&lt;br /&gt;
 Remote Host Name: IP Address of Camera&lt;br /&gt;
 Remote Host Port: 80 (Default) or the non-default port assigned to the camera in your network&lt;br /&gt;
 Remote host Path: /cgi-bin/nphContinuousServerPush?Resolution=640x480&amp;amp;Quality=Standard &lt;br /&gt;
 Control script: download at www.condrau.com/download/zmcontrol-blc30.pl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=BL-C30=&lt;br /&gt;
&lt;br /&gt;
 Source type: Remote&lt;br /&gt;
 Remote Host Name: IP Address of Camera&lt;br /&gt;
 Remote Host Port: 80 (Default) or the non-default port assigned to the camera in your network&lt;br /&gt;
 Remote host Path: nphMotionJpeg?Resolution=320x240&amp;amp;Quality=Standard&lt;br /&gt;
 Control script: download at www.condrau.com/download/zmcontrol-blc30.pl&lt;br /&gt;
&lt;br /&gt;
The control script supports all controls for this camera, but it can be used for other Panasonic cameras as well.&lt;br /&gt;
&lt;br /&gt;
Note that I implemented a real name preset functionality, where you can set any desired name as the preset name. It is basically possible to set the presets through ZM&amp;#039;s interface, but I prefer to do it through the cam&amp;#039;s firmware interface, which is the default setting in the script. By changing one constant definition, you may change this behaviour. In any case still activate the &amp;quot;can set presets&amp;quot; option in ZM, after which you can assign names to each preset.&lt;br /&gt;
&lt;br /&gt;
I would further recommend to update the cam&amp;#039;s firmware. I found smoother operation in ZM after having updated the firmware.&lt;br /&gt;
[bco]&lt;br /&gt;
&lt;br /&gt;
[[Category:Cameras]]&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Panasonic&amp;diff=3896</id>
		<title>Panasonic</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Panasonic&amp;diff=3896"/>
		<updated>2010-09-24T10:02:32Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;BL-C1, BL-C10, BL-C20, BL-C30, KX-HCM10 etc (including PTZ support) &lt;br /&gt;
&lt;br /&gt;
BB-HCM381. At least JPEG capture (640x480@5fps) works. &lt;br /&gt;
&lt;br /&gt;
bl-c1 works on http://user:password@ip/cgi-bin/nphContinuousServerPush?Resolution=640x480&amp;amp;Quality=Standard&lt;br /&gt;
bl-c101 works on http://user:password@ip/nphMotionJpeg?Resolution=640x480&amp;amp;Quality=Standard  (However, on mine this mjpeg stream drops out intermittently and won&amp;#039;t resync without camera restart)&lt;br /&gt;
BB-HCM531 works on the same as the c101 and varieties. Very reliable external camera.&lt;br /&gt;
&lt;br /&gt;
BB-HCM511A and BB-HCM531A&lt;br /&gt;
&lt;br /&gt;
=BL-C20A=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source type: Remote&lt;br /&gt;
 Remote Host Name: IP Address of Camera&lt;br /&gt;
 Remote Host Port: 80 (Default) or the non-default port assigned to the camera in your network&lt;br /&gt;
 Remote host Path: /cgi-bin/nphContinuousServerPush?Resolution=640x480&amp;amp;Quality=Standard &lt;br /&gt;
 Control script: download at www.condrau.com/download/zmcontrol-blc30.pl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=BL-C30=&lt;br /&gt;
&lt;br /&gt;
 Source type: Remote&lt;br /&gt;
 Remote Host Name: IP Address of Camera&lt;br /&gt;
 Remote Host Port: 80 (Default) or the non-default port assigned to the camera in your network&lt;br /&gt;
 Remote host Path: nphMotionJpeg?Resolution=320x240&amp;amp;Quality=Standard&lt;br /&gt;
 Control script: download at www.condrau.com/download/zmcontrol-blc30.pl&lt;br /&gt;
&lt;br /&gt;
The control script supports all controls for this camera, but it can be used for other Panasonic cameras as well.&lt;br /&gt;
&lt;br /&gt;
Note that I implemented a real name preset functionality, where you can set any desired name as the preset name. It is basically possible to set the presets through ZM&amp;#039;s interface, but I prefer to do it through the cam&amp;#039;s firmware interface, which is the default setting in the script. By changing one constant definition, you may change this behaviour. In any case still activate the &amp;quot;can set presets&amp;quot; option in ZM, after which you can assign names to each preset.&lt;br /&gt;
&lt;br /&gt;
I would further recommend to update the cam&amp;#039;s firmware. I found smoother operation in ZM after having updated the firmware.&lt;br /&gt;
[bco]&lt;br /&gt;
&lt;br /&gt;
[[Category:Cameras]]&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=3867</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=3867"/>
		<updated>2010-08-30T05:37:54Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: /* Trouble Shooting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== ZoneMinder Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
This is the new FAQ page. I will be migrating the existing FAQs here as soon as possible. In the meantime the old FAQ page is available [http://www.zoneminder.com/faq.html here].&lt;br /&gt;
&lt;br /&gt;
Feel free to contribute any FAQs that you think are missing.&lt;br /&gt;
&lt;br /&gt;
===How can I stop ZoneMinder filling up my disk?===&lt;br /&gt;
&lt;br /&gt;
Recent versions of ZoneMinder come with a filter you can use for this purpose already included. However &amp;#039;&amp;#039;&amp;#039;by default it is not enabled for event deletion&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The filter is called &amp;#039;&amp;#039;PurgeWhenFull&amp;#039;&amp;#039; and to find it, choose one of the event counts from the console page, for instance events in the last hour, for one of your monitors.&lt;br /&gt;
&lt;br /&gt;
This will bring up an event listing and a filter window.&lt;br /&gt;
&lt;br /&gt;
In the filter window there is a drop down select box labeled &amp;#039;Use Filter&amp;#039;, that lets your select a saved filter. Select &amp;#039;PurgeWhenFull&amp;#039; and it will load that filter.&lt;br /&gt;
&lt;br /&gt;
Make any modifications you might want, such as the percentage full you want it to kick in, or how many events to delete at a time (it will repeat the filter as many times as needed to clear the space, but will only delete this many events each time to get there).&lt;br /&gt;
&lt;br /&gt;
Then click on &amp;#039;Save&amp;#039; which will bring up a new window. Make sure the &amp;#039;Automatically delete&amp;#039; box is checked and press save to save your filter. This will then run in the background to keep your disk within those limits.&lt;br /&gt;
&lt;br /&gt;
After you&amp;#039;ve done that, you changes will automatically be loaded into zmfilter within a few minutes.&lt;br /&gt;
&lt;br /&gt;
Check the &amp;lt;tt&amp;gt;zmfilter.log&amp;lt;/tt&amp;gt; file to make sure it is running as sometimes missing perl modules mean that it never runs but people don&amp;#039;t always realize.&lt;br /&gt;
&lt;br /&gt;
There are two methods for ZM to remove files when they are deleted that can be found in Options under the System tab ZM_OPT_FAST_DELETE and ZM_RUN_AUDIT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_OPT_FAST_DELETE:&lt;br /&gt;
&lt;br /&gt;
Normally an event created as the result of an alarm consists of entries in one or more database tables plus the various files associated with it. When deleting events in the browser it can take a long time to remove all of this if your are trying to do a lot of events at once. It is recommended that you set this option which means that the browser client only deletes the key entries in the events table, which means the events will no longer appear in the listing, and leaves the zmaudit daemon to clear up the rest later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_RUN_AUDIT:&lt;br /&gt;
&lt;br /&gt;
The zmaudit daemon exists to check that the saved information in the database and on the file system match and are consistent with each other. If an error occurs or if you are using &amp;#039;fast deletes&amp;#039; it may be that database records are deleted but files remain. In this case, and similar, zmaudit will remove redundant information to synchronize the two data stores. This option controls whether zmaudit is run in the background and performs these checks and fixes continuously. This is recommended for most systems however if you have a very large number of events the process of scanning the database and file system may take a long time and impact performance. In this case you may prefer to not have zmaudit running unconditionally and schedule occasional checks at other, more convenient, times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_AUDIT_CHECK_INTERVAL:&lt;br /&gt;
&lt;br /&gt;
The zmaudit daemon exists to check that the saved information in the database and on the files system match and are consistent with each other. If an error occurs or if you are using &amp;#039;fast deletes&amp;#039; it may be that database records are deleted but files remain. In this case, and similar, zmaudit will remove redundant information to synchronize the two data stores. The default check interval of 900 seconds (15 minutes) is fine for most systems however if you have a very large number of events the process of scanning the database and file system may take a long time and impact performance. In this case you may prefer to make this interval much larger to reduce the impact on your system. This option determines how often these checks are performed.&lt;br /&gt;
&lt;br /&gt;
===What does a &amp;#039;Can&amp;#039;t shmget: Invalid argument&amp;#039; error in my logs mean? and my cameras won&amp;#039;t display video at higher resolutions.===&lt;br /&gt;
&lt;br /&gt;
This error is discussed in the README in the following excerpt:-&lt;br /&gt;
&amp;#039;&amp;#039;...this is caused by an attempt to allocate an amount of shared memory greater than your system can handle. The size it requests is based on the following formula, ring buffer size x image width x image height x 3 (for 24 bit images) + a bit of overhead.&lt;br /&gt;
&lt;br /&gt;
So, for example:&lt;br /&gt;
&amp;lt;pre&amp;gt;384x288 capture resolution, that makes: 110 592 pixels&lt;br /&gt;
in 24 bit color that&amp;#039;s x24 = 2 654 208 bits per frame &lt;br /&gt;
by 80 frames ring buffer x80 = 212 336 640 bits per camera &lt;br /&gt;
by 4 cameras x4 = 849 346 560 bits. &lt;br /&gt;
Plus 10% overhead = 934 281 216 bits &lt;br /&gt;
That&amp;#039;s 116 785 152 bytes, and &lt;br /&gt;
= 114 048 kB, respectively 111.38 MB. &lt;br /&gt;
If my shared memory is set to 134 217 728, which is exactly 128MB, &lt;br /&gt;
that means I shouldn&amp;#039;t have any problem.&lt;br /&gt;
(Note that 1 byte = 8 bits and 1kbyte = 1024bytes, 1MB = 1024 kB)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If for instance you were using 24bit 640x480 then this would come to about 92Mb if you are using the default buffer size of 100. If this is too large then you can either reduce the image or buffer sizes or increase the maximum amount of shared memory available. If you are using RedHat then you can get details on how to change these settings at http://www.redhat.com/docs/manuals/database/RHDB-2.1-Manual/admin_user/kernel-resources.html .  &lt;br /&gt;
&lt;br /&gt;
You should be able to use a similar procedure  with other distributions to modify the shared memory pool without kernel recompilations though in some cases this may be necessary. Note, this error also sometimes occurs if you have an old shared memory segment lying around from a previous run that is too small. Use the ipcs and ipcrm system commands to check and remove it if necessary.&amp;#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You can often find out how much shared memory is available by typing the following :-&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/sys/kernel/shmall&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the most you can allocate in one go :-&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/sys/kernel/shmmax&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change these values type (for example) :-&lt;br /&gt;
&amp;lt;pre&amp;gt;echo 134217728 &amp;gt;/proc/sys/kernel/shmall&lt;br /&gt;
echo 134217728 &amp;gt;/proc/sys/kernel/shmmax&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Be sure to restart ZoneMinder after this.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
However be aware that sometimes you will only need to change the shmmax value as shmall is often large enough. Also changing these values in this way is only effective until your machine is rebooted. &lt;br /&gt;
&lt;br /&gt;
To change them permanently you will need to edit &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; and add the following lines (for example) :-&lt;br /&gt;
&amp;lt;pre&amp;gt;kernel.shmall = 134217728&lt;br /&gt;
kernel.shmmax = 134217728&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load these settings in the sysctl.conf file type:&lt;br /&gt;
&amp;lt;pre&amp;gt;sysctl -p&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check your shared memory settings type:&lt;br /&gt;
&amp;lt;pre&amp;gt;ipcs -l&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that with Megapixel cameras like the Axis 207mw becoming cheaper and more attractive, the above memory settings are not adequate. To get Zoneminder working with a full 1280x1024 resolution camera in full colour, increase 134217728 to, for example, 268424446&lt;br /&gt;
&lt;br /&gt;
These changes will now also be set the next time your machine is restarted.&lt;br /&gt;
&lt;br /&gt;
Versions 1.24.x of ZoneMinder also allows you to use an alternate method of shared memory allocation, [http://en.wikipedia.org/wiki/Mmap mapped memory]. This requires less configuration and can be simpler to use. Mapped memory allows you to use a special type of file as the placeholder for your memory and this file is &amp;#039;mapped&amp;#039; into memory space for easy and fast access.&lt;br /&gt;
&lt;br /&gt;
To enable mapped memory in ZoneMinder you need add add the --enable--mmap=yes switch to your configure line. By default mapped memory files are created in /dev/shm which on most distributions is a dedicated pseudo-partition containing memory formatted as a filesystem. If your system uses a different path then this can be changed in ZoneMinder in Options-&amp;gt;paths-&amp;gt;PATH_MAP. It uses a filesystem type called [http://en.wikipedia.org/wiki/Tmpfs tmpfs]. If you type &amp;#039;df&amp;#039; you should see this area and the size of memory it currently allows. It is important that you do not use a disk based filesystem for your memory mapped files as this will cause memory access to be extremely slow. ZoneMinder creates files called .zm.mmap.&amp;lt;monitor id&amp;gt; in the mapped memory filesystem.&lt;br /&gt;
&lt;br /&gt;
Mapped memory is subject to the same limitations in terms of total memory as using more traditional shared memory but does not require any configuration per allocation or chunk. In future versions of ZoneMinder this will be the default shared memory storage method.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;AlternateSharedMemory&amp;quot; style=&amp;quot;width:80%; border:2px solid #8a8588; background:#faf5ff; vertical-align:top; margin-top: 6px; padding: 4px;&amp;quot;&amp;gt;&lt;br /&gt;
Another good article about shared memory settings http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.uprun.doc/doc/t0008238.htm . &lt;br /&gt;
It made a statement that conflicted with those in the Redhat article but they fixed a [http://www.zoneminder.com/forums/viewtopic.php?t=9692 long standing memory issue on FC6], so give them a try. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The essential difference was that the kernel.shmall setting is NOT in a direct memory setting in KB but in pages of memory. it is Max Pages of memory&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;For example:&amp;#039;&amp;#039;&amp;#039; If you want to allocate a maximum memory setting to 8GB you have to convert it to the number of pages (or segments).&lt;br /&gt;
with a page size of 4096.&lt;br /&gt;
*kernel.shmall=8000x1024x1024/4096&lt;br /&gt;
**kernel.shmall=2048000&lt;br /&gt;
NOT 8388608000 as would be suggested in the RedHat article linked above.&lt;br /&gt;
&lt;br /&gt;
shmmax is the max amount to allocate in one request - &lt;br /&gt;
this is is an actual memory size (as opposed to pages) set to 4GB&lt;br /&gt;
*kernel.shmmax = 4194304000&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; would have these lines&amp;lt;pre&amp;gt;kernel.shmall=2048000&lt;br /&gt;
kernel.shmmax = 4194304000&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As above, reload your sysctl.conf with &amp;lt;tt&amp;gt;sysctl -p&amp;lt;/tt&amp;gt; and check that the settings are correct with &amp;lt;tt&amp;gt;ipcs -l&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===I have enabled motion detection but it is not always being triggered when things happen in the camera view===&lt;br /&gt;
&lt;br /&gt;
ZoneMinder uses zones to examine images for motion detection. When you create the initial zones you can choose from a number of preset values for sensitivity etc. Whilst these are usually a good starting point they are not always suitable for all situations and you will probably need to tweak the values for your specific circumstances. The meanings of the various settings are described in the documentation (http://www.zoneminder.com/wiki/index.php/Documentation#Defining_Zones) however if you believe you have sensible settings configured then there are two diagnostic approaches you can use.&lt;br /&gt;
&lt;br /&gt;
====Event Statistics====&lt;br /&gt;
The first technique is to use event statistics. Firstly you should ensure they are switched on in Options-&amp;gt;Debug-&amp;gt;ZM_RECORD_EVENT_STATS. This will then cause the raw motion detection statistics for any subsequently generated events to be written to the DB. These can then be accessed by first clicking on the Frames or Alarm Frames values of the event from any event list view in the web gui. Then click on the score value to see the actual values that caused the event. Alternatively the stats can be accessed by clicking on the &amp;#039;Stats&amp;#039; link when viewing any individual frame. The values displayed there correspond with the values that are used in the zone configuration and give you an idea of what &amp;#039;real world&amp;#039; values are being generated. &lt;br /&gt;
&lt;br /&gt;
Note that if you are investigating why events &amp;#039;do not&amp;#039; happen then these will not be saved and so won&amp;#039;t be accessible. The best thing to do in that circumstance is to make your zone more sensitive so that it captures all events (perhap even ones you don&amp;#039;t want) so you can get an idea of what values are being generated and then start to adjust back to less sensitive settings if necessary. You should make sure you test your settings under a variety of lighting conditions (e.g. day and night, sunny or dull) to get the best feel for that works and what doesn&amp;#039;t.&lt;br /&gt;
&lt;br /&gt;
Using statistics will slow your system down to a small degree and use a little extra disk space in the DB so once you are happy you can switch them off again. However it is perfectly feasible to keep them permanently on if your system is able to cope which will allow you to review your setting periodically.&lt;br /&gt;
&lt;br /&gt;
====Diagnostic Images====&lt;br /&gt;
The second approach is to use diagnostic images which are saved copies of the intermediate images that ZM uses when determining motion detection. These are switched on and off using Options-&amp;gt;Debug-&amp;gt;ZM_RECORD_DIAG_IMAGES.&lt;br /&gt;
&lt;br /&gt;
There are two kinds of diagnostic images which are and are written (and continuously overwritten) to the top level monitor event directory. If an event occurs then the files are additionally copied to the event directory and renamed with the appropriate frame number as a prefix.&lt;br /&gt;
&lt;br /&gt;
The first set are produced by the monitor on the image as a whole. The diag-r.jpg image is the current reference image against which all individual frames are compared and the diag-d.jpg image is the delta image highlighting the difference between the reference image and the last analysed image. In this images identicial pixels will be black and the more different a pixel is the whiter it will be. Viewing this image and determining the colour of the pixels is a good way of getting a feel for the pixel differences you might expect (often more than you think).&lt;br /&gt;
&lt;br /&gt;
The second set of diag images are labelled as diag-&amp;lt;zoneid&amp;gt;-&amp;lt;stage&amp;gt;.jpg where zoneid is the id of the zone in question (Smile) and the stage is where in the alarm check process the image is generated from. So if you have several zones you can expect to see multiple files. Also these files are only interested in what is happening in their zone only and will ignore anything else outside of the zone. The stages that each number represents are as follows,&lt;br /&gt;
&lt;br /&gt;
# Alarmed Pixels - This image shows all pixels in the zone that are considered to be alarmed as white pixels and all other pixels as black.&lt;br /&gt;
# Filtered Pixels - This is as stage one except that all pixels removed by the filters are now black. The white pixels represent the pixels that are candidates to generate an event.&lt;br /&gt;
# Raw Blobs - This image contains all alarmed pixels from stage 2 but aggrageted into blobs. Each blob will have a different greyscale value (between 1 and 254) so they can be difficult to spot with the naked eye but using a colour picker or photoshop will make it easier to see what blob is what.&lt;br /&gt;
# Filtered Blobs - This image is as stage 3 but under (or over) sized blobs have been removed. This is the final step before determining if an event has occurred, just prior to the number of blobs being counted. Thus this image forms the basis for determining whether an event is generated and outlining on alarmed images is done from the blobs in this image.&lt;br /&gt;
&lt;br /&gt;
Using the above images you should be able to tell at all stages what ZM is doing to determine if an event should happen or not. They are useful diagnostic tools but as is mentioned elsewhere they will massively slow your system down and take up a great deal more space. You should never leave ZM running for any length of time with diagnostic images on.&lt;br /&gt;
&lt;br /&gt;
===Why can&amp;#039;t ZoneMinder capture images (either at all or just particularly fast) when I can see my camera just fine in xawtv or similar?===&lt;br /&gt;
&lt;br /&gt;
With capture cards ZoneMinder will pull images as fast as it possibly can unless limited by configuration. ZoneMinder (and any similar application) uses the frame grabber interface to copy frames from video memory into user memory. This takes some time, plus if you have several inputs sharing one capture chip it has to switch between inputs between captures which further slows things down.&lt;br /&gt;
&lt;br /&gt;
On average a card that can capture at 25fps per chip PAL for one input will do maybe 6-10fps for two, 1-4fps for three and 1-2 for four. For a 30fps NTSC chip the figures will be correspondingly higher. However sometimes it is necessary to slow down capture even further as after an input switch it may take a short while for the new image to settle before it can be captured without corruption.&lt;br /&gt;
&lt;br /&gt;
When using xawtv etc to view the stream you are not looking at an image captured using the frame grabber but the card&amp;#039;s video memory mapped onto your screen. This requires no capture or processing unless you do an explicit capture via the J or ctrl-J keys for instance. Some cards or drivers do not support the frame grabber interface at all so may not work with ZoneMinder even though you can view the stream in xawtv. If you can grab a still using the grab functionality of xawtv then in general your card will work with ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
===Why can&amp;#039;t I see streamed images when I can see stills in the Zone window etc?===&lt;br /&gt;
&lt;br /&gt;
This issue is normally down to one of two causes&lt;br /&gt;
&lt;br /&gt;
1) You are using Internet Explorer and are trying to view multi-part jpeg streams. IE does not support these streams directly, unlike most other browsers. You will need to install Cambozola or another multi-part jpeg aware pluging to view them. To do this you will need to obtain the applet from the Downloads page and install the cambozola.jar file in the same directly as the ZoneMinder php files. Then find the ZoneMinder Options-&amp;gt;Images page and enable ZM_OPT_CAMBOZOLA and enter the web path to the .jar file in ZM_PATH_CAMBOZOLA. This will ordinarily just be cambozola.jar. Provided ZM_CAN_STREAM is set to auto and ZM_STREAM_METHOD is set to jpeg then Cambozola should be loaded next time you try and view a stream.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE&amp;#039;&amp;#039;&amp;#039;: If you find that the Cambozola applet loads in IE but the applet just displays the version # of Cambozola and the author&amp;#039;s name (as opposed to seeing the streaming images), you may need to chmod your cambozola.jar:&lt;br /&gt;
&lt;br /&gt;
  $ sudo chmod 775 cambozola.jar&lt;br /&gt;
&lt;br /&gt;
Once I did this, images started to stream for me.&lt;br /&gt;
&lt;br /&gt;
2) The other common cause for being unable to view streams is that you have installed the ZoneMinder cgi binaries (zms and nph-zms) in a different directory than your web server is expecting. Make sure that the --with-cgidir option you use to the ZoneMinder configure script is the same as the CGI directory configure for your web server. If you are using Apache, which is the most common one, then in your httpd.conf file there should be a line like &amp;lt;pre&amp;gt;ScriptAlias /cgi-bin/ &amp;quot;/var/www/cgi-bin/&amp;quot;&amp;lt;/pre&amp;gt; where the last directory in the quotes is the one you have specified. If not then change one or the other to match. Be warned that configuring apache can be complex so changing the one passed to the ZoneMinder configure (and then rebuilding and reinstalling) is recommended in the first instance. If you change the apache config you will need to restart apache for the changes to take effect. If you still cannot see stream reliably then try changing Options-&amp;gt;Paths-&amp;gt;ZM_PATH_ZMS to just use zms if nph-zms is specified, or vice versa. Also check in your apache error logs.&lt;br /&gt;
&lt;br /&gt;
===I have several monitors configured but when I load the Montage view in FireFox why can I only see two? or, Why don&amp;#039;t all my cameras display when I use the Montage view in FireFox?===&lt;br /&gt;
&lt;br /&gt;
By default FireFox only supports a small number of simultaneous connections. Using the montage view usually requires one persistent connection for each camera plus intermittent connections for other information such as statuses.&lt;br /&gt;
&lt;br /&gt;
You will need to increase the number of allowed connections to use the montage view with more than a small number of cameras.  Certain FireFox extensions such as FasterFox may also help to achieve the same result.&lt;br /&gt;
&lt;br /&gt;
To resolve this situation, follow the instructions below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Enter about:config in the address bar&lt;br /&gt;
&lt;br /&gt;
scroll down to&lt;br /&gt;
browser.cache.check_doc_frequency 3&lt;br /&gt;
change the 3 to a 1&lt;br /&gt;
&lt;br /&gt;
browser.cache.disk.enable True -&amp;gt; False&lt;br /&gt;
network.http.max-connections-per-server -&amp;gt; put a value of 100&lt;br /&gt;
network.http.max-persistent-connections-per-proxy -&amp;gt; 100 again&lt;br /&gt;
network.http.max-persistent-connections-per-server -&amp;gt; 100 again&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why is ZoneMinder using so much CPU?===&lt;br /&gt;
&lt;br /&gt;
The various elements of ZoneMinder can be involved in some pretty intensive activity, especially while analysing images for motion. However generally this should not overwhelm your machine unless it is very old or underpowered.&lt;br /&gt;
&lt;br /&gt;
There are a number of specific reasons why processor loads can be high either by design or by accident. To figure out exactly what is causing it in your circumstances requires a bit of experimentation.&lt;br /&gt;
&lt;br /&gt;
The main causes are.&lt;br /&gt;
&lt;br /&gt;
# Using a video palette other than greyscale or RGB24. This can cause a relatively minor performace hit, though still significant. Although some cameras and cards require using planar palettes ZM currently doesn&amp;#039;t support this format internally and each frame is converted to an RGB representation prior to processing. Unless you have compelling reasons for using YUV or reduced RGB type palettes such as hitting USB transfer limits I would experiment to see if RGB24 or greyscale is quicker. Put your monitors into &amp;#039;Monitor&amp;#039; mode so that only the capture daemons are running and monitor the process load of these (the &amp;#039;zmc&amp;#039; processes) using top. Try it with various palettes to see if it makes a difference.&lt;br /&gt;
# Big image sizes. A image of 640x480 requires at least four times the processing of a 320x240 image. Experiment with different sizes to see what effect it may have. Sometimes a large image is just two interlaced smaller frames so has no real benefit anyway. This is especially true for analog cameras/cards as image height over 320 (NTSC) or 352 PAL) are invariably interlaced.&lt;br /&gt;
# Capture frame rates. Unless there&amp;#039;s a compelling reason in your case there is often little benefit in running cameras at 25fps when 5-10fps would often get you results just as good. Try changing your monitor settings to limit your cameras to lower frame rates. You can still configure ZM to ignore these limits and capture as fast as possible when motion is detected.&lt;br /&gt;
# Run function. Obviously running in Record or Mocord modes or in Modect with lots of events generates a lot of DB and file activity and so CPU and load will increase.&lt;br /&gt;
# Basic default detection zones. By default when a camera is added one detection zone is added which covers the whole image with a default set of parameters. If your camera covers a view in which various regions are unlikely to generate a valid alarm (ie the sky) then I would experiment with reducing the zone sizes or adding inactive zones to blank out areas you don&amp;#039;t want to monitor. Additionally the actual settings of the zone themselves may not be optimal. When doing motion detection the number of changed pixels above a threshold is examined, then this is filter, then contiguous regions are calculated to see if an alarm is generated. If any maximum or minimum threshold is exceeded according to your zone settings at any time the calculation stops. If your settings always result in the calculations going through to the last stage before being failed then additional CPU time is used unnecessarily. Make sure your maximum and minimumzone thresholds are set to sensible values and experiment by switching RECORD_EVENT_STATS on and seeing what the actual values of alarmed pixels etc are during sample events.&lt;br /&gt;
# Optimise your settings. After you&amp;#039;ve got some settings you&amp;#039;re happy with then switching off RECORD_EVENT_STATS will prevent the statistics being written to the database which saves some time. Other settings which might make a difference are ZM_FAST_RGB_DIFFS, ZM_OPT_FRAME_SERVER and the JPEG_xxx_QUALITY ones.&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;m sure there are other things which might make a difference such as what else you have running on the box and memory sizes (make sure there&amp;#039;s no swapping going on). Also speed of disk etc will make some difference during event capture and also if you are watching the whole time then you may have a bunch of zms processes running also.&lt;br /&gt;
&lt;br /&gt;
I think the biggest factors are image size, colour depth and capture rate. Having said that I also don&amp;#039;t always know why you get certains results from &amp;#039;top&amp;#039;. For instance if I have a &amp;#039;zma&amp;#039; daemon running for a monitor that is capturing an image. I&amp;#039;ve commented out the actual analysis so all it&amp;#039;s doing is blending the image with the previous one. In colour mode this takes ~11 milliseconds per frame on my system and the camera is capturing at ~10fps. Using &amp;#039;top&amp;#039; this reports the process as using ~5% of CPU and permanently in R(un) state. Changing to greyscale mode the blending takes ~4msec (as you would expect as this is roughly a third of 11) but top reports the process as now with 0% CPU and permanently in S(leep) state. So an actual CPU resource usage change of a factor of 3 causes huge differences in reported CPU usage. I have yet to get to the bottom of this but I suspect it&amp;#039;s to do with scheduling somewhere along the line and that maybe the greyscale processing will fit into one scheduling time slice whereas the colour one won&amp;#039;t but I have no evidence of this yet!&lt;br /&gt;
&lt;br /&gt;
===Why is the timeline view all messed up?===&lt;br /&gt;
&lt;br /&gt;
The timeline view is a new view allowing you to see a graph of alarm activity over time and to quickly scan and home in on events of interest. However this feature is highly complex and still in beta. It is based extensively on HTML div tags, sometimes lots of them. Whilst FireFox is able to render this view successfully other browsers, particular Internet Explorer do not seem able to cope and so present a messed up view, either always or when there are a lot of events.&lt;br /&gt;
Using the timeline view is only recommended when using FireFox, however even then there may be issues.&lt;br /&gt;
&lt;br /&gt;
===How much Hard Disk Space / Bandwidth do I need for ZM?===&lt;br /&gt;
Please see [http://www.jpwilson.eu/ZM_Utils/ZM%20storage%20calc%20sheet.xls Storage Calc] in excel format&lt;br /&gt;
&lt;br /&gt;
Or go to [http://www.axis.com/products/video/design_tool/index.htm this link] for the Axis bandwidth calculator. Although this is aimed at Axis cameras it still produces valid results for any kind of IP camera.&lt;br /&gt;
&lt;br /&gt;
As a quick guide I have 4 cameras at 320x240 storing 1 fps except during alarm events. After 1 week 60GB of space in the volume where the events are stored (/var/www/html/zm) has been used.&lt;br /&gt;
&lt;br /&gt;
===When I try and run ZoneMinder I get lots of audit permission errors in the logs and it won&amp;#039;t start===&lt;br /&gt;
Many Linux distributions nowadays are built with security in mind. One of the latest methods of achieving this is via SELinux (Secure Linux) which controls who is able to run what in a more precise way then traditional accounting and file based permissions ([http://en.wikipedia.org/wiki/Selinux]).&lt;br /&gt;
If you are seeing entries in your system log like:&lt;br /&gt;
&lt;br /&gt;
   Jun 11 20:44:02 kernel: audit(1150033442.443:226): avc: denied { read } for pid=5068&lt;br /&gt;
   comm=&amp;quot;uptime&amp;quot; name=&amp;quot;utmp&amp;quot; dev=dm-0 ino=16908345 scontext=user_u:system_r:httpd_sys_script_t&lt;br /&gt;
   tcontext=user_u:object_r:initrc_var_run_t tclass=file&lt;br /&gt;
&lt;br /&gt;
then it is likely that your system has SELinux enabled and it is preventing ZoneMinder from performaing certain activities. You then have two choices. You can either tune SELinux to permit the required operations or you can disable SELinux entirely which will permit ZoneMinder to run unhindered. Disabling SELinux is usually performed by editing it&amp;#039;s configuration file (e.g., &amp;lt;tt&amp;gt;/etc/selinux/config&amp;lt;/tt&amp;gt;) and then rebooting. However if you run a public server you should read up on the risks associated with disabled Secure Linux before disabling it.&lt;br /&gt;
&lt;br /&gt;
Note that SELinux may cause errors other than those listed above. If you are in any doubt then it can be worth disabling SELinux experimentally to see if it fixes your problem before trying other solutions.&lt;br /&gt;
&lt;br /&gt;
=== How do I enable ZoneMinder&amp;#039;s security? ===&lt;br /&gt;
In the console, click on Options. Check the box next to &amp;quot;ZM_OPT_USE_AUTH&amp;quot;. You will immediately be asked to login. The username is &amp;#039;admin&amp;#039; and the password is &amp;#039;admin&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Manage Users:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
In main console, go to &amp;#039;&amp;#039;&amp;#039;Options-&amp;gt;Users&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
* You may also consider to use the web server security, for example, htaccess files under Apache scope; You may even use this as an additional/redundant security on top of Zoneminders built-in security features;&lt;br /&gt;
&lt;br /&gt;
=== Why does ZM stop recording once I have 32000 events for my monitor? ===&lt;br /&gt;
This is a limitation of the ext3 filesystem that most Linux distributions use. One directory cannot hold more than 32k approx  files.&lt;br /&gt;
&lt;br /&gt;
Version of ZM from 1.23.0 onwards allow you to have a deeper filesystem with fewer files per individual directory. As well as not being susceptible to the 32k limit this is also somewhat  faster. However it is relatively and although few issues have been reported thus far it should be considered in beta for now. Also, it is currently not possible to migrate saved events between the different storage formats so is only suitable for new installations or if you do not mind losing saved events.&lt;br /&gt;
&lt;br /&gt;
So if you do not want to use the deeper filesystem option&lt;br /&gt;
(Options-&amp;gt;Paths-&amp;gt;ZM_USE_DEEP_STORAGE), for now you have to reduce the&lt;br /&gt;
number of events or store your images (e.g. /var/lib/zoneminder) on a&lt;br /&gt;
partition that uses a different filesystem such as ext4 or reiserfs.&lt;br /&gt;
&lt;br /&gt;
You can read about the lack of a limit in the number of&lt;br /&gt;
sub-directories in the ext4 filesystem at:&lt;br /&gt;
  http://kernelnewbies.org/Ext4&lt;br /&gt;
and see what tools may assist in your use of this filesystem in:&lt;br /&gt;
  http://ext4.wiki.kernel.org/index.php/Ext4_Howto&lt;br /&gt;
Note that while GParted 0.5.2 recognizes ext4 partitions, at least in&lt;br /&gt;
some circumstances it does not succeed in formatting a partition for&lt;br /&gt;
the ext4 filesystem.  Also, if you search for ext3 or reiserfs on the&lt;br /&gt;
forums you will find various threads on this issue with guidance on&lt;br /&gt;
how to convert.&lt;br /&gt;
&lt;br /&gt;
== Managing system load &amp;#039;&amp;#039;(with IP Cameras in mind)&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
Zoneminder is a superb application in every way, but it does a job that needs a lot of horsepower especially when using multiple IP cameras. IP Cams require an extra level of processing to analogue cards as the jpg or mjpeg images need to be decoded before analysing. This needs grunt. If you have lots of cameras, you need lots of grunt.&lt;br /&gt;
&lt;br /&gt;
Why do ZM need so much grunt?&lt;br /&gt;
Think what Zoneminder is actually doing. In modect mode ZM is:&lt;br /&gt;
1. Fetching a jpeg from the camera. (Either in single part or multipart stream)&lt;br /&gt;
2. Decoding the jpeg image. &lt;br /&gt;
3. Comparing the zoned selections to the previous image or images and applying rules.&lt;br /&gt;
4. If in alarm state, writing that image to the disk and updating the mysql database.&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;re capturing at five frames per second, the above is repeated five times every second, multiplied by the number of cameras. Decoding the images is what takes the real power from the processor and this is the main reason why analogue cameras which present an image ready-decoded in memory take less work.&lt;br /&gt;
&lt;br /&gt;
=== How do I know if my computer is overloaded? ===&lt;br /&gt;
If your CPU is running at 100% all the time, it&amp;#039;s probably overloaded (or running at exact optimisation). If the load is consistently high (over 10.0 for a single processor) then Bad Things happen - like lost frames, unrecorded events etc. Occasional peaks are fine, normal and nothing to worry about.&lt;br /&gt;
&lt;br /&gt;
Zoneminder runs on Linux, Linux measures system load using &amp;quot;load&amp;quot;, which is complicated but gives a rough guide on what the computer is doing at any given time. Zoneminder shows Load on the main page (top right) as well as disk space. Typing &amp;quot;uptime&amp;quot; on the command line will give a similar guide, but with three figures to give a fuller measure of what&amp;#039;s happening over a period of time but for the best guide to see what&amp;#039;s happening, install &amp;quot;htop&amp;quot; - which gives easy to read graphs for load, memory and cpu usage.&lt;br /&gt;
&lt;br /&gt;
A load of 1.0 means the processor has &amp;quot;just enough to do right now&amp;quot;. Also worth noting that a load of 4.0 means exactly the same for a quad processor machine - each number equals a single processor&amp;#039;s workload. A very high load can be fine on a computer that has a stacked workload - such as a machine sending out bulk emails, or working its way through a knotty problem; it&amp;#039;ll just keep churning away until it&amp;#039;s done. However - Zoneminder needs to process information in real time so it can&amp;#039;t afford to stack its jobs, it needs to deal with them right away.&lt;br /&gt;
&lt;br /&gt;
For a better and full explanation of Load: http://en.wikipedia.org/wiki/Load_%28computing%29&lt;br /&gt;
&lt;br /&gt;
=== My load is too high, how can I reduce it? ===&lt;br /&gt;
Zoneminder is /very/ tweakable and it&amp;#039;s possible to tune it to compromise. The following are good things to try, in no particular order;&lt;br /&gt;
&lt;br /&gt;
Change the jpeg libraries. In most distributions Linux uses standard jpeg libraries which although fine for most things, don&amp;#039;t use the MMX functions in nearly all modern processors. Check whether your cpu supports mmx by running &amp;quot;cpuid |grep MMX&amp;quot; which should give you a line or two along the lines of &amp;quot;MMX instructions&amp;quot;. If so, give the libs a try. Most people report their load halves simply by using these libs. http://www.zoneminder.com/forums/viewtopic.php?t=6419 gives more info. Nobody&amp;#039;s posted there to say it broke their system... Yet.&lt;br /&gt;
&lt;br /&gt;
If your camera allows you to change image size, think whether you can get away with smaller images. Smaller pics = less load. 320x240 is usually ok for close-up corridor shots.&lt;br /&gt;
&lt;br /&gt;
Go Black and White. Colour pictures use twice to three times the CPU, memory and diskspace but give little benefit to identification.&lt;br /&gt;
&lt;br /&gt;
Reduce frames per second. Halve the fps, halve the workload. If your camera supports fps throttling (Axis do), try that - saves ZM having to drop frames from a stream. 2-5 fps seems to be widely used.&lt;br /&gt;
&lt;br /&gt;
Experiment with using jpeg instead of mjpeg. Some users have reported it gives better performance, but YMMV.&lt;br /&gt;
&lt;br /&gt;
Tweak the zones. Keep them as small and as few as possible. Stick to one zone unless you really need more.&lt;br /&gt;
&lt;br /&gt;
Schedule. If you are running a linux system at near capacity, you&amp;#039;ll need to think carefully about things like backups and scheduled tasks. updatedb - the process which maintains a file database so that &amp;#039;locate&amp;#039; works quickly, is normally scheduled to run once a day and if on a busy system can create a heavy increase on the load. The same is true for scheduled backups, especially those which compress the files. Re-schedule these tasks to a time when the cpu is less likely to be busy, if possible - and also use the &amp;quot;nice&amp;quot; command to reduce their priority. (crontab and /etc/cron.daily/ are good places to start)&lt;br /&gt;
&lt;br /&gt;
Reduce clutter on your PC. Don&amp;#039;t run X unless you really need it, the GUI is a huge overhead in both memory and cpu.&lt;br /&gt;
&lt;br /&gt;
More expensive options:&lt;br /&gt;
&lt;br /&gt;
Increase RAM. If your system is having to use disk swap it will HUGELY impact performance in all areas. Again, htop is a good monitor - but first you need to understand that because Linux is using all the memory, it doesn&amp;#039;t mean it needs it all - linux handles ram very differently to Windows/DOS and caches stuff. htop will show cached ram as a different colour in the memory graph. Also check that you&amp;#039;re actually using a high memory capable kernel - many kernels don&amp;#039;t enable high memory by default. &lt;br /&gt;
&lt;br /&gt;
Faster CPU. Simple but effective. Zoneminder also works very well with multiple processor systems out of the box (if SMP is enabled in your kernel). The load of different cameras is spread across the processors.&lt;br /&gt;
&lt;br /&gt;
=== What about disks and bandwidth? ===&lt;br /&gt;
&lt;br /&gt;
In most modern pc-based servers, disk I/O is more than adequate for the speeds involved in capturing from multiple cameras in most scenarios.&lt;br /&gt;
&lt;br /&gt;
A typical 100mbit LAN will cope with most setups easily. If you&amp;#039;re feeding from cameras over smaller or internet links, obviously fps will be much lower.&lt;br /&gt;
&lt;br /&gt;
Disk and Bandwidth calculators are referenced on the Zoneminder wiki here: http://www.zoneminder.com/wiki/index.php/FAQ#How_much_Hard_Disk_Space_.2F_Bandwidth_do_I_need_for_ZM.3F&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Building ZoneMinder ==&lt;br /&gt;
&lt;br /&gt;
===I cannot build ZoneMinder and am getting lots of undefined C++ template errors===&lt;br /&gt;
&lt;br /&gt;
This is almost certainly due to the &amp;#039;ccache&amp;#039; package which attempts to speed up compilation by caching compiled objects. Unfortunately one of the side effects is that it breaks the GNU g++ template resolution method that ZoneMinder uses in building by prevent files getting recompiled. The simplest way around this is to remove the ccache package using your distros package manager.&lt;br /&gt;
&lt;br /&gt;
=== How do I build for X10 support? ===&lt;br /&gt;
&lt;br /&gt;
You do not need to rebuild ZM for X10 support. You will need to install the perl module and switch on X10 in the options, then restart. Installing the perl module is covered in the README amongst other places but in summary, do:&lt;br /&gt;
&lt;br /&gt;
 perl -MCPAN -eshell&lt;br /&gt;
 install X10::ActiveHome&lt;br /&gt;
 quit&lt;br /&gt;
&lt;br /&gt;
== Extending ZoneMinder ==&lt;br /&gt;
&lt;br /&gt;
=== How can I get ZM to do different things at different times of day or week? ===&lt;br /&gt;
If you want to configure ZoneMinder to do motion detection during the day and just record at night, for example, you will need to use ZoneMinder &amp;#039;run states&amp;#039;. A run state is a particular configuration of monitor functions that you want to use at any time.&lt;br /&gt;
&lt;br /&gt;
To save a run state you should first configure your monitors for Modect, Record, Monitor etc as you would want them during one of the times of day. Then click on the running state link at the top of the Console view. This will usually say &amp;#039;Running&amp;#039; or &amp;#039;Stopped&amp;#039;. You will then be able to save the current state and give it a name, &amp;#039;Daytime&amp;#039; for example. Now configure your monitors how you would want them during other times of day and save that, for instance as &amp;#039;Nighttime&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Now you can switch between these two states by selecting them from the same dialog you saved them, or from the command line from issue the command &amp;#039;&amp;#039;zmpkg.pl &amp;lt;run state&amp;gt;&amp;#039;&amp;#039;, for example &amp;#039;&amp;#039;zmpkg.pl Daytime&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The final step you need to take, is scheduling the time the changes take effect. For this you can use [http://en.wikipedia.org/wiki/Cron cron]. A simple entry to change to the Daylight state at at 8am and to the nighttime state at 8pm would be as follows,&lt;br /&gt;
&amp;lt;pre&amp;gt;0 8 * * * /usr/local/bin/zmpkg.pl Daytime&lt;br /&gt;
0 20 * * * /usr/local/bin/zmpkg.pl Nighttime&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On Ubuntu 7.04 and possibly others, look in /usr/bin not just /usr/local/bin for the zmpkg.pl file.&lt;br /&gt;
&lt;br /&gt;
Although the example above describes changing states at different times of day, the same principle can equally be applied to days of the week or other more arbitrary periods.&lt;br /&gt;
&lt;br /&gt;
For an alternative method of time controlling ZoneMinder, forum user &amp;#039;voronwe&amp;#039; has created a more interactive calendar style integration. Details of this can be found in this [http://www.zoneminder.com/forums/viewtopic.php?t=6519 forum thread]. If you would like to find out more about this contribution please post on this thread.&lt;br /&gt;
&lt;br /&gt;
=== How can I use ZoneMinder to trigger something else when there is an alarm? ===&lt;br /&gt;
ZoneMinder includes a perl API which means you can create a script to interact with the ZM shared memory data and use it in your own scripts to react to ZM alarms or to trigger ZM to generate new alarms. Full details are in the README or by doing &amp;#039;perdoc ZoneMinder&amp;#039;, &amp;#039;perldoc ZoneMinder::SharedMem&amp;#039; etc.&lt;br /&gt;
Below is an example script that checks all monitors for alarms and when one occurs, prints a message to the screen. You can add in your own code to make this reaction a little more useful.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/usr/bin/perl -w&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
use ZoneMinder;&lt;br /&gt;
&lt;br /&gt;
$| = 1;&lt;br /&gt;
&lt;br /&gt;
zmDbgInit( &amp;quot;myscript&amp;quot;, level=&amp;gt;0, to_log=&amp;gt;0, to_syslog=&amp;gt;0, to_term=&amp;gt;1 );&lt;br /&gt;
&lt;br /&gt;
my $dbh = DBI-&amp;gt;connect( &amp;quot;DBI:mysql:database=&amp;quot;.ZM_DB_NAME.&amp;quot;;host=&amp;quot;.ZM_DB_HOST, ZM_DB_USER, ZM_DB_PASS );&lt;br /&gt;
&lt;br /&gt;
my $sql = &amp;quot;select M.*, max(E.Id) as LastEventId from Monitors as M left join Events as E on M.Id = E.MonitorId where M.Function != &amp;#039;None&amp;#039; group by (M.Id)&amp;quot;;&lt;br /&gt;
my $sth = $dbh-&amp;gt;prepare_cached( $sql ) or die( &amp;quot;Can&amp;#039;t prepare &amp;#039;$sql&amp;#039;: &amp;quot;.$dbh-&amp;gt;errstr() );&lt;br /&gt;
&lt;br /&gt;
my $res = $sth-&amp;gt;execute() or die( &amp;quot;Can&amp;#039;t execute &amp;#039;$sql&amp;#039;: &amp;quot;.$sth-&amp;gt;errstr() );&lt;br /&gt;
my @monitors;&lt;br /&gt;
while ( my $monitor = $sth-&amp;gt;fetchrow_hashref() )&lt;br /&gt;
{&lt;br /&gt;
    push( @monitors, $monitor );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
while( 1 )&lt;br /&gt;
{&lt;br /&gt;
    foreach my $monitor ( @monitors )&lt;br /&gt;
    {&lt;br /&gt;
        next if ( !zmMemVerify( $monitor ) );&lt;br /&gt;
 &lt;br /&gt;
        if ( my $last_event_id = zmHasAlarmed( $monitor, $monitor-&amp;gt;{LastEventId} ) )&lt;br /&gt;
        {&lt;br /&gt;
            $monitor-&amp;gt;{LastEventId} = $last_event_id;&lt;br /&gt;
            print( &amp;quot;Monitor &amp;quot;.$monitor-&amp;gt;{Name}.&amp;quot; has alarmed\n&amp;quot; );&lt;br /&gt;
            #&lt;br /&gt;
            # Do your stuff here&lt;br /&gt;
            #&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    sleep( 1 );&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Trouble Shooting==&lt;br /&gt;
Here are some things that will help you track down whats wrong.&lt;br /&gt;
This is also how to obtain the info that we need to help you on the forums.&lt;br /&gt;
&lt;br /&gt;
===What logs should I check for errors?===&lt;br /&gt;
ZoneMinder creates its own logs and are usually located in the &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder logs for the RPM packages are located in &amp;lt;tt&amp;gt;/var/log/zm&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Depending on your problem errors can show up in any of these logs but, usually the logs of interest are &amp;lt;tt&amp;gt;zmdc.log&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;zmpkg.log&amp;lt;/tt&amp;gt; if ZM is not able to start.&lt;br /&gt;
&lt;br /&gt;
Now since ZM is dependent on other components to work, you might not find errors in ZM but in the other components.&lt;br /&gt;
Other logs of interest are:&amp;lt;tt&amp;gt;&lt;br /&gt;
*/var/log/messages and/or /var/log/syslog&lt;br /&gt;
*/var/log/dmesg&lt;br /&gt;
*/var/log/httpd/error_log&amp;lt;/tt&amp;gt; (RedHat/Fedora) or &amp;lt;tt&amp;gt;/var/log/apache2/error_log&lt;br /&gt;
*/var/log/mysqld.log&amp;lt;/tt&amp;gt; (Errors here don&amp;#039;t happen very often but just in case)&lt;br /&gt;
&lt;br /&gt;
If ZM is not functioning, you should always be able to find an error in at least one of these logs. Use the [[tail]] command to get info from the logs. This can be done like so: &lt;br /&gt;
&lt;br /&gt;
  tail -f /var/log/messages /var/log/httpd/error_log /var/log/zm/zm*.log&lt;br /&gt;
&lt;br /&gt;
This will append any data entered to any of these logs to your console screen (&amp;lt;tt&amp;gt;-f&amp;lt;/tt&amp;gt;). To exit, hit [ctrl -c].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More verbose logging for the ZoneMinder binaries is available by enabling the debug option from the control panel and will be placed in the path you have configured for the debug logs. Output can be limited to a specific binary as described in the Debug options page under the &amp;quot;?&amp;quot; marks.&lt;br /&gt;
&lt;br /&gt;
===How can I trouble shoot the hardware and/or software?===&lt;br /&gt;
Here are some commands to get information about your hardware. Some commands are distribution dependent.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[lspci]] -vv&amp;lt;/tt&amp;gt; -- Returns lots of detailed info. Check for conflicting interrupts or port assignments. You can sometimes alter interrupts/ ports in bios. Try a different pci slot to get a clue if it is HW conflict (comand provided by the pciutils package).&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[scanpci]] -v&amp;lt;/tt&amp;gt;  -- Gives you information from your hardware EPROM&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[lsusb]] -vv&amp;lt;/tt&amp;gt; -- Returns lots of detail about USB devices (camand provided by usbutils package).&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[dmesg]]&amp;lt;/tt&amp;gt; -- Shows you how your hardware initialized (or didn&amp;#039;t) on boot-up. You will get the most use of this.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[v4l-info]]&amp;lt;/tt&amp;gt; -- to see how driver is talking to card. look for unusual values.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[modinfo bttv]]&amp;lt;/tt&amp;gt; -- some bttv driver stats.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[zmu]]  -m 0 -q -v&amp;lt;/tt&amp;gt; -- Returns various information regarding a monitor configuration.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[ipcs]] &amp;lt;/tt&amp;gt;  -- Provides information on the ipc facilities for which the calling process has read acccess.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[ipcrm]] &amp;lt;/tt&amp;gt;  -- The ipcrm command can be used to remove an IPC object from the kernel.&lt;br /&gt;
* &amp;lt;tt&amp;gt;cat /proc/interrupts&amp;lt;/tt&amp;gt;  -- This will dispaly what interrupts your hardware is using.&lt;br /&gt;
&lt;br /&gt;
===Why is it that when monitoring a camera, the top portion of the image is cutoff and appears at the bottom of the image, with a line seperating the top from the bottom?===&lt;br /&gt;
&lt;br /&gt;
=== Why am I getting a 403 access error with my web browser when trying to access http //localhost/zm? ===&lt;br /&gt;
&lt;br /&gt;
The apache web server needs to have the right permissions and configuration to be able to read the Zoneminder files. Check the forums for solution, and edit the apache configuration and change directory permissions to give apache the right to read the Zoneminder files. Depending on your Zoneminder configuration, you would use the zm user and group that Zoneminder was built with, such as wwwuser and www.&lt;br /&gt;
&lt;br /&gt;
=== Why am I getting broken images when trying to view events? ===&lt;br /&gt;
&lt;br /&gt;
Zoneminder and the Apache web server need to have the right permissions. Check this forum topic and similar ones:&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=48754#48754&lt;br /&gt;
&lt;br /&gt;
===Why is the image from my color camera appearing in black and white?===&lt;br /&gt;
This may occur if you have a NTSC analog camera but have configured the source in ZoneMinder as PAL for the Device Format under the source tab.  You may also be mislead because zmu can report the video port as being PAL when the camera is actually NTSC.  Confirm the format of your analog camera by checking it&amp;#039;s technical specifications, possibly found with the packaging it came in, on the manufacturers website, or even on the retail website where you purchased the camera.  Change the Device Format setting to NTSC and set it to the lowest resolution of 320 x 240.  If you have confirmed that the camera itself is NTSC format, but don&amp;#039;t get a picture using the NTSC setting, consider increasing the shared memory &amp;#039;&amp;#039;&amp;#039;kernel.shmall&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;kernel.shmmax&amp;#039;&amp;#039;&amp;#039; settings in /etc/sysctl.conf to a larger value such as 268435456.  This is also the reason you should start with the 320x240 resolution, so as to minimize the potential of memory problems which would interfere with your attempts to troubleshoot the device format issue.  Once you have obtained a picture in the monitor using the NTSC format, then you can experiment with raising the resolution.&lt;br /&gt;
&lt;br /&gt;
===Why do I only see blue screens with a timestamp when monitoring my camera?===&lt;br /&gt;
If this camera is attached to a capture card, then you may have selected the wrong Device Source or Channel when configuring the monitor in the ZoneMinder console.  If you have a capture card with 2 D-sub style inputs(looks like a VGA port) to which you attach a provided splitter that splits off multiple cables, then the splitter may be attached to the wrong port.  For example, PV-149 capture cards have two D-sub style ports labeled as DB1 and DB2, and come packaged with a connector for one of these ports that splits into 4 BNC connecters.  The initial four video ports are available with the splitter attached to DB1.&lt;br /&gt;
&lt;br /&gt;
===Why do I only see black screens with a timestamp when monitoring my camera?===&lt;br /&gt;
In the monitor windows where you see the black screen with a timestamp, select settings and enter the Brightness, Contrast, Hue, and Color settings reported for the device by &amp;#039;&amp;#039;&amp;#039;zmu -d &amp;lt;device_path&amp;gt; -q -v&amp;#039;&amp;#039;&amp;#039;.  32768 may be appropriate values to try for these settings.  After saving the settings, select Settings again to confirm they saved successfully.&lt;br /&gt;
&lt;br /&gt;
===I am getting messages about a backtrace in my logs, what do I do?===&lt;br /&gt;
If you are seeing entries in your log like the following&lt;br /&gt;
&amp;lt;pre&amp;gt;Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6 [0x3347230210]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6(memset+0xce) [0x334727684e]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x40ee9a]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x419946]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x4213cf]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma(cos+0x35c) [0x404674]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6(__libc_start_main+0xf4) [0x334721da44]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma(cos+0xd1) [0x4043e9]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: INF [Backtrace complete]&amp;lt;/pre&amp;gt;&lt;br /&gt;
then you can help diagnose the problem by running a special command to translate the hex addresses into helpful information. This command is called addr2line and you can type &amp;#039;man addr2line&amp;#039; for more information.&lt;br /&gt;
Basically addr2line takes two sets of parameters, the first is the name of the binary file, and the second is a list of addresses. Both of these pieces of information are displayed in the logs. The filename is the first part after the &amp;#039;Backtrace:&amp;#039; tag, in this case /usr/local/bin/zma, though it may well be different in your case. Some of the lines refer to libraries rather than the zma executable but those can be ignored for now, the important part is noting which ZM binary is involved. The binary file is passed in following the -e flag. The addresses to pass to addr2line are those contained in the &amp;#039;[]&amp;#039; pairs. Again you can ignore those that are on a line that refers to a library but it will not hurt if you include them.&lt;br /&gt;
So in the example above, the command would be &amp;lt;pre&amp;gt;addr2line -e /usr/local/bin/zma 0x40ee9a 0x419946 0x4213cf 0x404674 0x4043e9&amp;lt;/pre&amp;gt;&lt;br /&gt;
This should then dump out a more symbolic list containing source file names and line numbers, and it is this information which will be helpful if posted to the forums. Sometimes addr2line fails to produce useful output. This is usually because either the problem is so severe that it has corrupted the stack and prevented useful information from being displayed, or that you have either compiled ZM without the -g flag for debug, or you have stripped the binaries of symbol information after installation. This this case you would need to rebuild temporarily with debug enabled for the information to be useful.&lt;br /&gt;
&lt;br /&gt;
===How do I repair the MySQL Database?===&lt;br /&gt;
There is two ways to go about this. In most cases you can run from the command prompt -&amp;gt;&lt;br /&gt;
* mysqlcheck --all-databases --auto-repair -p&amp;#039;&amp;#039;&amp;#039;your_database_password&amp;#039;&amp;#039;&amp;#039; -u &amp;#039;&amp;#039;&amp;#039;your_databse_user&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If that does not work then you will have to make sure that ZoneMinder is stopped then run the following (nothing should be using the database while running this and you will have to adjust for your correct path if it is different). -&amp;gt;&lt;br /&gt;
* myisamchk --silent --force --fast --update-state -O key_buffer=64M -O sort_buffer=64M -O read_buffer=1M -O write_buffer=1M /var/lib/mysql/*/*.MYI &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How do I repair the MySQL Database when the cli fails?===&lt;br /&gt;
In Ubuntu, the commands listed above do not seem to work.  However, actually doing it by hand from within MySQL does.  (But that is beyond the scope of this document)  But that got me thinking...  And phpmyadmin does work.  Bring up a terminal.&lt;br /&gt;
 sudo apt-get install phpmyadmin&lt;br /&gt;
&lt;br /&gt;
Now go to http://zoneminder_IP/ and stop the ZM service.  Continue to http://zoneminder_IP/phpmyadmin and select the zoneminder database.  Select and tables marked &amp;#039;in use&amp;#039; and pick the action &amp;#039;repare&amp;#039; to fix.  Restart the zoneminder service from the web browser.  Remove or disable the phpmyadmin tool, as it is not always the most secure thing around, and opens your database wide to any skilled hacker.&lt;br /&gt;
 sudo apt-get remove phpmyadmin&lt;br /&gt;
&lt;br /&gt;
===I upgraded by distribution and ZM stopped working===&lt;br /&gt;
Some possibilties (Incomplete list and subject to correction)&lt;br /&gt;
#[[/usr/local/bin/zmfix: /usr/lib/libmysqlclient.so.15: version `MYSQL_5.0&amp;#039; not found (required by /usr/local/bin/zmfix)]]  :: Solution: Recompile and reinstall Zoneminder.&lt;br /&gt;
Any time you update a major version that ZoneMinder depends on, you need to recompile ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
===Zoneminder doesn&amp;#039;t start automatically on boot===&lt;br /&gt;
Check the list for log entries like &amp;quot;zmfix[766]: ERR [Can&amp;#039;t connect to server: Can&amp;#039;t connect to local MySQL server through socket &amp;#039;/var/run/mysqld/mysqld.sock&amp;#039; (2)] &amp;quot;. &lt;br /&gt;
What can happen is that zoneminder is started too quickly after Mysql and tries to contact the database server before it&amp;#039;s ready. Zoneminder gets no answer and aborts. &lt;br /&gt;
August 2010 - Ubuntu upgrades seem to be leaving several systems in this state. One way around this is to add a delay to the zoneminder startup script allowing Mysql to finish starting. &lt;br /&gt;
&amp;quot;Simply adding &amp;#039;sleep 15&amp;#039; in the line above &amp;#039;zmfix -a&amp;#039; in the /etc/init.d/zoneminder file fixed my ZoneMinder startup problems!&amp;quot; - credit to Pada.&lt;br /&gt;
&lt;br /&gt;
=== Remote Path setup for Panasonic and other Camera ===&lt;br /&gt;
On adding or editing the source you can select the preset link for the parameters for the specified camera .  In version 1.23.3  presets for BTTV,Axis,Panasonic,GadSpot,VEO, and BlueNet are available . Selecting the presets  ZM fills up the required value for the remote path variable&lt;br /&gt;
&lt;br /&gt;
=== Why do I get repeated/ mixed/unstable/ blank monitors on bt878-like cards (a.k.a. PICO 2000) ===&lt;br /&gt;
&lt;br /&gt;
Please have a check at [[Pico2000]];&lt;br /&gt;
&lt;br /&gt;
===What causes &amp;quot;Invalid JPEG file structure: two SOI markers&amp;quot; from zmc (1.24.x)===&lt;br /&gt;
&lt;br /&gt;
Some settings that used to be global only are now per camera.  On the Monitor Source tab, if you are using Remote Protocol  &amp;quot;HTTP&amp;quot; and Remote Method &amp;quot;Simple&amp;quot;, try changing Remote Method to &amp;quot;Regexp&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
=== I see ZoneMinder is licensed under the GPL. What does that allow or restrict me in doing with ZoneMinder? ===&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder license is described at the end of the documentation and consists of the following section&lt;br /&gt;
&lt;br /&gt;
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as&lt;br /&gt;
 published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.&lt;br /&gt;
 &lt;br /&gt;
 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty&lt;br /&gt;
 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
This means that ZoneMinder is licensed under the terms described [http://www.gnu.org/copyleft/gpl.html here]. There is a comprehensive FAQ covering the GPL at http://www.gnu.org/licenses/gpl-faq.html but in essence you are allowed to redistribute or modify GPL licensed software provided that you release your distribution or modifications freely under the same terms. You are allowed to sell systems based on GPL software. You are not allowed to restrict or reduce the rights of GPL software in your distribution however. Of course if you are just making modifications for your system locally you are not releasing changes so you have no obligations in this case. I recommend reading the GPL FAQ for more in-depth coverage of this issue.&lt;br /&gt;
&lt;br /&gt;
=== Can I use ZoneMinder as part of my commercial product? ===&lt;br /&gt;
&lt;br /&gt;
The GPL license allows you produce systems based on GPL software provided your systems also adhere to that license and any modifications you make are also released under the same terms.  The GPL does not permit you to include ZoneMinder in proprietary systems (see http://www.gnu.org/licenses/gpl-faq.html#GPLInProprietarySystem for details). If you wish to include ZoneMinder in this kind of system then you will need to license ZoneMinder under different terms. This is sometimes possible and you will need to contact me for further details in these circuumstances.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Talk:FAQ&amp;diff=2571</id>
		<title>Talk:FAQ</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Talk:FAQ&amp;diff=2571"/>
		<updated>2008-06-10T08:44:55Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Added this to FAQ&lt;br /&gt;
&lt;br /&gt;
Note that with Megapixel cameras like the Axis 207mw becoming cheaper and more attractive, the above memory settings are not adequate. To get Zoneminder working with a full 1280x1024 resolution camera in full colour, increase 134217728 to, for example, 268424446 &lt;br /&gt;
&lt;br /&gt;
Since the supplied did not work for the bigger resolution. I&amp;#039;m not sure if there are any negative problems with increasing this value - I can only say it&amp;#039;s working.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=2570</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=2570"/>
		<updated>2008-06-10T08:43:40Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: /* What does a &amp;#039;Can&amp;#039;t shmget: Invalid argument&amp;#039; error in my logs mean? and my cameras won&amp;#039;t display video at higher resolutions. */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== ZoneMinder Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
This is the new FAQ page. I will be migrating the existing FAQs here as soon as possible. In the meantime the old FAQ page is available [http://www.zoneminder.com/faq.html here].&lt;br /&gt;
&lt;br /&gt;
Feel free to contribute any FAQs that you think are missing.&lt;br /&gt;
&lt;br /&gt;
===How can I stop ZoneMinder filling up my disk?===&lt;br /&gt;
&lt;br /&gt;
Recent versions of ZoneMinder come with a filter you can use for this purpose already included. However &amp;#039;&amp;#039;&amp;#039;by default it is not enabled for event deletion&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The filter is called &amp;#039;&amp;#039;PurgeWhenFull&amp;#039;&amp;#039; and to find it, choose one of the event counts from the console page, for instance events in the last hour, for one of your monitors.&lt;br /&gt;
&lt;br /&gt;
This will bring up an event listing and a filter window.&lt;br /&gt;
&lt;br /&gt;
In the filter window there is a dropdown select box labelled &amp;#039;Use Filter&amp;#039;, that lets your select a saved filter. Select &amp;#039;PurgeWhenFull&amp;#039; and it will load that filter.&lt;br /&gt;
&lt;br /&gt;
Make any modifications you might want, such as the percentage full you want it to kick in, or how many events to delete at a time (it will repeat the filter as many times as needed to clear the space, but will only delete this many events each time to get there).&lt;br /&gt;
&lt;br /&gt;
Then click on &amp;#039;Save&amp;#039; which will bring up a new window. Make sure the &amp;#039;Automatically delete&amp;#039; box is checked and press save to save your filter. This will then run in the background to keep your disk within those limits.&lt;br /&gt;
&lt;br /&gt;
After you&amp;#039;ve done that, you changes will automatically be loaded into zmfilter within a few minutes.&lt;br /&gt;
&lt;br /&gt;
Check the &amp;lt;tt&amp;gt;zmfilter.log&amp;lt;/tt&amp;gt; file to make sure it is running as sometimes missing perl modules mean that it nevers runs but people don&amp;#039;t always realise.&lt;br /&gt;
&lt;br /&gt;
===What does a &amp;#039;Can&amp;#039;t shmget: Invalid argument&amp;#039; error in my logs mean? and my cameras won&amp;#039;t display video at higher resolutions.===&lt;br /&gt;
&lt;br /&gt;
This error is discussed in the README in the following excerpt:-&lt;br /&gt;
&amp;#039;&amp;#039;...this is caused by an attempt to allocate an amount of shared memory greater than your system can handle. The size it requests is based on the following formula, ring buffer size x image width x image height x 3 (for 24 bit images) + a bit of overhead.&lt;br /&gt;
&lt;br /&gt;
So, for example:&lt;br /&gt;
&amp;lt;pre&amp;gt;384x288 capture resolution, that makes: 110 592 pixels&lt;br /&gt;
in 24 bit color that&amp;#039;s x24 = 2 654 208 bits per frame &lt;br /&gt;
by 80 frames ring buffer x80 = 212 336 640 bits per camera &lt;br /&gt;
by 4 cameras x4 = 849 346 560 bits. &lt;br /&gt;
Plus 10% overhead = 934 281 216 bits &lt;br /&gt;
That&amp;#039;s 116 785 152 bytes, and &lt;br /&gt;
= 114 048 kB, respectively 111.38 MB. &lt;br /&gt;
If my shared memory is set to 134 217 728, which is exactly 128MB, &lt;br /&gt;
that means I shouldn&amp;#039;t have any problem.&lt;br /&gt;
(Note that 1 byte = 8 bits and 1kbyte = 1024bytes, 1MB = 1024 kB)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If for instance you were using 24bit 640x480 then this would come to about 92Mb if you are using the default buffer size of 100. If this is too large then you can either reduce the image or buffer sizes or increase the maximum amount of shared memory available. If you are using RedHat then you can get details on how to change these settings at http://www.redhat.com/docs/manuals/database/RHDB-2.1-Manual/admin_user/kernel-resources.html .  &lt;br /&gt;
&lt;br /&gt;
You should be able to use a similar procedure  with other distributions to modify the shared memory pool without kernel recompilations though in some cases this may be necessary. Note, this error also sometimes occurs if you have an old shared memory segment lying around from a previous run that is too small. Use the ipcs and ipcrm system commands to check and remove it if necessary.&amp;#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You can often find out how much shared memory is available by typing the following :-&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/sys/kernel/shmall&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the most you can allocate in one go :-&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/sys/kernel/shmmax&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change these values type (for example) :-&lt;br /&gt;
&amp;lt;pre&amp;gt;echo 134217728 &amp;gt;/proc/sys/kernel/shmall&lt;br /&gt;
echo 134217728 &amp;gt;/proc/sys/kernel/shmmax&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Be sure to restart ZoneMinder after this.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
However be aware that sometimes you will only need to change the shmmax value as shmall is often large enough. Also changing these values in this way is only effective until your machine is rebooted. &lt;br /&gt;
&lt;br /&gt;
To change them permanently you will need to edit &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; and add the following lines (for example) :-&lt;br /&gt;
&amp;lt;pre&amp;gt;kernel.shmall = 134217728&lt;br /&gt;
kernel.shmmax = 134217728&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load these settings in the sysctl.conf file type:&lt;br /&gt;
&amp;lt;pre&amp;gt;sysctl -p&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check your shared memory settings type:&lt;br /&gt;
&amp;lt;pre&amp;gt;ipcs -l&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that with Megapixel cameras like the Axis 207mw becoming cheaper and more attractive, the above memory settings are not adequate. To get Zoneminder working with a full 1280x1024 resolution camera in full colour, increase 134217728 to, for example, 268424446&lt;br /&gt;
&lt;br /&gt;
These changes will now also be set the next time your machine is restarted.&lt;br /&gt;
&amp;lt;div id=&amp;quot;AlternateSharedMemory&amp;quot; style=&amp;quot;width:80%; border:2px solid #8a8588; background:#faf5ff; vertical-align:top;&amp;quot;&amp;gt;&lt;br /&gt;
Another good article about shared memory settings http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.uprun.doc/doc/t0008238.htm . &lt;br /&gt;
It made a statement that conflicted with those in the Redhat article but they fixed a [http://www.zoneminder.com/forums/viewtopic.php?t=9692 long standing memory issue on FC6], so give them a try. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The essential difference was that the kernel.shmall setting is NOT in a direct memory setting in KB but in pages of memory. it is Max Pages of memory&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;For example:&amp;#039;&amp;#039;&amp;#039; If you want to allocate a maximum memory setting to 8GB you have to convert it to the number of pages (or segments).&lt;br /&gt;
with a page size of 4096.&lt;br /&gt;
*kernel.shmall=8000x1024x1024/4096&lt;br /&gt;
**kernel.shmall=2048000&lt;br /&gt;
NOT 8388608000 as would be suggested in the RedHat article linked above.&lt;br /&gt;
&lt;br /&gt;
shmmax is the max amount to allocate in one request - &lt;br /&gt;
this is is an actual memory size (as opposed to pages) set to 4GB&lt;br /&gt;
*kernel.shmmax = 4194304000&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; would have these lines&amp;lt;pre&amp;gt;kernel.shmall=2048000&lt;br /&gt;
kernel.shmmax = 4194304000&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As above, reload your sysctl.conf with &amp;lt;tt&amp;gt;sysctl -p&amp;lt;/tt&amp;gt; and check that the settings are correct with &amp;lt;tt&amp;gt;ipcs -l&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===I have enabled motion detection but it is not always being triggered when things happen in the camera view===&lt;br /&gt;
&lt;br /&gt;
ZoneMinder uses zones to examine images for motion detection. When you create the initial zones you can choose from a number of preset values for sensitivity etc. Whilst these are usually a good starting point they are not always suitable for all situations and you will probably need to tweak the values for your specific circumstances. The meanings of the various settings are described in the documentation (http://www.zoneminder.com/wiki/index.php/Documentation#Defining_Zones) however if you believe you have sensible settings configured then there are two diagnostic approaches you can use.&lt;br /&gt;
&lt;br /&gt;
====Event Statistics====&lt;br /&gt;
The first technique is to use event statistics. Firstly you should ensure they are switched on in Options-&amp;gt;Debug-&amp;gt;ZM_RECORD_EVENT_STATS. This will then cause the raw motion detection statistics for any subsequently generated events to be written to the DB. These can then be accessed by first clicking on the Frames or Alarm Frames values of the event from any event list view in the web gui. Then click on the score value to see the actual values that caused the event. Alternatively the stats can be accessed by clicking on the &amp;#039;Stats&amp;#039; link when viewing any individual frame. The values displayed there correspond with the values that are used in the zone configuration and give you an idea of what &amp;#039;real world&amp;#039; values are being generated. &lt;br /&gt;
&lt;br /&gt;
Note that if you are investigating why events &amp;#039;do not&amp;#039; happen then these will not be saved and so won&amp;#039;t be accessible. The best thing to do in that circumstance is to make your zone more sensitive so that it captures all events (perhap even ones you don&amp;#039;t want) so you can get an idea of what values are being generated and then start to adjust back to less sensitive settings if necessary. You should make sure you test your settings under a variety of lighting conditions (e.g. day and night, sunny or dull) to get the best feel for that works and what doesn&amp;#039;t.&lt;br /&gt;
&lt;br /&gt;
Using statistics will slow your system down to a small degree and use a little extra disk space in the DB so once you are happy you can switch them off again. However it is perfectly feasible to keep them permanently on if your system is able to cope which will allow you to review your setting periodically.&lt;br /&gt;
&lt;br /&gt;
====Diagnostic Images====&lt;br /&gt;
The second approach is to use diagnostic images which are saved copies of the intermediate images that ZM uses when determining motion detection. These are switched on and off using Options-&amp;gt;Debug-&amp;gt;ZM_RECORD_DIAG_IMAGES.&lt;br /&gt;
&lt;br /&gt;
There are two kinds of diagnostic images which are and are written (and continuously overwritten) to the top level monitor event directory. If an event occurs then the files are additionally copied to the event directory and renamed with the appropriate frame number as a prefix.&lt;br /&gt;
&lt;br /&gt;
The first set are produced by the monitor on the image as a whole. The diag-r.jpg image is the current reference image against which all individual frames are compared and the diag-d.jpg image is the delta image highlighting the difference between the reference image and the last analysed image. In this images identicial pixels will be black and the more different a pixel is the whiter it will be. Viewing this image and determining the colour of the pixels is a good way of getting a feel for the pixel differences you might expect (often more than you think).&lt;br /&gt;
&lt;br /&gt;
The second set of diag images are labelled as diag-&amp;lt;zoneid&amp;gt;-&amp;lt;stage&amp;gt;.jpg where zoneid is the id of the zone in question (Smile) and the stage is where in the alarm check process the image is generated from. So if you have several zones you can expect to see multiple files. Also these files are only interested in what is happening in their zone only and will ignore anything else outside of the zone. The stages that each number represents are as follows,&lt;br /&gt;
&lt;br /&gt;
# Alarmed Pixels - This image shows all pixels in the zone that are considered to be alarmed as white pixels and all other pixels as black.&lt;br /&gt;
# Filtered Pixels - This is as stage one except that all pixels removed by the filters are now black. The white pixels represent the pixels that are candidates to generate an event.&lt;br /&gt;
# Raw Blobs - This image contains all alarmed pixels from stage 2 but aggrageted into blobs. Each blob will have a different greyscale value (between 1 and 254) so they can be difficult to spot with the naked eye but using a colour picker or photoshop will make it easier to see what blob is what.&lt;br /&gt;
# Filtered Blobs - This image is as stage 3 but under (or over) sized blobs have been removed. This is the final step before determining if an event has occurred, just prior to the number of blobs being counted. Thus this image forms the basis for determining whether an event is generated and outlining on alarmed images is done from the blobs in this image.&lt;br /&gt;
&lt;br /&gt;
Using the above images you should be able to tell at all stages what ZM is doing to determine if an event should happen or not. They are useful diagnostic tools but as is mentioned elsewhere they will massively slow your system down and take up a great deal more space. You should never leave ZM running for any length of time with diagnostic images on.&lt;br /&gt;
&lt;br /&gt;
===Why can&amp;#039;t I see streamed images when I can see stills in the Zone window etc?===&lt;br /&gt;
&lt;br /&gt;
This issue is normally down to one of two causes&lt;br /&gt;
&lt;br /&gt;
1) You are using Internet Explorer and are trying to view multi-part jpeg streams. IE does not support these streams directly, unlike most other browsers. You will need to install Cambozola or another multi-part jpeg aware pluging to view them. To do this you will need to obtain the applet from the Downloads page and install the cambozola.jar file in the same directly as the ZoneMinder php files. Then find the ZoneMinder Options-&amp;gt;Images page and enable ZM_OPT_CAMBOZOLA and enter the web path to the .jar file in ZM_PATH_CAMBOZOLA. This will ordinarily just be cambozola.jar. Provided ZM_CAN_STREAM is set to auto and ZM_STREAM_METHOD is set to jpeg then Cambozola should be loaded next time you try and view a stream.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE&amp;#039;&amp;#039;&amp;#039;: If you find that the Cambozola applet loads in IE but the applet just displays the version # of Cambozola and the author&amp;#039;s name (as opposed to seeing the streaming images), you may need to chmod your cambozola.jar:&lt;br /&gt;
&lt;br /&gt;
  $ sudo chmod 775 cambozola.jar&lt;br /&gt;
&lt;br /&gt;
Once I did this, images started to stream for me.&lt;br /&gt;
&lt;br /&gt;
2) The other common cause for being unable to view streams is that you have installed the ZoneMinder cgi binaries (zms and nph-zms) in a different directory than your web server is expecting. Make sure that the --with-cgidir option you use to the ZoneMinder configure script is the same as the CGI directory configure for your web server. If you are using Apache, which is the most common one, then in your httpd.conf file there should be a line like &amp;lt;pre&amp;gt;ScriptAlias /cgi-bin/ &amp;quot;/var/www/cgi-bin/&amp;quot;&amp;lt;/pre&amp;gt; where the last directory in the quotes is the one you have specified. If not then change one or the other to match. Be warned that configuring apache can be complex so changing the one passed to the ZoneMinder configure (and then rebuilding and reinstalling) is recommended in the first instance. If you change the apache config you will need to restart apache for the changes to take effect. If you still cannot see stream reliably then try changing Options-&amp;gt;Paths-&amp;gt;ZM_PATH_ZMS to just use zms if nph-zms is specified, or vice versa. Also check in your apache error logs.&lt;br /&gt;
&lt;br /&gt;
===I have several monitors configured but when I load the Montage view in FireFox why can I only see two? or, Why don&amp;#039;t all my cameras display when I use the Montage view in FireFox?===&lt;br /&gt;
&lt;br /&gt;
By default FireFox only supports a small number of simultaneous connections. Using the montage view usually requires one persistent connection for each camera plus intermittent connections for other information such as statuses.&lt;br /&gt;
&lt;br /&gt;
You will need to increase the number of allowed connections to use the montage view with more than a small number of cameras.  Certain FireFox extensions such as FasterFox may also help to achieve the same result.&lt;br /&gt;
&lt;br /&gt;
To resolve this situation, follow the instructions below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Enter about:config in the address bar&lt;br /&gt;
&lt;br /&gt;
scroll down to&lt;br /&gt;
browser.cache.check_doc_frequency 3&lt;br /&gt;
change the 3 to a 1&lt;br /&gt;
&lt;br /&gt;
browser.cache.disk.enable True -&amp;gt; False&lt;br /&gt;
network.http.max-connections-per-server -&amp;gt; put a value of 100&lt;br /&gt;
network.http.max-persistent-connections-per-proxy -&amp;gt; 100 again&lt;br /&gt;
network.http.max-persistent-connections-per-server -&amp;gt; 100 again&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why is ZoneMinder using so much CPU?===&lt;br /&gt;
&lt;br /&gt;
The various elements of ZoneMinder can be involved in some pretty intensive activity, especially while analysing images for motion. However generally this should not overwhelm your machine unless it is very old or underpowered.&lt;br /&gt;
&lt;br /&gt;
There are a number of specific reasons why processor loads can be high either by design or by accident. To figure out exactly what is causing it in your circumstances requires a bit of expermentation.&lt;br /&gt;
&lt;br /&gt;
The main causes are.&lt;br /&gt;
&lt;br /&gt;
# Using a video palette other than greyscale or RGB24. This can cause a relatively minor performace hit, though still significant. Although some cameras and cards require using planar palettes ZM currently doesn&amp;#039;t support this format internally (yet) and each frame is converted to an RGB representation prior to processing. Unless you have compelling reasons for using YUV or reduced RGB type palettes such as hitting USB transfer limits I would experiment to see if RGB24 or greyscale is quicker. Put your monitors into &amp;#039;Monitor&amp;#039; mode so that only the capture daemons are running and monitor the process load of these (the &amp;#039;zmc&amp;#039; processes) using top. Try it with various palettes to see if it makes a difference.&lt;br /&gt;
# Big image sizes. A image of 640x480 requires at least four times the processing of a 320x240 image. Experiment with different sizes to see what effect it may have. Sometimes a large image is just two interlaced smaller frames so has no real benefit anyway.&lt;br /&gt;
# Capture frame rates. Unless there&amp;#039;s a compelling reason in your case there is often little benefit in running cameras at 25fps when 5-10fps would often get you results just as good. Try changing your monitor settings to limit your cameras to lower frames rates. You can still configure ZM to ignore these limits and capture as fast as possible when an event is detected.&lt;br /&gt;
# Run function. Obviously running in Record or Mocord modes or in Modect with lots of events generates a lot of DB and file activity and so CPU and load will increase.&lt;br /&gt;
# Basic default detection zones. By default when a camera is added one detection zone is added which covers the whole image with a default set of parameters. If you camera covers a view in which various regions are unlikely to generate a valid alarm (ie the sky) then I would experiment with reducing the zone sizes or adding inactive zones to blank out areas you don&amp;#039;t want to monitor. Additionally the actual settings of the zone themselves may not be optimal. When doing motion detection the number of changed pixels above a threshold is examined, then this is filter, then contiguous regions are calculated to see if an alarm is generated. If any maximum or minimum threshold is exceeded according to your zone settings at any time the calculation stops. If your settings always result in the calculations going through to the last stage before being failed then additional CPU time is used unnecessarily. Make sure your maximum and minimumzone thresholds are set to sensible values and experiment by switching RECORD_EVENT_STATS on and seeing what the actual values of alarmed pixels etc are during sample events.&lt;br /&gt;
# Optimise your settings. After you&amp;#039;ve got some settings you&amp;#039;re happy with then switching off RECORD_EVENT_STATS will prevent the statistics being written to the database which saves some time. Other settings which might make a difference are ZM_FAST_RGB_DIFFS, ZM_OPT_FRAME_SERVER and the JPEG_xxx_QUALITY ones.&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;m sure there are other things which might make a difference such as what else you have running on the box and memory sizes (make sure there&amp;#039;s no swapping going on). Also speed of disk etc will make some difference during event capture and also if you are watching the whole time then you may have a bunch of zms processes running also.&lt;br /&gt;
&lt;br /&gt;
I think the biggest factors are image size, colour depth and capture rate. Having said that I also don&amp;#039;t always know why you get certains results from &amp;#039;top&amp;#039;. For instance if I have a &amp;#039;zma&amp;#039; daemon running for a monitor that is capturing an image. I&amp;#039;ve commented out the actual analysis so all it&amp;#039;s doing is blending the image with the previous one. In colour mode this takes ~11 milliseconds per frame on my system and the camera is capturing at ~10fps. Using &amp;#039;top&amp;#039; this reports the process as using ~5% of CPU and permanently in R(un) state. Changing to greyscale mode the blending takes ~4msec (as you would expect as this is roughly a third of 11) but top reports the process as now with 0% CPU and permanently in S(leep) state. So an actual CPU resource usage change of a factor of 3 causes huge differences in reported CPU usage. I have yet to get to the bottom of this but I suspect it&amp;#039;s to do with scheduling somewhere along the line and that maybe the greyscale processing will fit into one scheduling time slice whereas the colour one won&amp;#039;t but I have no evidence of this yet!&lt;br /&gt;
&lt;br /&gt;
===Why is the timeline view all messed up?===&lt;br /&gt;
&lt;br /&gt;
The timeline view is a new view allowing you to see a graph of alarm activity over time and to quickly scan and home in on events of interest. However this feature is highly complex and still in beta. It is based extensively on HTML div tags, sometimes lots of them. Whilst FireFox is able to render this view successfully other browsers, particular Internet Explorer do not seem able to cope and so present a messed up view, either always or when there are a lot of events.&lt;br /&gt;
Using the timeline view is only recommended when using FireFox, however even then there may be issues.&lt;br /&gt;
&lt;br /&gt;
===How much Hard Disk Space / Bandwidth do I need for ZM?===&lt;br /&gt;
Please see [http://www.jpwilson.eu/ZM_Utils/ZM%20storage%20calc%20sheet.xls Storage Calc] in excel format&lt;br /&gt;
&lt;br /&gt;
Or go to [http://www.axis.com/techsup/cam_servers/bandwidth/bw_210.htm this link] for the Axis bandwidth calculator. Although this is aimed at Axis cameras it still produces valid results for any kind of IP camera.&lt;br /&gt;
&lt;br /&gt;
As a quick guide I have 4 cameras at 320x240 storing 1 fps except during alarm events. After 1 week 60GB of space in the volume where the events are stored (/var/www/html/zm) has been used.&lt;br /&gt;
&lt;br /&gt;
===When I try and run ZoneMinder I get lots of audit permission errors in the logs and it won&amp;#039;t start===&lt;br /&gt;
Many Linux distributions nowadays are built with security in mind. One of the latest methods of achieving this is via SELinux (Secure Linux) which controls who is able to run what in a more precise way then traditional accounting and file based permissions ([http://en.wikipedia.org/wiki/Selinux]).&lt;br /&gt;
If you are seeing entries in your system log like:&lt;br /&gt;
&lt;br /&gt;
   Jun 11 20:44:02 kernel: audit(1150033442.443:226): avc: denied { read } for pid=5068&lt;br /&gt;
   comm=&amp;quot;uptime&amp;quot; name=&amp;quot;utmp&amp;quot; dev=dm-0 ino=16908345 scontext=user_u:system_r:httpd_sys_script_t&lt;br /&gt;
   tcontext=user_u:object_r:initrc_var_run_t tclass=file&lt;br /&gt;
&lt;br /&gt;
then it is likely that your system has SELinux enabled and it is preventing ZoneMinder from performaing certain activities. You then have two choices. You can either tune SELinux to permit the required operations or you can disable SELinux entirely which will permit ZoneMinder to run unhindered. Disabling SELinux is usually performed by editing it&amp;#039;s configuration file (e.g., &amp;lt;tt&amp;gt;/etc/selinux/config&amp;lt;/tt&amp;gt;) and then rebooting. However if you run a public server you should read up on the risks associated with disabled Secure Linux before disabling it.&lt;br /&gt;
&lt;br /&gt;
Note that SELinux may cause errors other than those listed above. If you are in any doubt then it can be worth disabling SELinux experimentally to see if it fixes your problem before trying other solutions.&lt;br /&gt;
&lt;br /&gt;
=== How do I enable ZoneMinder&amp;#039;s security? ===&lt;br /&gt;
In the console, click on Options. Check the box next to &amp;quot;ZM_OPT_USE_AUTH&amp;quot;. You will immediately be asked to login. The username is &amp;#039;admin&amp;#039; and the password is &amp;#039;admin&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Manage Users:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
In main console, go to &amp;#039;&amp;#039;&amp;#039;Options-&amp;gt;Users&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== Why does ZM stop recording once I have 32000 events for my monitor? ===&lt;br /&gt;
This is a limitation of the ext3 filesystem that most Linux distributions use. One directory cannot hold more than 32k approx  files.&lt;br /&gt;
&lt;br /&gt;
Version of ZM from 1.23.0 onwards allow you to have a deeper filesystem with fewer files per individual directory. As well as not being susceptible to the 32k limit this is also somewhat  faster. However it is relatively and although few issues have been reported thus far it should be considered in beta for now. Also, it is currently not possible to migrate saved events between the different storage formats so is only suitable for new installations or if you do not mind losing saved events.&lt;br /&gt;
&lt;br /&gt;
So if you do not want to use the deeper filesystem option (Options-&amp;gt;Paths-&amp;gt;ZM_USE_DEEP_STORAGE) for now you have to reduce the number of events or use a different filesystems such as reiserfs.&lt;br /&gt;
&lt;br /&gt;
If you search for ext3 or reiserfs on the forums you will find various threads on this issue with guidance on how to convert.&lt;br /&gt;
&lt;br /&gt;
== Managing system load &amp;#039;&amp;#039;(with IP Cameras in mind)&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
Zoneminder is a superb application in every way, but it does a job that needs a lot of horsepower especially when using multiple IP cameras. IP Cams require an extra level of processing to analogue cards as the jpg or mjpeg images need to be decoded before analysing. This needs grunt. If you have lots of cameras, you need lots of grunt.&lt;br /&gt;
&lt;br /&gt;
Why do ZM need so much grunt?&lt;br /&gt;
Think what Zoneminder is actually doing. In modect mode ZM is:&lt;br /&gt;
1. Fetching a jpeg from the camera. (Either in single part or multipart stream)&lt;br /&gt;
2. Decoding the jpeg image. &lt;br /&gt;
3. Comparing the zoned selections to the previous image or images and applying rules.&lt;br /&gt;
4. If in alarm state, writing that image to the disk and updating the mysql database.&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;re capturing at five frames per second, the above is repeated five times every second, multiplied by the number of cameras. Decoding the images is what takes the real power from the processor and this is the main reason why analogue cameras which present an image ready-decoded in memory take less work.&lt;br /&gt;
&lt;br /&gt;
=== How do I know if my computer is overloaded? ===&lt;br /&gt;
If your CPU is running at 100% all the time, it&amp;#039;s probably overloaded (or running at exact optimisation). If the load is consistently high (over 10.0 for a single processor) then Bad Things happen - like lost frames, unrecorded events etc. Occasional peaks are fine, normal and nothing to worry about.&lt;br /&gt;
&lt;br /&gt;
Zoneminder runs on Linux, Linux measures system load using &amp;quot;load&amp;quot;, which is complicated but gives a rough guide on what the computer is doing at any given time. Zoneminder shows Load on the main page (top right) as well as disk space. Typing &amp;quot;uptime&amp;quot; on the command line will give a similar guide, but with three figures to give a fuller measure of what&amp;#039;s happening over a period of time but for the best guide to see what&amp;#039;s happening, install &amp;quot;htop&amp;quot; - which gives easy to read graphs for load, memory and cpu usage.&lt;br /&gt;
&lt;br /&gt;
A load of 1.0 means the processor has &amp;quot;just enough to do right now&amp;quot;. Also worth noting that a load of 4.0 means exactly the same for a quad processor machine - each number equals a single processor&amp;#039;s workload. A very high load can be fine on a computer that has a stacked workload - such as a machine sending out bulk emails, or working its way through a knotty problem; it&amp;#039;ll just keep churning away until it&amp;#039;s done. However - Zoneminder needs to process information in real time so it can&amp;#039;t afford to stack its jobs, it needs to deal with them right away.&lt;br /&gt;
&lt;br /&gt;
For a better and full explanation of Load: http://en.wikipedia.org/wiki/Load_%28computing%29&lt;br /&gt;
&lt;br /&gt;
=== My load is too high, how can I reduce it? ===&lt;br /&gt;
Zoneminder is /very/ tweakable and it&amp;#039;s possible to tune it to compromise. The following are good things to try, in no particular order;&lt;br /&gt;
&lt;br /&gt;
Change the jpeg libraries. In most distributions Linux uses standard jpeg libraries which although fine for most things, don&amp;#039;t use the MMX functions in nearly all modern processors. Check whether your cpu supports mmx by running &amp;quot;cpuid |grep MMX&amp;quot; which should give you a line or two along the lines of &amp;quot;MMX instructions&amp;quot;. If so, give the libs a try. Most people report their load halves simply by using these libs. http://www.zoneminder.com/forums/viewtopic.php?t=6419 gives more info. Nobody&amp;#039;s posted there to say it broke their system... Yet.&lt;br /&gt;
&lt;br /&gt;
If your camera allows you to change image size, think whether you can get away with smaller images. Smaller pics = less load. 320x240 is usually ok for close-up corridor shots.&lt;br /&gt;
&lt;br /&gt;
Go Black and White. Colour pictures use twice to three times the CPU, memory and diskspace but give little benefit to identification.&lt;br /&gt;
&lt;br /&gt;
Reduce frames per second. Halve the fps, halve the workload. If your camera supports fps throttling (Axis do), try that - saves ZM having to drop frames from a stream. 2-5 fps seems to be widely used.&lt;br /&gt;
&lt;br /&gt;
Experiment with using jpeg instead of mjpeg. Some users have reported it gives better performance, but YMMV.&lt;br /&gt;
&lt;br /&gt;
Tweak the zones. Keep them as small and as few as possible. Stick to one zone unless you really need more.&lt;br /&gt;
&lt;br /&gt;
Schedule. If you are running a linux system at near capacity, you&amp;#039;ll need to think carefully about things like backups and scheduled tasks. updatedb - the process which maintains a file database so that &amp;#039;locate&amp;#039; works quickly, is normally scheduled to run once a day and if on a busy system can create a heavy increase on the load. The same is true for scheduled backups, especially those which compress the files. Re-schedule these tasks to a time when the cpu is less likely to be busy, if possible - and also use the &amp;quot;nice&amp;quot; command to reduce their priority. (crontab and /etc/cron.daily/ are good places to start)&lt;br /&gt;
&lt;br /&gt;
Reduce clutter on your PC. Don&amp;#039;t run X unless you really need it, the GUI is a huge overhead in both memory and cpu.&lt;br /&gt;
&lt;br /&gt;
More expensive options:&lt;br /&gt;
&lt;br /&gt;
Increase RAM. If your system is having to use disk swap it will HUGELY impact performance in all areas. Again, htop is a good monitor - but first you need to understand that because Linux is using all the memory, it doesn&amp;#039;t mean it needs it all - linux handles ram very differently to Windows/DOS and caches stuff. htop will show cached ram as a different colour in the memory graph. Also check that you&amp;#039;re actually using a high memory capable kernel - many kernels don&amp;#039;t enable high memory by default. &lt;br /&gt;
&lt;br /&gt;
Faster CPU. Simple but effective. Zoneminder also works very well with multiple processor systems out of the box (if SMP is enabled in your kernel). The load of different cameras is spread across the processors.&lt;br /&gt;
&lt;br /&gt;
=== What about disks and bandwidth? ===&lt;br /&gt;
&lt;br /&gt;
In most modern pc-based servers, disk I/O is more than adequate for the speeds involved in capturing from multiple cameras in most scenarios.&lt;br /&gt;
&lt;br /&gt;
A typical 100mbit LAN will cope with most setups easily. If you&amp;#039;re feeding from cameras over smaller or internet links, obviously fps will be much lower.&lt;br /&gt;
&lt;br /&gt;
Disk and Bandwidth calculators are referenced on the Zoneminder wiki here: http://www.zoneminder.com/wiki/index.php/FAQ#How_much_Hard_Disk_Space_.2F_Bandwidth_do_I_need_for_ZM.3F&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Building ZoneMinder ==&lt;br /&gt;
&lt;br /&gt;
=== How do I build for X10 support? ===&lt;br /&gt;
&lt;br /&gt;
You do not need to rebuild ZM for X10 support. You will need to install the perl module and switch on X10 in the options, then restart. Installing the perl module is covered in the README amongst other places but in summary, do:&lt;br /&gt;
&lt;br /&gt;
 perl -MCPAN -eshell&lt;br /&gt;
 install X10::ActiveHome&lt;br /&gt;
 quit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Extending ZoneMinder ==&lt;br /&gt;
&lt;br /&gt;
=== How can I get ZM to do different things at different times of day or week? ===&lt;br /&gt;
If you want to configure ZoneMinder to do motion detection during the day and just record at night, for example, you will need to use ZoneMinder &amp;#039;run states&amp;#039;. A run state is a particular configuration of monitor functions that you want to use at any time.&lt;br /&gt;
&lt;br /&gt;
To save a run state you should first configure your monitors for Modect, Record, Monitor etc as you would want them during one of the times of day. Then click on the running state link at the top of the Console view. This will usually say &amp;#039;Running&amp;#039; or &amp;#039;Stopped&amp;#039;. You will then be able to save the current state and give it a name, &amp;#039;Daytime&amp;#039; for example. Now configure your monitors how you would want them during other times of day and save that, for instance as &amp;#039;Nighttime&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Now you can switch between these two states by selecting them from the same dialog you saved them, or from the command line from issue the command &amp;#039;&amp;#039;zmpkg.pl &amp;lt;run state&amp;gt;&amp;#039;&amp;#039;, for example &amp;#039;&amp;#039;zmpkg.pl Daytime&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The final step you need to take, is scheduling the time the changes take effect. For this you can use [http://en.wikipedia.org/wiki/Cron cron]. A simple entry to change to the Daylight state at at 8am and to the nighttime state at 8pm would be as follows,&lt;br /&gt;
&amp;lt;pre&amp;gt;0 8 * * * /usr/local/bin/zmpkg.pl Daytime&lt;br /&gt;
0 20 * * * /usr/local/bin/zmpkg.pl Nighttime&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On Ubuntu 7.04 and possibly others, look in /usr/bin not just /usr/local/bin for the zmpkg.pl file.&lt;br /&gt;
&lt;br /&gt;
Although the example above describes changing states at different times of day, the same principle can equally be applied to days of the week or other more arbitrary periods.&lt;br /&gt;
&lt;br /&gt;
For an alternative method of time controlling ZoneMinder, forum user &amp;#039;voronwe&amp;#039; has created a more interactive calendar style integration. Details of this can be found in this [http://www.zoneminder.com/forums/viewtopic.php?t=6519 forum thread]. If you would like to find out more about this contribution please post on this thread.&lt;br /&gt;
&lt;br /&gt;
=== How can I use ZoneMinder to trigger something else when there is an alarm? ===&lt;br /&gt;
ZoneMinder includes a perl API which means you can create a script to interact with the ZM shared memory data and use it in your own scripts to react to ZM alarms or to trigger ZM to generate new alarms. Full details are in the README or by doing &amp;#039;perdoc ZoneMinder&amp;#039;, &amp;#039;perldoc ZoneMinder::SharedMem&amp;#039; etc.&lt;br /&gt;
Below is an example script that checks all monitors for alarms and when one occurs, prints a message to the screen. You can add in your own code to make this reaction a little more useful.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/usr/bin/perl -w&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
use ZoneMinder;&lt;br /&gt;
&lt;br /&gt;
$| = 1;&lt;br /&gt;
&lt;br /&gt;
zmDbgInit( &amp;quot;myscript&amp;quot;, level=&amp;gt;0, to_log=&amp;gt;0, to_syslog=&amp;gt;0, to_term=&amp;gt;1 );&lt;br /&gt;
&lt;br /&gt;
my $dbh = DBI-&amp;gt;connect( &amp;quot;DBI:mysql:database=&amp;quot;.ZM_DB_NAME.&amp;quot;;host=&amp;quot;.ZM_DB_HOST, ZM_DB_USER, ZM_DB_PASS );&lt;br /&gt;
&lt;br /&gt;
my $sql = &amp;quot;select M.*, max(E.Id) as LastEventId from Monitors as M left join Events as E on M.Id = E.MonitorId where M.Function != &amp;#039;None&amp;#039; group by (M.Id)&amp;quot;;&lt;br /&gt;
my $sth = $dbh-&amp;gt;prepare_cached( $sql ) or die( &amp;quot;Can&amp;#039;t prepare &amp;#039;$sql&amp;#039;: &amp;quot;.$dbh-&amp;gt;errstr() );&lt;br /&gt;
&lt;br /&gt;
my $res = $sth-&amp;gt;execute() or die( &amp;quot;Can&amp;#039;t execute &amp;#039;$sql&amp;#039;: &amp;quot;.$sth-&amp;gt;errstr() );&lt;br /&gt;
my @monitors;&lt;br /&gt;
while ( my $monitor = $sth-&amp;gt;fetchrow_hashref() )&lt;br /&gt;
{&lt;br /&gt;
    push( @monitors, $monitor );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
while( 1 )&lt;br /&gt;
{&lt;br /&gt;
    foreach my $monitor ( @monitors )&lt;br /&gt;
    {&lt;br /&gt;
        next if ( !zmShmVerify( $monitor ) );&lt;br /&gt;
 &lt;br /&gt;
        if ( my $last_event_id = zmHasAlarmed( $monitor, $monitor-&amp;gt;{LastEventId} ) )&lt;br /&gt;
        {&lt;br /&gt;
            $monitor-&amp;gt;{LastEventId} = $last_event_id;&lt;br /&gt;
            print( &amp;quot;Monitor &amp;quot;.$monitor-&amp;gt;{Name}.&amp;quot; has alarmed\n&amp;quot; );&lt;br /&gt;
            #&lt;br /&gt;
            # Do your stuff here&lt;br /&gt;
            #&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    sleep( 1 );&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Trouble Shooting==&lt;br /&gt;
Here are some things that will help you track down whats wrong.&lt;br /&gt;
This is also how to obtain the info that we need to help you on the forums.&lt;br /&gt;
&lt;br /&gt;
===What logs should I check for errors?===&lt;br /&gt;
ZoneMinder creates its own logs and are usually located in the &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder logs for the RPM packages are located in &amp;lt;tt&amp;gt;/var/log/zm&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Depending on your problem errors can show up in any of these logs but, usually the logs of interest are &amp;lt;tt&amp;gt;zmdc.log&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;zmpkg.log&amp;lt;/tt&amp;gt; if ZM is not able to start.&lt;br /&gt;
&lt;br /&gt;
Now since ZM is dependent on other components to work, you might not find errors in ZM but in the other components.&lt;br /&gt;
Other logs of interest are:&amp;lt;tt&amp;gt;&lt;br /&gt;
*/var/log/messages and/or /var/log/syslog&lt;br /&gt;
*/var/log/dmesg&lt;br /&gt;
*/var/log/httpd/error_log&amp;lt;/tt&amp;gt; (RedHat/Fedora) or &amp;lt;tt&amp;gt;/var/log/apache2/error_log&lt;br /&gt;
*/var/log/mysqld.log&amp;lt;/tt&amp;gt; (Errors here don&amp;#039;t happen very often but just in case)&lt;br /&gt;
&lt;br /&gt;
If ZM is not functioning, you should always be able to find an error in at least one of these logs. Use the [[tail]] command to get info from the logs. This can be done like so: &lt;br /&gt;
&lt;br /&gt;
  tail -f /var/log/messages /var/log/httpd/error_log /var/log/zm/zm*.log&lt;br /&gt;
&lt;br /&gt;
This will append any data entered to any of these logs to your console screen (&amp;lt;tt&amp;gt;-f&amp;lt;/tt&amp;gt;). To exit, hit [ctrl -c].&lt;br /&gt;
&lt;br /&gt;
===How can I trouble shoot the hardware and/or software?===&lt;br /&gt;
Here are some commands to get information about your hardware. Some commands are distribution dependent.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[lspci]] -vv&amp;lt;/tt&amp;gt; -- Returns lots of detailed info. Check for conflicting interrupts or port assignments. You can sometimes alter interrupts/ ports in bios. Try a different pci slot to get a clue if it is HW conflict (comand provided by the pciutils package).&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[scanpci]] -v&amp;lt;/tt&amp;gt;  -- Gives you information from your hardware EPROM&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[lsusb]] -vv&amp;lt;/tt&amp;gt; -- Returns lots of detail about USB devices (camand provided by usbutils package).&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[dmesg]]&amp;lt;/tt&amp;gt; -- Shows you how your hardware initialized (or didn&amp;#039;t) on boot-up. You will get the most use of this.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[v4l-info]]&amp;lt;/tt&amp;gt; -- to see how driver is talking to card. look for unusual values.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[modinfo bttv]]&amp;lt;/tt&amp;gt; -- some bttv driver stats.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[zmu]]  -m 0 -q -v&amp;lt;/tt&amp;gt; -- Returns various information regarding a monitor configuration.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[ipcs]] &amp;lt;/tt&amp;gt;  -- Provides information on the ipc facilities for which the calling process has read acccess.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[ipcrm]] &amp;lt;/tt&amp;gt;  -- The ipcrm command can be used to remove an IPC object from the kernel.&lt;br /&gt;
* &amp;lt;tt&amp;gt;cat /proc/interrupts&amp;lt;/tt&amp;gt;  -- This will dispaly what interrupts your hardware is using.&lt;br /&gt;
&lt;br /&gt;
===I am getting messages about a backtrace in my logs, what do I do?===&lt;br /&gt;
If you are seeing entries in your log like the following&lt;br /&gt;
&amp;lt;pre&amp;gt;Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6 [0x3347230210]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6(memset+0xce) [0x334727684e]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x40ee9a]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x419946]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x4213cf]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma(cos+0x35c) [0x404674]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6(__libc_start_main+0xf4) [0x334721da44]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma(cos+0xd1) [0x4043e9]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: INF [Backtrace complete]&amp;lt;/pre&amp;gt;&lt;br /&gt;
then you can help diagnose the problem by running a special command to translate the hex addresses into helpful information. This command is called addr2line and you can type &amp;#039;man addr2line&amp;#039; for more information.&lt;br /&gt;
Basically addr2line takes two sets of parameters, the first is the name of the binary file, and the second is a list of addresses. Both of these pieces of information are displayed in the logs. The filename is the first part after the &amp;#039;Backtrace:&amp;#039; tag, in this case /usr/local/bin/zma, though it may well be different in your case. Some of the lines refer to libraries rather than the zma executable but those can be ignored for now, the important part is noting which ZM binary is involved. The binary file is passed in following the -e flag. The addresses to pass to addr2line are those contained in the &amp;#039;[]&amp;#039; pairs. Again you can ignore those that are on a line that refers to a library but it will not hurt if you include them.&lt;br /&gt;
So in the example above, the command would be &amp;lt;pre&amp;gt;addr2line -e /usr/local/bin/zma 0x40ee9a 0x419946 0x4213cf 0x404674 0x4043e9&amp;lt;/pre&amp;gt;&lt;br /&gt;
This should then dump out a more symbolic list containing source file names and line numbers, and it is this information which will be helpful if posted to the forums. Sometimes addr2line fails to produce useful output. This is usually because either the problem is so severe that it has corrupted the stack and prevented useful information from being displayed, or that you have either compiled ZM without the -g flag for debug, or you have stripped the binaries of symbol information after installation. This this case you would need to rebuild temporarily with debug enabled for the information to be useful.&lt;br /&gt;
&lt;br /&gt;
===How do I repair the MySQL Database?===&lt;br /&gt;
There is two ways to go about this. In most cases you can run from the command prompt -&amp;gt;&lt;br /&gt;
* mysqlcheck --all-databases --auto-repair -p&amp;#039;&amp;#039;&amp;#039;your_database_password&amp;#039;&amp;#039;&amp;#039; -u &amp;#039;&amp;#039;&amp;#039;your_databse_user&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If that does not work then you will have to make sure that ZoneMinder is stopped then run the following (nothing should be using the database while running this and you will have to adjust for your correct path if it is different). -&amp;gt;&lt;br /&gt;
* myisamchk --silent --force --fast --update-state -O key_buffer=64M -O sort_buffer=64M -O read_buffer=1M -O write_buffer=1M /var/lib/mysql/*/*.MYI &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How do I repair the MySQL Database when the cli fails?===&lt;br /&gt;
In Ubuntu, the commands listed above do not seem to work.  However, actually doing it by hand from within MySQL does.  (But that is beyond the scope of this document)  But that got me thinking...  And phpmyadmin does work.  Bring up a terminal.&lt;br /&gt;
 sudo apt-get install phpmyadmin&lt;br /&gt;
&lt;br /&gt;
Now go to http://zoneminder_IP/ and stop the ZM service.  Continue to http://zoneminder_IP/phpmyadmin and select the zoneminder database.  Select and tables marked &amp;#039;in use&amp;#039; and pick the action &amp;#039;repare&amp;#039; to fix.  Restart the zoneminder service from the web browser.  Remove or disable the phpmyadmin tool, as it is not always the most secure thing around, and opens your database wide to any skilled hacker.&lt;br /&gt;
 sudo apt-get remove phpmyadmin&lt;br /&gt;
&lt;br /&gt;
===I upgraded by distribution and ZM stopped working===&lt;br /&gt;
Some possibilties (Incomplete list and subject to correction)&lt;br /&gt;
#[[/usr/local/bin/zmfix: /usr/lib/libmysqlclient.so.15: version `MYSQL_5.0&amp;#039; not found (required by /usr/local/bin/zmfix)]]  :: Solution: Recompile and reinstall Zoneminder.&lt;br /&gt;
Any time you update a major version that ZoneMinder depends on, you need to recompile ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
=== I see ZoneMinder is licensed under the GPL. What does that allow or restrict me in doing with ZoneMinder? ===&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder license is described at the end of the documentation and consists of the following section&lt;br /&gt;
&lt;br /&gt;
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as&lt;br /&gt;
 published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.&lt;br /&gt;
 &lt;br /&gt;
 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty&lt;br /&gt;
 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
This means that ZoneMinder is licensed under the terms described [http://www.gnu.org/copyleft/gpl.html here]. There is a comprehensive FAQ covering the GPL at http://www.gnu.org/licenses/gpl-faq.html but in essence you are allowed to redistribute or modify GPS licensed software provided that you release your distribution or modifications freely under the same terms. You are allowed to sell systems based on GPL software. You are not allowed to restrict or reduce the rights of GPL software in your distribution however. Of course if you are just making modifications for your system locally you are not releasing changes so you have no obligations in this case. I recommend reading the GPL FAQ for more in-depth coverage of this issue.&lt;br /&gt;
&lt;br /&gt;
=== Can I use ZoneMinder as part of my commercial product? ===&lt;br /&gt;
&lt;br /&gt;
The GPL license allows you produce systems based on GPL software provided your systems also adhere to that license and any modifications you make are also released under the same terms.  The GPL does not permit you to include ZoneMinder in proprietary systems (see http://www.gnu.org/licenses/gpl-faq.html#GPLInProprietarySystem for details). If you wish to include ZoneMinder in this kind of system then you will need to license ZoneMinder under different terms. This is sometimes possible and you will need to contact me for further details in these circuumstances.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=1885</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=1885"/>
		<updated>2007-02-03T09:08:34Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: /* My load is too high, how can I reduce it? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== ZoneMinder Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
This is the new FAQ page. I will be migrating the existing FAQs here as soon as possible. In the meantime the old FAQ page is available [http://www.zoneminder.com/faq.html here].&lt;br /&gt;
&lt;br /&gt;
Feel free to contribute any FAQs that you think are missing.&lt;br /&gt;
&lt;br /&gt;
===How can I stop ZoneMinder filling up my disk?===&lt;br /&gt;
&lt;br /&gt;
Recent versions of ZoneMinder come with a filter you can use for this purpose already included. However &amp;#039;&amp;#039;&amp;#039;by default it is not enabled for event deletion&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The filter is called &amp;#039;&amp;#039;PurgeWhenFull&amp;#039;&amp;#039; and to find it, choose one of the event counts from the console page, for instance events in the last hour, for one of your monitors.&lt;br /&gt;
&lt;br /&gt;
This will bring up an event listing and a filter window.&lt;br /&gt;
&lt;br /&gt;
In the filter window there is a dropdown select box labelled &amp;#039;Use Filter&amp;#039;, that lets your select a saved filter. Select &amp;#039;PurgeWhenFull&amp;#039; and it will load that filter.&lt;br /&gt;
&lt;br /&gt;
Make any modifications you might want, such as the percentage full you want it to kick in, or how many events to delete at a time (it will repeat the filter as many times as needed to clear the space, but will only delete this many events each time to get there).&lt;br /&gt;
&lt;br /&gt;
Then click on &amp;#039;Save&amp;#039; which will bring up a new window. Make sure the &amp;#039;Automatically delete&amp;#039; box is checked and press save to save your filter. This will then run in the background to keep your disk within those limits.&lt;br /&gt;
&lt;br /&gt;
After you&amp;#039;ve done that, you changes will automatically be loaded into zmfilter within a few minutes.&lt;br /&gt;
&lt;br /&gt;
Check the &amp;lt;tt&amp;gt;zmfilter.log&amp;lt;/tt&amp;gt; file to make sure it is running as sometimes missing perl modules mean that it nevers runs but people don&amp;#039;t always realise.&lt;br /&gt;
&lt;br /&gt;
===What does a &amp;#039;Can&amp;#039;t shmget: Invalid argument&amp;#039; error in my logs mean?===&lt;br /&gt;
&lt;br /&gt;
This error is discussed in the README in the following excerpt:-&lt;br /&gt;
&amp;#039;&amp;#039;...this is caused by an attempt to allocate an amount of shared memory greater than your system can handle. The size it requests is based on the following formula, ring buffer size x image width x image height x 3 (for 24 bit images) + a bit of overhead.&lt;br /&gt;
&lt;br /&gt;
So if for instance you were using 24bit 640x480 then this would come to about 92Mb if you are using the default buffer size of 100. If this is too large then you can either reduce the image or buffer sizes or increase the maximum amount of shared memory available. If you are using RedHat then you can get details on how to change these settings at http://www.redhat.com/docs/manuals/database/RHDB-2.1-Manual/admin_user/kernel-resources.html&lt;br /&gt;
&lt;br /&gt;
You should be able to use a similar procedure  with other distributions to modify the shared memory pool without kernel recompilations though in some cases this may be necessary. Note, this error also sometimes occurs if you have an old shared memory segment lying around from a previous run that is too small. Use the ipcs and ipcrm system commands to check and remove it if necessary.&amp;#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You can often find out how much shared memory is available by typing the following :-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/sys/kernel/shmall&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the most you can allocate in one go :-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/sys/kernel/shmmax&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change these values type (for example) :-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;echo 134217728 &amp;gt;/proc/sys/kernel/shmall &amp;amp;&amp;amp; echo 134217728 &amp;gt;/proc/sys/kernel/shmmax&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However be aware that sometimes you will only need to change the shmmax value as shmall is often large enough. Also changing these values in this way is only effective until your machine is rebooted. To change them permanently you will need to edit &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; and add the following lines (for example) :-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;kernel.shmall = 134217728&lt;br /&gt;
kernel.shmmax = 134217728&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which will enforce the changes the next time your machine is restarted.&lt;br /&gt;
&lt;br /&gt;
===What can&amp;#039;t I see streamed images when I can see stills in the Zone window etc?===&lt;br /&gt;
&lt;br /&gt;
This issue is normally down to one of two causes&lt;br /&gt;
&lt;br /&gt;
1) You are using Internet Explorer and are trying to view multi-part jpeg streams. IE does not support these streams directly, unlike most other browsers. You will need to install Cambozola or another multi-part jpeg aware pluging to view them. To do this you will need to obtain the applet from the Downloads page and install the cambozola.jar file in the same directly as the ZoneMinder php files. Then find the ZoneMinder Options-&amp;gt;Images page and enable ZM_OPT_CAMBOZOLA and enter the web path to the .jar file in ZM_PATH_CAMBOZOLA. This will ordinarily just be cambozola.jar. Provided ZM_CAN_STREAM is set to auto and ZM_STREAM_METHOD is set to jpeg then Cambozola should be loaded next time you try and view a stream.&lt;br /&gt;
2) The other common cause for being unable to view streams is that you have installed the ZoneMinder cgi binaries (zms and nph-zms) in a different directory than your web server is expecting. Make sure that the --with-cgidir option you use to the ZoneMinder configure script is the same as the CGI directory configure for your web server. If you are using Apache, which is the most common one, then in your httpd.conf file there should be a line like &amp;lt;pre&amp;gt;ScriptAlias /cgi-bin/ &amp;quot;/var/www/cgi-bin/&amp;quot;&amp;lt;/pre&amp;gt; where the last directory in the quotes is the one you have specified. If not then change one or the other to match. Be warned that configuring apache can be complex so changing the one passed to the ZoneMinder configure (and then rebuilding and reinstalling) is recommended in the first instance. If you change the apache config you will need to restart apache for the changes to take effect. If you still cannot see stream reliably then try changing Options-&amp;gt;Paths-&amp;gt;ZM_PATH_ZMS to just use zms if nph-zms is specified, or vice versa. Also check in your apache error logs.&lt;br /&gt;
&lt;br /&gt;
===I have several monitors configured but when I load the Montage view in FireFox why can I only see two?===&lt;br /&gt;
&lt;br /&gt;
By default FireFox only allows a limited number of simultaneous connections to a particular web server. To view a montage with X cameras you need at least X connections. To resolve this situation, follow the instructions below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Enter about:config in the address bar&lt;br /&gt;
&lt;br /&gt;
scroll down to&lt;br /&gt;
browser.cache.check_doc_frequency 3&lt;br /&gt;
change the 3 to a 1&lt;br /&gt;
&lt;br /&gt;
browser.cache.disk.enable True -&amp;gt; False&lt;br /&gt;
network.http.max-connections-per-server -&amp;gt; put a value of 100&lt;br /&gt;
network.http.max-persistent-connections-per-proxy -&amp;gt; 100 again&lt;br /&gt;
network.http.max-persistent-connections-per-server -&amp;gt; 100 again&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why is ZoneMinder using so much CPU?===&lt;br /&gt;
&lt;br /&gt;
The various elements of ZoneMinder can be involved in some pretty intensive activity, especially while analysing images for motion. However generally this should not overwhelm your machine unless it is very old or underpowered.&lt;br /&gt;
&lt;br /&gt;
There are a number of specific reasons why processor loads can be high either by design or by accident. To figure out exactly what is causing it in your circumstances requires a bit of expermentation.&lt;br /&gt;
&lt;br /&gt;
The main causes are.&lt;br /&gt;
&lt;br /&gt;
# Using a video palette other than greyscale or RGB24. This can cause a relatively minor performace hit, though still significant. Although some cameras and cards require using planar palettes ZM currently doesn&amp;#039;t support this format internally (yet) and each frame is converted to an RGB representation prior to processing. Unless you have compelling reasons for using YUV or reduced RGB type palettes such as hitting USB transfer limits I would experiment to see if RGB24 or greyscale is quicker. Put your monitors into &amp;#039;Monitor&amp;#039; mode so that only the capture daemons are running and monitor the process load of these (the &amp;#039;zmc&amp;#039; processes) using top. Try it with various palettes to see if it makes a difference.&lt;br /&gt;
# Big image sizes. A image of 640x480 requires at least four times the processing of a 320x240 image. Experiment with different sizes to see what effect it may have. Sometimes a large image is just two interlaced smaller frames so has no real benefit anyway.&lt;br /&gt;
# Capture frame rates. Unless there&amp;#039;s a compelling reason in your case there is often little benefit in running cameras at 25fps when 5-10fps would often get you results just as good. Try changing your monitor settings to limit your cameras to lower frames rates. You can still configure ZM to ignore these limits and capture as fast as possible when an event is detected.&lt;br /&gt;
# Run function. Obviously running in Record or Mocord modes or in Modect with lots of events generates a lot of DB and file activity and so CPU and load will increase.&lt;br /&gt;
# Basic default detection zones. By default when a camera is added one detection zone is added which covers the whole image with a default set of parameters. If you camera covers a view in which various regions are unlikely to generate a valid alarm (ie the sky) then I would experiment with reducing the zone sizes or adding inactive zones to blank out areas you don&amp;#039;t want to monitor. Additionally the actual settings of the zone themselves may not be optimal. When doing motion detection the number of changed pixels above a threshold is examined, then this is filter, then contiguous regions are calculated to see if an alarm is generated. If any maximum or minimum threshold is exceeded according to your zone settings at any time the calculation stops. If your settings always result in the calculations going through to the last stage before being failed then additional CPU time is used unnecessarily. Make sure your maximum and minimumzone thresholds are set to sensible values and experiment by switching RECORD_EVENT_STATS on and seeing what the actual values of alarmed pixels etc are during sample events.&lt;br /&gt;
# Optimise your settings. After you&amp;#039;ve got some settings you&amp;#039;re happy with then switching off RECORD_EVENT_STATS will prevent the statistics being written to the database which saves some time. Other settings which might make a difference are ZM_FAST_RGB_DIFFS, ZM_OPT_FRAME_SERVER and the JPEG_xxx_QUALITY ones.&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;m sure there are other things which might make a difference such as what else you have running on the box and memory sizes (make sure there&amp;#039;s no swapping going on). Also speed of disk etc will make some difference during event capture and also if you are watching the whole time then you may have a bunch of zms processes running also.&lt;br /&gt;
&lt;br /&gt;
I think the biggest factors are image size, colour depth and capture rate. Having said that I also don&amp;#039;t always know why you get certains results from &amp;#039;top&amp;#039;. For instance if I have a &amp;#039;zma&amp;#039; daemon running for a monitor that is capturing an image. I&amp;#039;ve commented out the actual analysis so all it&amp;#039;s doing is blending the image with the previous one. In colour mode this takes ~11 milliseconds per frame on my system and the camera is capturing at ~10fps. Using &amp;#039;top&amp;#039; this reports the process as using ~5% of CPU and permanently in R(un) state. Changing to greyscale mode the blending takes ~4msec (as you would expect as this is roughly a third of 11) but top reports the process as now with 0% CPU and permanently in S(leep) state. So an actual CPU resource usage change of a factor of 3 causes huge differences in reported CPU usage. I have yet to get to the bottom of this but I suspect it&amp;#039;s to do with scheduling somewhere along the line and that maybe the greyscale processing will fit into one scheduling time slice whereas the colour one won&amp;#039;t but I have no evidence of this yet!&lt;br /&gt;
&lt;br /&gt;
===Why is the timeline view all messed up?===&lt;br /&gt;
&lt;br /&gt;
The timeline view is a new view allowing you to see a graph of alarm activity over time and to quickly scan and home in on events of interest. However this feature is highly complex and still in beta. It is based extensively on HTML div tags, sometimes lots of them. Whilst FireFox is able to render this view successfully other browsers, particular Internet Explorer do not seem able to cope and so present a messed up view, either always or when there are a lot of events.&lt;br /&gt;
Using the timeline view is only recommended when using FireFox, however even then there may be issues.&lt;br /&gt;
&lt;br /&gt;
===How much Hard Disk Space / Bandwidth do I need for ZM?===&lt;br /&gt;
Please see [http://www.jpwilson.eu/ZM_Utils/ZM%20storage%20calc%20sheet.xls Storage Calc] in excel format&lt;br /&gt;
&lt;br /&gt;
Or go to [http://www.axis.com/techsup/cam_servers/bandwidth/bw_210.htm this link] for the Axis bandwidth calculator. Although this is aimed at Axis cameras it still produces valid results for any kind of IP camera.&lt;br /&gt;
&lt;br /&gt;
===Why don&amp;#039;t all my cameras display when I use the Montage view in FireFox?===&lt;br /&gt;
By default FireFox only supports a small number of simultaneous connections. Using the montage view usually requires one persistent connection for each camera plus intermittant connections for other information such as statuses. You will need to increase the number of allowed connections to use the montage view with more than a small number of cameras. This is a simple process and details of how to do it are available from [http://www.zoneminder.com/forums/viewtopic.php?t=4484 this forum thread]. Certain FireFox extensions such as FasterFox may also help to acehive the same result.&lt;br /&gt;
&lt;br /&gt;
===When I try and run ZoneMinder I get lots of audit permission errors in the logs and it won&amp;#039;t start===&lt;br /&gt;
Many Linux distributions nowadays are built with security in mind. One of the latest methods of achieving this is via SELinux (Secure Linux) which controls who is able to run what in a more precise way then traditional accounting and file based permissions ([http://en.wikipedia.org/wiki/Selinux]).&lt;br /&gt;
If you are seeing entries in your system log like:&lt;br /&gt;
&lt;br /&gt;
   Jun 11 20:44:02 kernel: audit(1150033442.443:226): avc: denied { read } for pid=5068&lt;br /&gt;
   comm=&amp;quot;uptime&amp;quot; name=&amp;quot;utmp&amp;quot; dev=dm-0 ino=16908345 scontext=user_u:system_r:httpd_sys_script_t&lt;br /&gt;
   tcontext=user_u:object_r:initrc_var_run_t tclass=file&lt;br /&gt;
&lt;br /&gt;
then it is likely that your system has SELinux enabled and it is preventing ZoneMinder from performaing certain activities. You then have two choices. You can either tune SELinux to permit the required operations or you can disable SELinux entirely which will permit ZoneMinder to run unhindered. Disabling SELinux is usually performed by editing it&amp;#039;s configuration file (e.g., &amp;lt;tt&amp;gt;/etc/selinux/config&amp;lt;/tt&amp;gt;) and then rebooting. However if you run a public server you should read up on the risks associated with disabled Secure Linux before disabling it.&lt;br /&gt;
&lt;br /&gt;
Note that SELinux may cause errors other than those listed above. If you are in any doubt then it can be worth disabling SELinux experimentally to see if it fixes your problem before trying other solutions.&lt;br /&gt;
&lt;br /&gt;
=== How do I enable ZoneMinder&amp;#039;s security? ===&lt;br /&gt;
In the console, click on Options. Check the box next to &amp;quot;ZM_OPT_USE_AUTH&amp;quot;. You will immediately be asked to login. The username is &amp;#039;admin&amp;#039; and the password is &amp;#039;admin&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Manage Users:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
In main console, go to &amp;#039;&amp;#039;&amp;#039;Options-&amp;gt;Users&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== Why does ZM stop recording once I have 32000 events for my monitor? ===&lt;br /&gt;
This is a limitation of the ext3 filesystem that most Linux distributions use.&lt;br /&gt;
&lt;br /&gt;
One directory cannot hold more than 32k approx  files. Future versions of ZM will have a deeper filesystem but for now you have to reduce the number of events or use a different filesystems such as reiserfs.&lt;br /&gt;
&lt;br /&gt;
If you search for ext3 or reiserfs on the forums you will find various threads on this issue.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Managing system load &amp;#039;&amp;#039;(with IP Cameras in mind)&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
Zoneminder is a superb application in every way, but it does a job that needs a lot of horsepower especially when using multiple IP cameras. IP Cams require an extra level of processing to analogue cards as the jpg or mjpeg images need to be decoded before analysing. This needs grunt. If you have lots of cameras, you need lots of grunt.&lt;br /&gt;
&lt;br /&gt;
Why do ZM need so much grunt?&lt;br /&gt;
Think what Zoneminder is actually doing. In modect mode ZM is:&lt;br /&gt;
1. Fetching a jpeg from the camera. (Either in single part or multipart stream)&lt;br /&gt;
2. Decoding the jpeg image. &lt;br /&gt;
3. Comparing the zoned selections to the previous image or images and applying rules.&lt;br /&gt;
4. If in alarm state, writing that image to the disk and updating the mysql database.&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;re capturing at five frames per second, the above is repeated five times every second, multiplied by the number of cameras. Decoding the images is what takes the real power from the processor and this is the main reason why analogue cameras which present an image ready-decoded in memory take less work.&lt;br /&gt;
&lt;br /&gt;
=== How do I know if my computer is overloaded? ===&lt;br /&gt;
If your CPU is running at 100% all the time, it&amp;#039;s probably overloaded (or running at exact optimisation). If the load is consistently high (over 10.0 for a single processor) then Bad Things happen - like lost frames, unrecorded events etc. Occasional peaks are fine, normal and nothing to worry about.&lt;br /&gt;
&lt;br /&gt;
Zoneminder runs on Linux, Linux measures system load using &amp;quot;load&amp;quot;, which is complicated but gives a rough guide on what the computer is doing at any given time. Zoneminder shows Load on the main page (top right) as well as disk space. Typing &amp;quot;uptime&amp;quot; on the command line will give a similar guide, but with three figures to give a fuller measure of what&amp;#039;s happening over a period of time but for the best guide to see what&amp;#039;s happening, install &amp;quot;htop&amp;quot; - which gives easy to read graphs for load, memory and cpu usage.&lt;br /&gt;
&lt;br /&gt;
A load of 1.0 means the processor has &amp;quot;just enough to do right now&amp;quot;. Also worth noting that a load of 4.0 means exactly the same for a quad processor machine - each number equals a single processor&amp;#039;s workload. A very high load can be fine on a computer that has a stacked workload - such as a machine sending out bulk emails, or working its way through a knotty problem; it&amp;#039;ll just keep churning away until it&amp;#039;s done. However - Zoneminder needs to process information in real time so it can&amp;#039;t afford to stack its jobs, it needs to deal with them right away.&lt;br /&gt;
&lt;br /&gt;
For a better and full explanation of Load: http://en.wikipedia.org/wiki/Load_%28computing%29&lt;br /&gt;
&lt;br /&gt;
=== My load is too high, how can I reduce it? ===&lt;br /&gt;
Zoneminder is /very/ tweakable and it&amp;#039;s possible to tune it to compromise. The following are good things to try, in no particular order;&lt;br /&gt;
&lt;br /&gt;
Change the jpeg libraries. In most distributions Linux uses standard jpeg libraries which although fine for most things, don&amp;#039;t use the MMX functions in nearly all modern processors. Check whether your cpu supports mmx by running &amp;quot;cpuid |grep MMX&amp;quot; which should give you a line or two along the lines of &amp;quot;MMX instructions&amp;quot;. If so, give the libs a try. Most people report their load halves simply by using these libs. http://www.zoneminder.com/forums/viewtopic.php?t=6419 gives more info. Nobody&amp;#039;s posted there to say it broke their system... Yet.&lt;br /&gt;
&lt;br /&gt;
If your camera allows you to change image size, think whether you can get away with smaller images. Smaller pics = less load. 320x240 is usually ok for close-up corridor shots.&lt;br /&gt;
&lt;br /&gt;
Go Black and White. Colour pictures use twice to three times the CPU, memory and diskspace but give little benefit to identification.&lt;br /&gt;
&lt;br /&gt;
Reduce frames per second. Halve the fps, halve the workload. If your camera supports fps throttling (Axis do), try that - saves ZM having to drop frames from a stream. 2-5 fps seems to be widely used.&lt;br /&gt;
&lt;br /&gt;
Experiment with using jpeg instead of mjpeg. Some users have reported it gives better performance, but YMMV.&lt;br /&gt;
&lt;br /&gt;
Tweak the zones. Keep them as small and as few as possible. Stick to one zone unless you really need more.&lt;br /&gt;
&lt;br /&gt;
Schedule. If you are running a linux system at near capacity, you&amp;#039;ll need to think carefully about things like backups and scheduled tasks. updatedb - the process which maintains a file database so that &amp;#039;locate&amp;#039; works quickly, is normally scheduled to run once a day and if on a busy system can create a heavy increase on the load. The same is true for scheduled backups, especially those which compress the files. Re-schedule these tasks to a time when the cpu is less likely to be busy, if possible - and also use the &amp;quot;nice&amp;quot; command to reduce their priority. (crontab and /etc/cron.daily/ are good places to start)&lt;br /&gt;
&lt;br /&gt;
Reduce clutter on your PC. Don&amp;#039;t run X unless you really need it, the GUI is a huge overhead in both memory and cpu.&lt;br /&gt;
&lt;br /&gt;
More expensive options:&lt;br /&gt;
&lt;br /&gt;
Increase RAM. If your system is having to use disk swap it will HUGELY impact performance in all areas. Again, htop is a good monitor - but first you need to understand that because Linux is using all the memory, it doesn&amp;#039;t mean it needs it all - linux handles ram very differently to Windows/DOS and caches stuff. htop will show cached ram as a different colour in the memory graph. Also check that you&amp;#039;re actually using a high memory capable kernel - many kernels don&amp;#039;t enable high memory by default. &lt;br /&gt;
&lt;br /&gt;
Faster CPU. Simple but effective. Zoneminder also works very well with multiple processor systems out of the box (if SMP is enabled in your kernel). The load of different cameras is spread across the processors.&lt;br /&gt;
&lt;br /&gt;
=== What about disks and bandwidth? ===&lt;br /&gt;
&lt;br /&gt;
In most modern pc-based servers, disk I/O is more than adequate for the speeds involved in capturing from multiple cameras in most scenarios.&lt;br /&gt;
&lt;br /&gt;
A typical 100mbit LAN will cope with most setups easily. If you&amp;#039;re feeding from cameras over smaller or internet links, obviously fps will be much lower.&lt;br /&gt;
&lt;br /&gt;
Disk and Bandwidth calculators are referenced on the Zoneminder wiki here: http://www.zoneminder.com/wiki/index.php/FAQ#How_much_Hard_Disk_Space_.2F_Bandwidth_do_I_need_for_ZM.3F&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Building ZoneMinder ==&lt;br /&gt;
&lt;br /&gt;
=== How do I build for X10 support? ===&lt;br /&gt;
&lt;br /&gt;
You do not need to rebuild ZM for X10 support. You will need to install the perl module and switch on X10 in the options, then restart. Installing the perl module is covered in the README amongst other places but in summary, do:&lt;br /&gt;
&lt;br /&gt;
 perl -MCPAN -eshell&lt;br /&gt;
 install X10::ActiveHome&lt;br /&gt;
 quit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Extending ZoneMinder ==&lt;br /&gt;
&lt;br /&gt;
=== How can I get ZM to do different things at different times of day or week? ===&lt;br /&gt;
If you want to configure ZoneMinder to do motion detection during the day and just record at night, for example, you will need to use ZoneMinder &amp;#039;run states&amp;#039;. A run state is a particular configuration of monitor functions that you want to use at any time.&lt;br /&gt;
&lt;br /&gt;
To save a run state you should first configure your monitors for Modect, Record, Monitor etc as you would want them during one of the times of day. Then click on the running state link at the top of the Console view. This will usually say &amp;#039;Running&amp;#039; or &amp;#039;Stopped&amp;#039;. You will then be able to save the current state and give it a name, &amp;#039;Daytime&amp;#039; for example. Now configure your monitors how you would want them during other times of day and save that, for instance as &amp;#039;Nighttime&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Now you can switch between these two states by selecting them from the same dialog you saved them, or from the command line from issue the command &amp;#039;&amp;#039;zmpkg.pl &amp;lt;run state&amp;gt;&amp;#039;&amp;#039;, for example &amp;#039;&amp;#039;zmpkg.pl Daytime&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The final step you need to take, is scheduling the time the changes take effect. For this you can use [http://en.wikipedia.org/wiki/Cron cron]. A simple entry to change to the Daylight state at at 8am and to the nighttime state at 8pm would be as follows,&lt;br /&gt;
&amp;lt;pre&amp;gt;0 8 * * * /usr/local/bin/zmpkg.pl Daytime&lt;br /&gt;
0 20 * * * /usr/local/bin/zmpkg.pl Nighttime&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Although the example above describes changing states at different times of day, the same principle can equally be applied to days of the week or other more arbitrary periods.&lt;br /&gt;
&lt;br /&gt;
For an alternative method of time controlling ZoneMinder, forum user &amp;#039;voronwe&amp;#039; has created a more interactive calendar style integration. Details of this can be found in this [http://www.zoneminder.com/forums/viewtopic.php?t=6519 forum thread]. If you would like to find out more about this contribution please post on this thread.&lt;br /&gt;
&lt;br /&gt;
=== How can I use ZoneMinder to trigger something else when there is an alarm? ===&lt;br /&gt;
ZoneMinder includes a perl API which means you can create a script to interact with the ZM shared memory data and use it in your own scripts to react to ZM alarms or to trigger ZM to generate new alarms. Full details are in the README or by doing &amp;#039;perdoc ZoneMinder&amp;#039;, &amp;#039;perldoc ZoneMinder::SharedMem&amp;#039; etc.&lt;br /&gt;
Below is an example script that checks all monitors for alarms and when one occurs, prints a message to the screen. You can add in your own code to make this reaction a little more useful.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/usr/bin/perl -w&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
use ZoneMinder;&lt;br /&gt;
&lt;br /&gt;
$| = 1;&lt;br /&gt;
&lt;br /&gt;
zmDbgInit( &amp;quot;myscript&amp;quot;, level=&amp;gt;0, to_log=&amp;gt;0, to_syslog=&amp;gt;0, to_term=&amp;gt;1 );&lt;br /&gt;
&lt;br /&gt;
my $dbh = DBI-&amp;gt;connect( &amp;quot;DBI:mysql:database=&amp;quot;.ZM_DB_NAME.&amp;quot;;host=&amp;quot;.ZM_DB_HOST, ZM_DB_USER, ZM_DB_PASS );&lt;br /&gt;
&lt;br /&gt;
my $sql = &amp;quot;select M.*, max(E.Id) as LastEventId from Monitors as M left join Events as E on M.Id = E.MonitorId where M.Function != &amp;#039;None&amp;#039; group by (E.MonitorId)&amp;quot;;&lt;br /&gt;
my $sth = $dbh-&amp;gt;prepare_cached( $sql ) or die( &amp;quot;Can&amp;#039;t prepare &amp;#039;$sql&amp;#039;: &amp;quot;.$dbh-&amp;gt;errstr() );&lt;br /&gt;
&lt;br /&gt;
my $res = $sth-&amp;gt;execute() or die( &amp;quot;Can&amp;#039;t execute &amp;#039;$sql&amp;#039;: &amp;quot;.$sth-&amp;gt;errstr() );&lt;br /&gt;
my @monitors;&lt;br /&gt;
while ( my $monitor = $sth-&amp;gt;fetchrow_hashref() )&lt;br /&gt;
{&lt;br /&gt;
    push( @monitors, $monitor );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
while( 1 )&lt;br /&gt;
{&lt;br /&gt;
    foreach my $monitor ( @monitors )&lt;br /&gt;
    {&lt;br /&gt;
        next if ( !zmShmVerify( $monitor ) );&lt;br /&gt;
 &lt;br /&gt;
        if ( my $last_event_id = zmHasAlarmed( $monitor, $monitor-&amp;gt;{LastEventId} ) )&lt;br /&gt;
        {&lt;br /&gt;
            $monitor-&amp;gt;{LastEventId} = $last_event_id;&lt;br /&gt;
            print( &amp;quot;Monitor &amp;quot;.$monitor-&amp;gt;{Name}.&amp;quot; has alarmed\n&amp;quot; );&lt;br /&gt;
            #&lt;br /&gt;
            # Do your stuff here&lt;br /&gt;
            #&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    sleep( 1 );&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Trouble Shooting==&lt;br /&gt;
Here are some things that will help you track down whats wrong.&lt;br /&gt;
This is also how to obtain the info that we need to help you on the forums.&lt;br /&gt;
&lt;br /&gt;
===What logs should I check for errors?===&lt;br /&gt;
ZoneMinder creates its own logs and are usually located in the &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder logs for the RPM packages are located in &amp;lt;tt&amp;gt;/var/log/zm&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Depending on your problem errors can show up in any of these logs but, usually the logs of interest are &amp;lt;tt&amp;gt;zmdc.log&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;zmpkg.log&amp;lt;/tt&amp;gt; if ZM is not able to start.&lt;br /&gt;
&lt;br /&gt;
Now since ZM is dependent on other components to work, you might not find errors in ZM but in the other components.&lt;br /&gt;
Other logs of interest are:&amp;lt;tt&amp;gt;&lt;br /&gt;
*/var/log/messages&lt;br /&gt;
*/var/log/dmesg&lt;br /&gt;
*/var/log/httpd/error_log&amp;lt;/tt&amp;gt; (RedHat/Fedora) or &amp;lt;tt&amp;gt;/var/log/apache2/error_log&lt;br /&gt;
*/var/log/mysqld.log&amp;lt;/tt&amp;gt; (Errors here don&amp;#039;t happen very often but just in case)&lt;br /&gt;
&lt;br /&gt;
If ZM is not functioning, you should always be able to find an error in at least one of these logs. Use the [[tail]] command to get info from the logs. This can be done like so: &lt;br /&gt;
&lt;br /&gt;
  tail -f /var/log/messages /var/log/httpd/error_log /var/log/zm/zm*.log&lt;br /&gt;
&lt;br /&gt;
This will append any data entered to any of these logs to your console screen (&amp;lt;tt&amp;gt;-f&amp;lt;/tt&amp;gt;). To exit, hit [ctrl -c].&lt;br /&gt;
&lt;br /&gt;
===How can I trouble shoot the hardware and/or software?===&lt;br /&gt;
Here are some commands to get information about your hardware. Some commands are distribution dependent.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[lspci]] -vv&amp;lt;/tt&amp;gt; -- Returns lots of detailed info. Check for conflicting interrupts or port assignments. You can sometimes alter interrupts/ ports in bios. Try a different pci slot to get a clue if it is HW conflict (comand provided by the pciutils package).&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[scanpci]] -v&amp;lt;/tt&amp;gt;  -- Gives you information from your hardware EPROM&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[lsusb]] -vv&amp;lt;/tt&amp;gt; -- Returns lots of detail about USB devices (camand provided by usbutils package).&lt;br /&gt;
* &amp;lt;tt&amp;gt;dmesg&amp;lt;/tt&amp;gt; -- Shows you how your hardware initialized (or didn&amp;#039;t) on boot-up. You will get the most use of this.&lt;br /&gt;
* &amp;lt;tt&amp;gt;v4l-info&amp;lt;/tt&amp;gt; -- to see how driver is talking to card. look for unusual values.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[modinfo bttv]]&amp;lt;/tt&amp;gt; -- some bttv driver stats.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[zmu]]  -m 0 -q -v&amp;lt;/tt&amp;gt; -- Returns various information regarding a monitor configuration.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[ipcs]] &amp;lt;/tt&amp;gt;  -- Provides information on the ipc facilities for which the calling process has read acccess.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[ipcrm]] &amp;lt;/tt&amp;gt;  -- The ipcrm command can be used to remove an IPC object from the kernel.&lt;br /&gt;
&lt;br /&gt;
===I am getting messages about a backtrace in my logs, what do I do?===&lt;br /&gt;
If you are seeing entries in your log like the following&lt;br /&gt;
&amp;lt;pre&amp;gt;Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6 [0x3347230210]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6(memset+0xce) [0x334727684e]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x40ee9a]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x419946]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x4213cf]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma(cos+0x35c) [0x404674]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6(__libc_start_main+0xf4) [0x334721da44]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma(cos+0xd1) [0x4043e9]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: INF [Backtrace complete]&amp;lt;/pre&amp;gt;&lt;br /&gt;
then you can help diagnose the problem by running a special command to translate the hex addresses into helpful information. This command is called addr2line and you can type &amp;#039;man addr2line&amp;#039; for more information.&lt;br /&gt;
Basically addr2line takes two sets of parameters, the first is the name of the binary file, and the second is a list of addresses. Both of these pieces of information are displayed in the logs. The filename is the first part after the &amp;#039;Backtrace:&amp;#039; tag, in this case /usr/local/bin/zma, though it may well be different in your case. Some of the lines refer to libraries rather than the zma executable but those can be ignored for now, the important part is noting which ZM binary is involved. The binary file is passed in following the -e flag. The addresses to pass to addr2line are those contained in the &amp;#039;[]&amp;#039; pairs. Again you can ignore those that are on a line that refers to a library but it will not hurt if you include them.&lt;br /&gt;
So in the example above, the command would be &amp;lt;pre&amp;gt;addr2line -e /usr/local/bin/zma 0x40ee9a 0x419946 0x4213cf 0x404674 0x4043e9&amp;lt;/pre&amp;gt;&lt;br /&gt;
This should then dump out a more symbolic list containing source file names and line numbers, and it is this information which will be helpful if posted to the forums. Sometimes addr2line fails to produce useful output. This is usually because either the problem is so severe that it has corrupted the stack and prevented useful information from being displayed, or that you have either compiled ZM without the -g flag for debug, or you have stripped the binaries of symbol information after installation. This this case you would need to rebuild temporarily with debug enabled for the information to be useful.&lt;br /&gt;
&lt;br /&gt;
===How do I repair the MySQL Database?===&lt;br /&gt;
There is two ways to go about this. In most cases you can run from the command prompt -&amp;gt;&lt;br /&gt;
* mysqlcheck --all-databases --auto-repair -p&amp;#039;&amp;#039;&amp;#039;your_database_password&amp;#039;&amp;#039;&amp;#039; -u &amp;#039;&amp;#039;&amp;#039;your_databse_user&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If that does not work then you will have to make sure that ZoneMinder is stopped then run the following (nothing should be using the database while running this and you will have to adjust for your correct path if it is different). -&amp;gt;&lt;br /&gt;
* myisamchk --silent --force --fast --update-state -O key_buffer=64M -O sort_buffer=64M -O read_buffer=1M -O write_buffer=1M /var/lib/mysql/*/*.MYI &lt;br /&gt;
&lt;br /&gt;
===I upgraded by distribution and ZM stopped working===&lt;br /&gt;
Some possibilties (Incomplete list and subject to correction)&lt;br /&gt;
#[[/usr/local/bin/zmfix: /usr/lib/libmysqlclient.so.15: version `MYSQL_5.0&amp;#039; not found (required by /usr/local/bin/zmfix)]]  :: Solution: Recompile and reinstall Zoneminder.&lt;br /&gt;
Any time you update a major version that ZoneMinder depends on, you need to recompile ZoneMinder.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Managing_Load&amp;diff=1758</id>
		<title>Managing Load</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Managing_Load&amp;diff=1758"/>
		<updated>2006-10-27T20:33:18Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A guide to managing system load with ZoneMinder&lt;br /&gt;
&amp;#039;&amp;#039;(Written with IP Cameras in mind)&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zoneminder is a superb application in every way, but it does a job that needs a lot of horsepower especially when using multiple IP cameras. IP Cams require an extra level of processing to analogue cards as the jpg or mjpeg images need to be decoded before analysing. This needs grunt. If you have lots of cameras, you need lots of grunt.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why do ZM need so much grunt?&lt;br /&gt;
Think what Zoneminder is actually doing. In modect mode ZM is:&lt;br /&gt;
1. Fetching a jpeg from the camera. (Either in single part or multipart stream)&lt;br /&gt;
2. Decoding the jpeg image. &lt;br /&gt;
3. Comparing the zoned selections to the previous image or images and applying rules.&lt;br /&gt;
4. If in alarm state, writing that image to the disk and updating the mysql database.&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;re capturing at five frames per second, the above is repeated five times every second, multiplied by the number of cameras. Decoding the images is what takes the real power from the processor and this is the main reason why analogue cameras which present an image ready-decoded in memory take less work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;How do I know if my computer is overloaded?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
If your CPU is running at 100% all the time, it&amp;#039;s probably overloaded (or running at exact optimisation). If the load is consistently high (over 10.0 for a single processor) then Bad Things happen - like lost frames, unrecorded events etc. Occasional peaks are fine, normal and nothing to worry about.&lt;br /&gt;
&lt;br /&gt;
Zoneminder runs on Linux, Linux measures system load using &amp;quot;load&amp;quot;, which is complicated but gives a rough guide on what the computer is doing at any given time. Zoneminder shows Load on the main page (top right) as well as disk space. Typing &amp;quot;uptime&amp;quot; on the command line will give a similar guide, but with three figures to give a fuller measure of what&amp;#039;s happening over a period of time but for the best guide to see what&amp;#039;s happening, install &amp;quot;htop&amp;quot; - which gives easy to read graphs for load, memory and cpu usage.&lt;br /&gt;
&lt;br /&gt;
A load of 1.0 means the processor has &amp;quot;just enough to do right now&amp;quot;. Also worth noting that a load of 4.0 means exactly the same for a quad processor machine - each number equals a single processor&amp;#039;s workload. A very high load can be fine on a computer that has a stacked workload - such as a machine sending out bulk emails, or working its way through a knotty problem; it&amp;#039;ll just keep churning away until it&amp;#039;s done. However - Zoneminder needs to process information in real time so it can&amp;#039;t afford to stack its jobs, it needs to deal with them right away.&lt;br /&gt;
&lt;br /&gt;
For a better and full explanation of Load: http://en.wikipedia.org/wiki/Load_%28computing%29&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;My load is too high, how can I reduce it?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Zoneminder is /very/ tweakable and it&amp;#039;s possible to tune it to compromise. The following are good things to try, in no particular order;&lt;br /&gt;
&lt;br /&gt;
Change the jpeg libraries. In most distributions Linux uses standard jpeg libraries which although fine for most things, don&amp;#039;t use the MMX functions in nearly all modern processors. Check whether your cpu supports mmx by running &amp;quot;cpuid |grep MMX&amp;quot; which should give you a line or two along the lines of &amp;quot;MMX instructions&amp;quot;. If so, give the libs a try. Most people report their load halves simply by using these libs. http://www.zoneminder.com/forums/viewtopic.php?t=6419 gives more info. Nobody&amp;#039;s posted there to say it broke their system... Yet.&lt;br /&gt;
&lt;br /&gt;
If your camera allows you to change image size, think whether you can get away with smaller images. Smaller pics = less load. 320x240 is usually ok for close-up corridor shots.&lt;br /&gt;
&lt;br /&gt;
Go Black and White. Colour pictures use twice to three times the CPU, memory and diskspace but give little benefit to identification.&lt;br /&gt;
&lt;br /&gt;
Reduce frames per second. Halve the fps, halve the workload. If your camera supports fps throttling (Axis do), try that - saves ZM having to drop frames from a stream. 2-5 fps seems to be widely used.&lt;br /&gt;
&lt;br /&gt;
Experiment with using jpeg instead of mjpeg. Some users have reported it gives better performance, but YMMV.&lt;br /&gt;
&lt;br /&gt;
Tweak the zones. Keep them as small and as few as possible. Stick to one zone unless you really need more.&lt;br /&gt;
&lt;br /&gt;
Schedule. If you are running a linux system at near capacity, you&amp;#039;ll need to think carefully about things like backups and scheduled tasks. updatedb - the process which maintains a file database so that &amp;#039;locate&amp;#039; works quickly, is normally scheduled to run once a day and if on a busy system can create a heavy increase on the load. The same is true for scheduled backups, especially those which compress the files. Re-schedule these tasks to a time when the cpu is less likely to be busy, if possible - and also use the &amp;quot;nice&amp;quot; command to reduce their priority. (crontab and /etc/cron.daily/ are good places to start)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More expensive options:&lt;br /&gt;
&lt;br /&gt;
Increase RAM. If your system is having to use disk swap it will HUGELY impact performance in all areas. Again, htop is a good monitor - but first you need to understand that because Linux is using all the memory, it doesn&amp;#039;t mean it needs it all - linux handles ram very differently to Windows/DOS and caches stuff. htop will show cached ram as a different colour in the memory graph. Also check that you&amp;#039;re actually using a high memory capable kernel - many kernels don&amp;#039;t enable high memory by default. &lt;br /&gt;
&lt;br /&gt;
Faster CPU. Simple but effective. Zoneminder also works very well with multiple processor systems out of the box (if SMP is enabled in your kernel). The load of different cameras is spread across the processors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;What about disks and bandwidth?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
In most modern pc-based servers, disk I/O is more than adequate for the speeds involved in capturing from multiple cameras in most scenarios.&lt;br /&gt;
&lt;br /&gt;
A typical 100mbit LAN will cope with most setups easily. If you&amp;#039;re feeding from cameras over smaller or internet links, obviously fps will be much lower.&lt;br /&gt;
&lt;br /&gt;
Disk and Bandwidth calculators are referenced on the Zoneminder wiki here: http://www.zoneminder.com/wiki/index.php/FAQ#How_much_Hard_Disk_Space_.2F_Bandwidth_do_I_need_for_ZM.3F&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=HOWTO&amp;diff=1757</id>
		<title>HOWTO</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=HOWTO&amp;diff=1757"/>
		<updated>2006-10-27T20:33:07Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Distributions ==&lt;br /&gt;
* [[Gentoo Install|Prepare a Gentoo Installation for ZoneMinder]]&lt;br /&gt;
&lt;br /&gt;
== Third Party ==&lt;br /&gt;
* [[zm4ms playback|zm4ms playback and mysql access in livecd]]&lt;br /&gt;
&lt;br /&gt;
== Managing Load ==&lt;br /&gt;
* [[Managing Load|How to manage system load]]&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Zmload&amp;diff=1756</id>
		<title>Zmload</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Zmload&amp;diff=1756"/>
		<updated>2006-10-27T20:29:33Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A guide to managing system load with ZoneMinder&lt;br /&gt;
&amp;#039;&amp;#039;(Written with IP Cameras in mind)&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zoneminder is a superb application in every way, but it does a job that needs a lot of horsepower especially when using multiple IP cameras. IP Cams require an extra level of processing to analogue cards as the jpg or mjpeg images need to be decoded before analysing. This needs grunt. If you have lots of cameras, you need lots of grunt.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why do ZM need so much grunt?&lt;br /&gt;
Think what Zoneminder is actually doing. In modect mode ZM is:&lt;br /&gt;
1. Fetching a jpeg from the camera. (Either in single part or multipart stream)&lt;br /&gt;
2. Decoding the jpeg image. &lt;br /&gt;
3. Comparing the zoned selections to the previous image or images and applying rules.&lt;br /&gt;
4. If in alarm state, writing that image to the disk and updating the mysql database.&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;re capturing at five frames per second, the above is repeated five times every second, multiplied by the number of cameras. Decoding the images is what takes the real power from the processor and this is the main reason why analogue cameras which present an image ready-decoded in memory take less work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;How do I know if my computer is overloaded?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
If your CPU is running at 100% all the time, it&amp;#039;s probably overloaded (or running at exact optimisation). If the load is consistently high (over 10.0 for a single processor) then Bad Things happen - like lost frames, unrecorded events etc. Occasional peaks are fine, normal and nothing to worry about.&lt;br /&gt;
&lt;br /&gt;
Zoneminder runs on Linux, Linux measures system load using &amp;quot;load&amp;quot;, which is complicated but gives a rough guide on what the computer is doing at any given time. Zoneminder shows Load on the main page (top right) as well as disk space. Typing &amp;quot;uptime&amp;quot; on the command line will give a similar guide, but with three figures to give a fuller measure of what&amp;#039;s happening over a period of time but for the best guide to see what&amp;#039;s happening, install &amp;quot;htop&amp;quot; - which gives easy to read graphs for load, memory and cpu usage.&lt;br /&gt;
&lt;br /&gt;
A load of 1.0 means the processor has &amp;quot;just enough to do right now&amp;quot;. Also worth noting that a load of 4.0 means exactly the same for a quad processor machine - each number equals a single processor&amp;#039;s workload. A very high load can be fine on a computer that has a stacked workload - such as a machine sending out bulk emails, or working its way through a knotty problem; it&amp;#039;ll just keep churning away until it&amp;#039;s done. However - Zoneminder needs to process information in real time so it can&amp;#039;t afford to stack its jobs, it needs to deal with them right away.&lt;br /&gt;
&lt;br /&gt;
For a better and full explanation of Load: http://en.wikipedia.org/wiki/Load_%28computing%29&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;My load is too high, how can I reduce it?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Zoneminder is /very/ tweakable and it&amp;#039;s possible to tune it to compromise. The following are good things to try, in no particular order;&lt;br /&gt;
&lt;br /&gt;
Change the jpeg libraries. In most distributions Linux uses standard jpeg libraries which although fine for most things, don&amp;#039;t use the MMX functions in nearly all modern processors. Check whether your cpu supports mmx by running &amp;quot;cpuid |grep MMX&amp;quot; which should give you a line or two along the lines of &amp;quot;MMX instructions&amp;quot;. If so, give the libs a try. Most people report their load halves simply by using these libs. http://www.zoneminder.com/forums/viewtopic.php?t=6419 gives more info. Nobody&amp;#039;s posted there to say it broke their system... Yet.&lt;br /&gt;
&lt;br /&gt;
If your camera allows you to change image size, think whether you can get away with smaller images. Smaller pics = less load. 320x240 is usually ok for close-up corridor shots.&lt;br /&gt;
&lt;br /&gt;
Go Black and White. Colour pictures use twice to three times the CPU, memory and diskspace but give little benefit to identification.&lt;br /&gt;
&lt;br /&gt;
Reduce frames per second. Halve the fps, halve the workload. If your camera supports fps throttling (Axis do), try that - saves ZM having to drop frames from a stream. 2-5 fps seems to be widely used.&lt;br /&gt;
&lt;br /&gt;
Experiment with using jpeg instead of mjpeg. Some users have reported it gives better performance, but YMMV.&lt;br /&gt;
&lt;br /&gt;
Tweak the zones. Keep them as small and as few as possible. Stick to one zone unless you really need more.&lt;br /&gt;
&lt;br /&gt;
Schedule. If you are running a linux system at near capacity, you&amp;#039;ll need to think carefully about things like backups and scheduled tasks. updatedb - the process which maintains a file database so that &amp;#039;locate&amp;#039; works quickly, is normally scheduled to run once a day and if on a busy system can create a heavy increase on the load. The same is true for scheduled backups, especially those which compress the files. Re-schedule these tasks to a time when the cpu is less likely to be busy, if possible - and also use the &amp;quot;nice&amp;quot; command to reduce their priority. (crontab and /etc/cron.daily/ are good places to start)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More expensive options:&lt;br /&gt;
&lt;br /&gt;
Increase RAM. If your system is having to use disk swap it will HUGELY impact performance in all areas. Again, htop is a good monitor - but first you need to understand that because Linux is using all the memory, it doesn&amp;#039;t mean it needs it all - linux handles ram very differently to Windows/DOS and caches stuff. htop will show cached ram as a different colour in the memory graph. Also check that you&amp;#039;re actually using a high memory capable kernel - many kernels don&amp;#039;t enable high memory by default. &lt;br /&gt;
&lt;br /&gt;
Faster CPU. Simple but effective. Zoneminder also works very well with multiple processor systems out of the box (if SMP is enabled in your kernel). The load of different cameras is spread across the processors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;What about disks and bandwidth?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
In most modern pc-based servers, disk I/O is more than adequate for the speeds involved in capturing from multiple cameras in most scenarios.&lt;br /&gt;
&lt;br /&gt;
A typical 100mbit LAN will cope with most setups easily. If you&amp;#039;re feeding from cameras over smaller or internet links, obviously fps will be much lower.&lt;br /&gt;
&lt;br /&gt;
Disk and Bandwidth calculators are referenced on the Zoneminder wiki here: http://www.zoneminder.com/wiki/index.php/FAQ#How_much_Hard_Disk_Space_.2F_Bandwidth_do_I_need_for_ZM.3F&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=HOWTO&amp;diff=1755</id>
		<title>HOWTO</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=HOWTO&amp;diff=1755"/>
		<updated>2006-10-27T20:27:45Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Distributions ==&lt;br /&gt;
* [[Gentoo Install|Prepare a Gentoo Installation for ZoneMinder]]&lt;br /&gt;
&lt;br /&gt;
== Third Party ==&lt;br /&gt;
* [[zm4ms playback|zm4ms playback and mysql access in livecd]]&lt;br /&gt;
&lt;br /&gt;
== Managing Load ==&lt;br /&gt;
* [[zmload|How to manage system load]]&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=1610</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=1610"/>
		<updated>2006-07-20T07:55:10Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== ZoneMinder Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
This is the new FAQ page. I will be migrating the existing FAQs here as soon as possible. In the meantime the old FAQ page is available [http://www.zoneminder.com/faq.html here].&lt;br /&gt;
&lt;br /&gt;
Feel free to contribute any FAQs that you think are missing.&lt;br /&gt;
&lt;br /&gt;
===How can I stop ZoneMinder filling up my disk?===&lt;br /&gt;
&lt;br /&gt;
Recent versions of ZoneMinder come with a filter you can use for this purpose already included. However by default it is not enabled for event deletion.&lt;br /&gt;
&lt;br /&gt;
The filter is called PurgeWhenFull and to find it, choose one of the event counts from the console page, for instance events in the last hour, for one of your monitors. This will bring up an event listing and a filter window. In the filter window there is a dropdown select box labelled &amp;#039;Use Filter&amp;#039;, that lets your select a saved filter. Select &amp;#039;PurgeWhenFull&amp;#039; and it will load that filter. Make any modifications you might want, such as the percentage full you want it to kick in, or how many events to delete at a time (it will repeat the filter as many times as needed to clear the space, but will only delete this many events each time to get there). Then click on &amp;#039;Save&amp;#039; which will bring up a new window. Make sure the &amp;#039;Automatically delete&amp;#039; box is checked and press save to save your filter. This will then run in the background to keep your disk within those limits.&lt;br /&gt;
&lt;br /&gt;
After you&amp;#039;ve done that, you changes will automatically be loaded into zmfilter within a few minutes. Check the zmfilter.log file to make sure it is running as sometimes missing perl modules mean that it nevers runs but people don&amp;#039;t always realise.&lt;br /&gt;
&lt;br /&gt;
===What does a &amp;#039;Can&amp;#039;t shmget: Invalid argument&amp;#039; error in my logs mean?===&lt;br /&gt;
&lt;br /&gt;
This error is discussed in the README in the following excerpt:-&lt;br /&gt;
&amp;#039;&amp;#039;...this is caused by an attempt to allocate an amount of shared memory greater than your system can handle. The size it requests is based on the following formula, ring buffer size x image width x image height x 3 (for 24 bit images) + a bit of overhead.&lt;br /&gt;
&lt;br /&gt;
So if for instance you were using 24bit 640x480 then this would come to about 92Mb if you are using the default buffer size of 100. If this is too large then you can either reduce the image or buffer sizes or increase the maximum amount of shared memory available. If you are using RedHat then you can get details on how to change these settings at http://www.redhat.com/docs/manuals/database/RHDB-2.1-Manual/admin_user/kernel-resources.html&lt;br /&gt;
&lt;br /&gt;
You should be able to use a similar procedure  with other distributions to modify the shared memory pool without kernel recompilations though in some cases this may be necessary. Note, this error also sometimes occurs if you have an old shared memory segment lying around from a previous run that is too small. Use the ipcs and ipcrm system commands to check and remove it if necessary.&amp;#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You can often find out how much shared memory is available by typing the following :-&lt;br /&gt;
&lt;br /&gt;
cat /proc/sys/kernel/shmall&lt;br /&gt;
&lt;br /&gt;
and the most you can allocate in one go :-&lt;br /&gt;
&lt;br /&gt;
cat /proc/sys/kernel/shmmax&lt;br /&gt;
&lt;br /&gt;
To change these values type (for example) :-&lt;br /&gt;
&lt;br /&gt;
echo 134217728 &amp;gt;/proc/sys/kernel/shmall &amp;amp;&amp;amp; echo 134217728 &amp;gt;/proc/sys/kernel/shmmax&lt;br /&gt;
&lt;br /&gt;
However be aware that sometimes you will only need to change the shmmax value as shmall is often large enough. Also changing these values in this way is only effective until your machine is rebooted. To change them permanently you will need to edit /etc/sysctl.conf and add the following lines (for example) :-&lt;br /&gt;
&lt;br /&gt;
kernel.shmall = 134217728&lt;br /&gt;
&lt;br /&gt;
kernel.shmmax = 134217728&lt;br /&gt;
&lt;br /&gt;
Which will enforce the changes the next time your machine is restarted.&lt;br /&gt;
&lt;br /&gt;
===Why is ZoneMinder using so much CPU?===&lt;br /&gt;
&lt;br /&gt;
The various elements of ZoneMinder can be involved in some pretty intensive activity, especially while analysing images for motion. However generally this should not overwhelm your machine unless it is very old or underpowered.&lt;br /&gt;
&lt;br /&gt;
There are a number of specific reasons why processor loads can be high either by design or by accident. To figure out exactly what is causing it in your circumstances requires a bit of expermentation.&lt;br /&gt;
&lt;br /&gt;
The main causes are.&lt;br /&gt;
&lt;br /&gt;
1. Using a video palette other than greyscale or RGB24. This can cause a relatively minor performace hit, though still significant. Although some cameras and cards require using planar palettes ZM currently doesn&amp;#039;t support this format internally (yet) and each frame is converted to an RGB representation prior to processing. Unless you have compelling reasons for using YUV or reduced RGB type palettes such as hitting USB transfer limits I would experiment to see if RGB24 or greyscale is quicker. Put your monitors into &amp;#039;Monitor&amp;#039; mode so that only the capture daemons are running and monitor the process load of these (the &amp;#039;zmc&amp;#039; processes) using top. Try it with various palettes to see if it makes a difference.&lt;br /&gt;
&lt;br /&gt;
2. Big image sizes. A image of 640x480 requires at least four times the processing of a 320x240 image. Experiment with different sizes to see what effect it may have. Sometimes a large image is just two interlaced smaller frames so has no real benefit anyway.&lt;br /&gt;
&lt;br /&gt;
3. Capture frame rates. Unless there&amp;#039;s a compelling reason in your case there is often little benefit in running cameras at 25fps when 5-10fps would often get you results just as good. Try changing your monitor settings to limit your cameras to lower frames rates. You can still configure ZM to ignore these limits and capture as fast as possible when an event is detected.&lt;br /&gt;
&lt;br /&gt;
4. Run function. Obviously running in Record or Mocord modes or in Modect with lots of events generates a lot of DB and file activity and so CPU and load will increase.&lt;br /&gt;
&lt;br /&gt;
5. Basic default detection zones. By default when a camera is added one detection zone is added which covers the whole image with a default set of parameters. If you camera covers a view in which various regions are unlikely to generate a valid alarm (ie the sky) then I would experiment with reducing the zone sizes or adding inactive zones to blank out areas you don&amp;#039;t want to monitor. Additionally the actual settings of the zone themselves may not be optimal. When doing motion detection the number of changed pixels above a threshold is examined, then this is filter, then contiguous regions are calculated to see if an alarm is generated. If any maximum or minimum threshold is exceeded according to your zone settings at any time the calculation stops. If your settings always result in the calculations going through to the last stage before being failed then additional CPU time is used unnecessarily. Make sure your maximum and minimumzone thresholds are set to sensible values and experiment by switching RECORD_EVENT_STATS on and seeing what the actual values of alarmed pixels etc are during sample events.&lt;br /&gt;
&lt;br /&gt;
6. Optimise your settings. After you&amp;#039;ve got some settings you&amp;#039;re happy with then switching off RECORD_EVENT_STATS will prevent the statistics being written to the database which saves some time. Other settings which might make a difference are ZM_FAST_RGB_DIFFS, ZM_OPT_FRAME_SERVER and the JPEG_xxx_QUALITY ones.&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;m sure there are other things which might make a difference such as what else you have running on the box and memory sizes (make sure there&amp;#039;s no swapping going on). Also speed of disk etc will make some difference during event capture and also if you are watching the whole time then you may have a bunch of zms processes running also.&lt;br /&gt;
&lt;br /&gt;
I think the biggest factors are image size, colour depth and capture rate. Having said that I also don&amp;#039;t always know why you get certains results from &amp;#039;top&amp;#039;. For instance if I have a &amp;#039;zma&amp;#039; daemon running for a monitor that is capturing an image. I&amp;#039;ve commented out the actual analysis so all it&amp;#039;s doing is blending the image with the previous one. In colour mode this takes ~11 milliseconds per frame on my system and the camera is capturing at ~10fps. Using &amp;#039;top&amp;#039; this reports the process as using ~5% of CPU and permanently in R(un) state. Changing to greyscale mode the blending takes ~4msec (as you would expect as this is roughly a third of 11) but top reports the process as now with 0% CPU and permanently in S(leep) state. So an actual CPU resource usage change of a factor of 3 causes huge differences in reported CPU usage. I have yet to get to the bottom of this but I suspect it&amp;#039;s to do with scheduling somewhere along the line and that maybe the greyscale processing will fit into one scheduling time slice whereas the colour one won&amp;#039;t but I have no evidence of this yet!&lt;br /&gt;
&lt;br /&gt;
===Why is the timeline view all messed up?===&lt;br /&gt;
&lt;br /&gt;
The timeline view is a new view allowing you to see a graph of alarm activity over time and to quickly scan and home in on events of interest. However this feature is highly complex and still in beta. It is based extensively on HTML div tags, sometimes lots of them. Whilst FireFox is able to render this view successfully other browsers, particular Internet Explorer do not seem able to cope and so present a messed up view, either always or when there are a lot of events.&lt;br /&gt;
Using the timeline view is only recommended when using FireFox, however even then there may be issues.&lt;br /&gt;
&lt;br /&gt;
===How much Hard Disk Space do I need for ZM?===&lt;br /&gt;
Please see [http://217.154.38.122/ZM_Utils/ZM%20storage%20calc%20sheet.xls Storage Calc] in excel format&lt;br /&gt;
&lt;br /&gt;
(How about adding a simple rule of thumb here instead of a dead link?)&lt;br /&gt;
&lt;br /&gt;
===Why don&amp;#039;t all my cameras display when I use the Montage view in FireFox?===&lt;br /&gt;
By default FireFox only supports a small number of simultaneous connections. Using the montage view usually requires one persistent connection for each camera plus intermittant connections for other information such as statuses. You will need to increase the number of allowed connections to use the montage view with more than a small number of cameras. This is a simple process and details of how to do it are available from [http://www.zoneminder.com/forums/viewtopic.php?t=4484 this forum thread]. Certain FireFox extensions such as FasterFox may also help to acehive the same result.&lt;br /&gt;
&lt;br /&gt;
===When I try and run ZoneMinder I get lots of audit permission errors in the logs and it won&amp;#039;t start===&lt;br /&gt;
Many Linux distributions nowadays are built with security in mind. One of the latest methods of achieving this is via SELinux (Secure Linux) which controls who is able to run what in a more precise way then traditional accounting and file based permissions ([http://en.wikipedia.org/wiki/Selinux]).&lt;br /&gt;
If you are seeing entries in your system log like&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;Jun 11 20:44:02 kernel: audit(1150033442.443:226): avc: denied { read } for pid=5068 comm=&amp;quot;uptime&amp;quot; name=&amp;quot;utmp&amp;quot; dev=dm-0 ino=16908345 scontext=user_u:system_r:httpd_sys_script_t tcontext=user_u:object_r:initrc_var_run_t tclass=file&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then it is likely that your system has SELinux enabled and it is preventing ZoneMinder from performaing certain activities. You then have two choices. You can either tune SELinux to permit the required operations or you can disable SELinux entirely which will permit ZoneMinder to run unhindered. Disabling SELinux is usually performed by editing it&amp;#039;s configuration file (e.g., /etc/selinux/config) and then rebooting. However if you run a public server you should read up on the risks associated with disabled Secure Linux before disabling it.&lt;br /&gt;
&lt;br /&gt;
Note that SELinux may cause errors other than those listed above. If you are in any doubt then it can be worth disabling SELinux experimentally to see if it fixes your problem before trying other solutions.&lt;br /&gt;
&lt;br /&gt;
=== How do I enable ZoneMinder&amp;#039;s security? ===&lt;br /&gt;
In the console, click on Options. Check the box next to &amp;quot;ZM_OPT_USE_AUTH&amp;quot;. You will immediately be asked to login. The username is &amp;#039;admin&amp;#039; and the password is &amp;#039;admin&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Manage Users:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
In main console, go to &amp;#039;&amp;#039;&amp;#039;Options-&amp;gt;Users&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==Trouble Shooting==&lt;br /&gt;
Here are some things that will help you track down whats wrong.&lt;br /&gt;
This is also how to obtain the info that we need to help you on the forums.&lt;br /&gt;
&lt;br /&gt;
===What logs should I check for errors?===&lt;br /&gt;
ZoneMinder creates its own logs and are usually located in the /tmp directory. The ZoneMinder logs for the RPM packages are located in /var/log/zm.&lt;br /&gt;
Depending on your problem errors can show up in any of these logs but, usually the logs of interest are zmdc.log and zmpkg.log if ZM is not able to start.&lt;br /&gt;
Now since ZM is dependent on other components to work, you might not find errors in ZM but in the other components.&lt;br /&gt;
Other logs of interest are:&lt;br /&gt;
*/var/log/messages&lt;br /&gt;
*/var/log/dmesg&lt;br /&gt;
*/var/log/httpd/error_log (RedHat/Fedora) or /var/log/apache2/error_log&lt;br /&gt;
*/var/log/mysqld.log (Errors here don&amp;#039;t happen very often but just in case)&lt;br /&gt;
&lt;br /&gt;
If ZM is not functioning, you should always be able to find an error in at least one of these logs. Use the tail command to get info from the logs. This can be done like so: &lt;br /&gt;
&lt;br /&gt;
[[tail]] -f /var/log/messages /var/log/httpd/error_log /var/log/zm/zm*.log &lt;br /&gt;
&lt;br /&gt;
This will append any data entered to any of these logs to your console screen (-f). To exit [ctrl -c].&lt;br /&gt;
&lt;br /&gt;
===How can I trouble shoot the hardware?===&lt;br /&gt;
Here are some commands to get information about your hardware. Some commands are distribution dependent.&lt;br /&gt;
#[[lspci]] -vv  Returns lots of detailed info. Check for conflicting interrupts or port assignments. You can sometimes alter interrupts/ ports in bios. Try a different pci slot to get a clue if it is HW conflict (comand provided by the pciutils package).&lt;br /&gt;
#[[scanpci]] -v  Gives you information from your hardware EPROM&lt;br /&gt;
#[[lsusb]] -vv  Returns lots of detail about USB devices (camand provided by usbutils package).&lt;br /&gt;
#[[dmesg]]  Shows you how your hardware initialized (or didn&amp;#039;t) on boot-up. You will get the most use of this.&lt;br /&gt;
#[[v4l-info]] , to see how driver is talking to card. look for unusual values.&lt;br /&gt;
#[[modinfo bttv]], some bttv driver stats.&lt;br /&gt;
#[[zmu]]  -m 0 -q -v  Returns various information regarding a monitor configuration.&lt;br /&gt;
&lt;br /&gt;
===I upgraded by distribution and ZM stopped working===&lt;br /&gt;
Some possibilties (Incomplete list and subject to correction)&lt;br /&gt;
#[[/usr/local/bin/zmfix: /usr/lib/libmysqlclient.so.15: version `MYSQL_5.0&amp;#039; not found (required by /usr/local/bin/zmfix)]]  :: Solution: Recompile and reinstall Zoneminder.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=1599</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=1599"/>
		<updated>2006-07-06T14:36:15Z</updated>

		<summary type="html">&lt;p&gt;Flasheart: /* What does a &amp;#039;Can&amp;#039;t shmget: Invalid argument&amp;#039; error in my logs mean? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== ZoneMinder Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
This is the new FAQ page. I will be migrating the existing FAQs here as soon as possible. In the meantime the old FAQ page is available [http://www.zoneminder.com/faq.html here].&lt;br /&gt;
&lt;br /&gt;
Feel free to contribute any FAQs that you think are missing.&lt;br /&gt;
&lt;br /&gt;
===How can I stop ZoneMinder filling up my disk?===&lt;br /&gt;
&lt;br /&gt;
Recent versions of ZoneMinder come with a filter you can use for this purpose already included. However by default it is not enabled for event deletion.&lt;br /&gt;
&lt;br /&gt;
The filter is called PurgeWhenFull and to find it, choose one of the event counts from the console page, for instance events in the last hour, for one of your monitors. This will bring up an event listing and a filter window. In the filter window there is a dropdown select box labelled &amp;#039;Use Filter&amp;#039;, that lets your select a saved filter. Select &amp;#039;PurgeWhenFull&amp;#039; and it will load that filter. Make any modifications you might want, such as the percentage full you want it to kick in, or how many events to delete at a time (it will repeat the filter as many times as needed to clear the space, but will only delete this many events each time to get there). Then click on &amp;#039;Save&amp;#039; which will bring up a new window. Make sure the &amp;#039;Automatically delete&amp;#039; box is checked and press save to save your filter. This will then run in the background to keep your disk within those limits.&lt;br /&gt;
&lt;br /&gt;
After you&amp;#039;ve done that, you changes will automatically be loaded into zmfilter within a few minutes. Check the zmfilter.log file to make sure it is running as sometimes missing perl modules mean that it nevers runs but people don&amp;#039;t always realise.&lt;br /&gt;
&lt;br /&gt;
===What does a &amp;#039;Can&amp;#039;t shmget: Invalid argument&amp;#039; error in my logs mean?===&lt;br /&gt;
&lt;br /&gt;
This error is discussed in the README in the following excerpt:-&lt;br /&gt;
&amp;#039;&amp;#039;...this is caused by an attempt to allocate an amount of shared memory greater than your system can handle. The size it requests is based on the following formula, ring buffer size x image width x image height x 3 (for 24 bit images) + a bit of overhead.&lt;br /&gt;
&lt;br /&gt;
So if for instance you were using 24bit 640x480 then this would come to about 92Mb if you are using the default buffer size of 100. If this is too large then you can either reduce the image or buffer sizes or increase the maximum amount of shared memory available. If you are using RedHat then you can get details on how to change these settings at http://www.redhat.com/docs/manuals/database/RHDB-2.1-Manual/admin_user/kernel-resources.html&lt;br /&gt;
&lt;br /&gt;
You should be able to use a similar procedure  with other distributions to modify the shared memory pool without kernel recompilations though in some cases this may be necessary. Note, this error also sometimes occurs if you have an old shared memory segment lying around from a previous run that is too small. Use the ipcs and ipcrm system commands to check and remove it if necessary.&amp;#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You can often find out how much shared memory is available by typing the following :-&lt;br /&gt;
&lt;br /&gt;
cat /proc/sys/kernel/shmall&lt;br /&gt;
&lt;br /&gt;
and the most you can allocate in one go :-&lt;br /&gt;
&lt;br /&gt;
cat /proc/sys/kernel/shmmax&lt;br /&gt;
&lt;br /&gt;
To change these values type (for example) :-&lt;br /&gt;
&lt;br /&gt;
echo 134217728 &amp;gt;/proc/sys/kernel/shmall &amp;amp;&amp;amp; echo 134217728 &amp;gt;/proc/sys/kernel/shmmax&lt;br /&gt;
&lt;br /&gt;
However be aware that sometimes you will only need to change the shmmax value as shmall is often large enough. Also changing these values in this way is only effective until your machine is rebooted. To change them permanently you will need to edit /etc/sysctl.conf and add the following lines (for example) :-&lt;br /&gt;
&lt;br /&gt;
kernel.shmall = 134217728&lt;br /&gt;
&lt;br /&gt;
kernel.shmmax = 134217728&lt;br /&gt;
&lt;br /&gt;
Which will enforce the changes the next time your machine is restarted.&lt;br /&gt;
&lt;br /&gt;
===Why is ZoneMinder using so much CPU?===&lt;br /&gt;
&lt;br /&gt;
The various elements of ZoneMinder can be involved in some pretty intensive activity, especially while analysing images for motion. However generally this should not overwhelm your machine unless it is very old or underpowered.&lt;br /&gt;
&lt;br /&gt;
There are a number of specific reasons why processor loads can be high either by design or by accident. To figure out exactly what is causing it in your circumstances requires a bit of expermentation.&lt;br /&gt;
&lt;br /&gt;
The main causes are.&lt;br /&gt;
&lt;br /&gt;
1. Using a video palette other than greyscale or RGB24. This can cause a relatively minor performace hit, though still significant. Although some cameras and cards require using planar palettes ZM currently doesn&amp;#039;t support this format internally (yet) and each frame is converted to an RGB representation prior to processing. Unless you have compelling reasons for using YUV or reduced RGB type palettes such as hitting USB transfer limits I would experiment to see if RGB24 or greyscale is quicker. Put your monitors into &amp;#039;Monitor&amp;#039; mode so that only the capture daemons are running and monitor the process load of these (the &amp;#039;zmc&amp;#039; processes) using top. Try it with various palettes to see if it makes a difference.&lt;br /&gt;
&lt;br /&gt;
2. Big image sizes. A image of 640x480 requires at least four times the processing of a 320x240 image. Experiment with different sizes to see what effect it may have. Sometimes a large image is just two interlaced smaller frames so has no real benefit anyway.&lt;br /&gt;
&lt;br /&gt;
3. Capture frame rates. Unless there&amp;#039;s a compelling reason in your case there is often little benefit in running cameras at 25fps when 5-10fps would often get you results just as good. Try changing your monitor settings to limit your cameras to lower frames rates. You can still configure ZM to ignore these limits and capture as fast as possible when an event is detected.&lt;br /&gt;
&lt;br /&gt;
4. Run function. Obviously running in Record or Mocord modes or in Modect with lots of events generates a lot of DB and file activity and so CPU and load will increase.&lt;br /&gt;
&lt;br /&gt;
5. Basic default detection zones. By default when a camera is added one detection zone is added which covers the whole image with a default set of parameters. If you camera covers a view in which various regions are unlikely to generate a valid alarm (ie the sky) then I would experiment with reducing the zone sizes or adding inactive zones to blank out areas you don&amp;#039;t want to monitor. Additionally the actual settings of the zone themselves may not be optimal. When doing motion detection the number of changed pixels above a threshold is examined, then this is filter, then contiguous regions are calculated to see if an alarm is generated. If any maximum or minimum threshold is exceeded according to your zone settings at any time the calculation stops. If your settings always result in the calculations going through to the last stage before being failed then additional CPU time is used unnecessarily. Make sure your maximum and minimumzone thresholds are set to sensible values and experiment by switching RECORD_EVENT_STATS on and seeing what the actual values of alarmed pixels etc are during sample events.&lt;br /&gt;
&lt;br /&gt;
6. Optimise your settings. After you&amp;#039;ve got some settings you&amp;#039;re happy with then switching off RECORD_EVENT_STATS will prevent the statistics being written to the database which saves some time. Other settings which might make a difference are ZM_FAST_RGB_DIFFS, ZM_OPT_FRAME_SERVER and the JPEG_xxx_QUALITY ones.&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;m sure there are other things which might make a difference such as what else you have running on the box and memory sizes (make sure there&amp;#039;s no swapping going on). Also speed of disk etc will make some difference during event capture and also if you are watching the whole time then you may have a bunch of zms processes running also.&lt;br /&gt;
&lt;br /&gt;
I think the biggest factors are image size, colour depth and capture rate. Having said that I also don&amp;#039;t always know why you get certains results from &amp;#039;top&amp;#039;. For instance if I have a &amp;#039;zma&amp;#039; daemon running for a monitor that is capturing an image. I&amp;#039;ve commented out the actual analysis so all it&amp;#039;s doing is blending the image with the previous one. In colour mode this takes ~11 milliseconds per frame on my system and the camera is capturing at ~10fps. Using &amp;#039;top&amp;#039; this reports the process as using ~5% of CPU and permanently in R(un) state. Changing to greyscale mode the blending takes ~4msec (as you would expect as this is roughly a third of 11) but top reports the process as now with 0% CPU and permanently in S(leep) state. So an actual CPU resource usage change of a factor of 3 causes huge differences in reported CPU usage. I have yet to get to the bottom of this but I suspect it&amp;#039;s to do with scheduling somewhere along the line and that maybe the greyscale processing will fit into one scheduling time slice whereas the colour one won&amp;#039;t but I have no evidence of this yet!&lt;br /&gt;
&lt;br /&gt;
===Why is the timeline view all messed up?===&lt;br /&gt;
&lt;br /&gt;
The timeline view is a new view allowing you to see a graph of alarm activity over time and to quickly scan and home in on events of interest. However this feature is highly complex and still in beta. It is based extensively on HTML div tags, sometimes lots of them. Whilst FireFox is able to render this view successfully other browsers, particular Internet Explorer do not seem able to cope and so present a messed up view, either always or when there are a lot of events.&lt;br /&gt;
Using the timeline view is only recommended when using FireFox, however even then there may be issues.&lt;br /&gt;
&lt;br /&gt;
===How much Hard Disk Space do I need for ZM?===&lt;br /&gt;
Please see [http://217.154.38.122:8080/ZM_Utils/ZM%20storage%20calc%20sheet.xls Storage Calc] in excel format&lt;br /&gt;
&lt;br /&gt;
(How about adding a simple rule of thumb here instead of a dead link?)&lt;br /&gt;
&lt;br /&gt;
===Why don&amp;#039;t all my cameras display when I use the Montage view in FireFox?===&lt;br /&gt;
By default FireFox only supports a small number of simultaneous connections. Using the montage view usually requires one persistent onnection for each camera plus intermittant connections for other information such as statuses. You will need to increase the number of allowed connections to use the montage view with more than a small number of cameras. This is a simple process and details of how to do it are available from [http://www.zoneminder.com/forums/viewtopic.php?t=4484 this forum thread]. Certain FireFox extensions such as FasterFox may also help to acehive the same result.&lt;br /&gt;
&lt;br /&gt;
===When I try and run ZoneMinder I get lots of audit permission errors in the logs and it won&amp;#039;t start===&lt;br /&gt;
Many Linux distributions nowadays are built with security in mind. One of the latest methods of achieving this is via SELinux (Secure Linux) which controls who is able to run what in a more precise way then traditional accounting and file based permissions ([http://en.wikipedia.org/wiki/Selinux]).&lt;br /&gt;
If you are seeing entries in your system log like&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;Jun 11 20:44:02 kernel: audit(1150033442.443:226): avc: denied { read } for pid=5068 comm=&amp;quot;uptime&amp;quot; name=&amp;quot;utmp&amp;quot; dev=dm-0 ino=16908345 scontext=user_u:system_r:httpd_sys_script_t tcontext=user_u:object_r:initrc_var_run_t tclass=file&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then it is likely that your system has SELinux enabled and it is preventing ZoneMinder from performaing certain activities. You then have two choices. You can either tune SELinux to permit the required operations or you can disable SELinux entirely which will permit ZoneMinder to run unhindered. Disabling SELinux is usually performed by editing it&amp;#039;s configuration file (e.g., /etc/selinux/config) and then rebooting. However if you run a public server you should read up on the risks associated with disabled Secure Linux before disabling it.&lt;br /&gt;
&lt;br /&gt;
Note that SELinux may cause errors other than those listed above. If you are in any doubt then it can be worth disabling SELinux experimentally to see if it fixes your problem before trying other solutions.&lt;br /&gt;
&lt;br /&gt;
=== How do I enable ZoneMinder&amp;#039;s security? ===&lt;br /&gt;
In the console, click on Options. Check the box next to &amp;quot;ZM_OPT_USE_AUTH&amp;quot;. You will immediately be asked to login. The username is &amp;#039;admin&amp;#039; and the password is &amp;#039;admin&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Manage Users:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
In main console, go to &amp;#039;&amp;#039;&amp;#039;Options-&amp;gt;Users&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==Trouble Shooting==&lt;br /&gt;
Here are some things that will help you track down whats wrong.&lt;br /&gt;
This is also how to obtain the info that we need to help you on the forums.&lt;br /&gt;
&lt;br /&gt;
===What logs should I check for errors?===&lt;br /&gt;
ZoneMinder creates its own logs and are usually located in the /tmp directory. The ZoneMinder logs for the RPM packages are located in /var/log/zm.&lt;br /&gt;
Depending on your problem errors can show up in any of these logs but, usually the logs of interest are zmdc.log and zmpkg.log if ZM is not able to start.&lt;br /&gt;
Now since ZM is dependent on other components to work, you might not find errors in ZM but in the other components.&lt;br /&gt;
Other logs of interest are:&lt;br /&gt;
*/var/log/messages&lt;br /&gt;
*/var/log/dmesg&lt;br /&gt;
*/var/log/httpd/error_log (RedHat/Fedora) or /var/log/apache2/error_log&lt;br /&gt;
*/var/log/mysqld.log (Errors here don&amp;#039;t happen very often but just in case)&lt;br /&gt;
&lt;br /&gt;
If ZM is not functioning, you should always be able to find an error in at least one of these logs. Use the tail command to get info from the logs. This can be done like so: &lt;br /&gt;
&lt;br /&gt;
[[tail]] -f /var/log/messages /var/log/httpd/error_log /var/log/zm/zm*.log &lt;br /&gt;
&lt;br /&gt;
This will append any data entered to any of these logs to your console screen (-f). To exit [ctrl -c].&lt;br /&gt;
&lt;br /&gt;
===How can I trouble shoot the hardware?===&lt;br /&gt;
Here are some commands to get information about your hardware. Some commands are distribution dependent.&lt;br /&gt;
#[[lspci]] -vv  Returns lots of detailed info. Check for conflicting interrupts or port assignments. You can sometimes alter interrupts/ ports in bios. Try a different pci slot to get a clue if it is HW conflict (comand provided by the pciutils package).&lt;br /&gt;
#[[scanpci]] -v  Gives you information from your hardware EPROM&lt;br /&gt;
#[[lsusb]] -vv  Returns lots of detail about USB devices (camand provided by usbutils package).&lt;br /&gt;
#[[dmesg]]  Shows you how your hardware initialized (or didn&amp;#039;t) on boot-up. You will get the most use of this.&lt;br /&gt;
#[[v4l-info]] , to see how driver is talking to card. look for unusual values.&lt;br /&gt;
#[[modinfo bttv]], some bttv driver stats.&lt;br /&gt;
#[[zmu]]  -m 0 -q -v  Returns various information regarding a monitor configuration.&lt;/div&gt;</summary>
		<author><name>Flasheart</name></author>
	</entry>
</feed>