Make zoneminder movies from Zoneminder 1.36 passthrough by entering start and end periods, parameters such as speed, fps, size etc. Option to only export all alarms between period (if using mocord) in one continous movie.
Tested on Ubuntu 20.04 and latest zoneminder 1.36
Index screenshot
Make Movie screenshot
Files:
zm_alm_136.php: encode engine uses ffmpeg. Can run script from command line directly.
Other files required for HTML front end
index.php: Use this as index
zm_movie_functions.php: miscellaneous functions called by scripts
zm_movie_header.html: html header information
zm_movie_make.php: setup movie parameters
Installation:
Put all files in a subfolder to /var/www/html
e.g. /var/www/html/zm136/
chown -R www-data:www-data /var/www/html/zm136/ (or web user)
chmod -R 775 /var/www/html/zm136/
Point your browser to http://host:port/zm136/index.php and enjoy
Note: the script will create 2 subfolders zm136/zm_movie for storing movies and zm136/zm_tmp for temporary files.
Important:
Ensure the storage area is set to either default or other. If blank, go to camera settings and set to default.
And
Ensure permision of the "/etc/zm/zm.conf" file is readable by www-data (or apache).
Issues:
Some camera feeds (RLC-410 with audio for example) don't seem to play well with FFMPEG. The video will be created but the duration may not match requested.
TODO:
- Add date/time picker
- Fix FFMPEG issues


