PHP script to export zoneminder movies with Front End

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
LBDG
Posts: 17
Joined: Mon Jun 23, 2014 10:17 am

PHP script to export zoneminder movies with Front End

Post by LBDG » Tue Dec 01, 2020 1:53 am

I updated an older script to work with zoneminder 1.34 passthrough to export videos between start and stop times.

Since I exclusively use mocord, there is an "Alarm" option which will only export the alarms in a continuous videos between the start and stop times. Great to see 24 hours of accelerated alarms in a few minutes of video. The "All" option will export a continuous video between a start and stop time. Other ffmpeg processing options are available (speed, fps, size etc.) for time lapse etc.

The script can be used from the command line or with a html front end
https://github.com/lbdc/zm_movie_bootstrap
The installation instructions are in the repository readme.
Index.png
Index.png (17.44 KiB) Viewed 7780 times
Make_movie.png
Make_movie.png (40.77 KiB) Viewed 7780 times

Tested on Ubuntu 20.04 with the latest zoneminder 1.34 (ensure the storage area is not null (set to default or other area) [attachment=0]storage.png[/attachment]
Attachments
storage.png
storage.png (29.93 KiB) Viewed 7780 times

ledrew1407
Posts: 2
Joined: Fri Dec 05, 2014 12:53 pm

Re: PHP script to export zoneminder movies with Front End

Post by ledrew1407 » Sun Dec 27, 2020 6:42 pm

This is a great tool, thanks for taking the time to share with everyone.

ledrew1407
Posts: 2
Joined: Fri Dec 05, 2014 12:53 pm

Re: PHP script to export zoneminder movies with Front End

Post by ledrew1407 » Sat Aug 14, 2021 9:15 pm

I am wondering if there are any updates, this script seems to have stopped working with v1.36.5

LBDG
Posts: 17
Joined: Mon Jun 23, 2014 10:17 am

Re: PHP script to export zoneminder movies with Front End

Post by LBDG » Wed Aug 18, 2021 12:19 pm

The script has not been updated for 1.36 yet. I'm still running ZM 1.34.
I know there are some changes in the database from 1.34 to 1.36 (fixed I think) but she SQL queries in the script stopped working under 1.36.
If anyone has SQL experience I could point them to the SQL query which is the problem.

I have not had time to upgrade yet but anticipate doing so in the fall.

LBDG
Posts: 17
Joined: Mon Jun 23, 2014 10:17 am

Re: PHP script to export zoneminder movies with Front End

Post by LBDG » Sat Oct 16, 2021 4:16 pm

The script has been updated for zoneminder 1.36 and tested on Ubuntu 20.04
https://github.com/lbdc/zm_movie_bootstrap

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests