Sending animated GIFs with email notifications

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
Post Reply
zamar17
Posts: 24
Joined: Wed Apr 13, 2016 1:21 am

Sending animated GIFs with email notifications

Post by zamar17 »

Is it possible to send motion detection event email notifications with animated GIFs as attachments? This Tutorial shows how to configure ZM with MP4 videos as attachments. But full scale videos may be large and not exactly suitable for email notifications. While a single animated GIF may cover the entire lengthy event with a series of 20 images - quite handy for notification purposes, and complementing full scale videos stored on the server.

Animated GIFs of motion detected events - small files comprised of 20+ JPEG images - are also much more informative than a few still images attached to email. Currently such dual approach - MP4 for videos stored locally or on FTP server, and anim GIFs for email notices - is adapted by ContaCam in Windows and works very well. Can it be done in ZM as well with FFMpeg? How it can be set by a user in current ZM config, with what 3rd party packages complementing ZM?

I found that at least two approaches can be use for that:

a) Convert a series of JPEG snapshots to a small anim GIF with FFMpeg like here. This thread may also help. Same can be done with ImageMagick, but using a script instead of GUI.
b) Convert just captured and saved MP4 video to anim GIF like here. Higher quality can be achieved with this technique.

Can someone from developers or experienced ZM users comment on what approach is the best, and how to implement or try it in a more rational way complementing ZM functionality?
Post Reply