My surveillance system (Zoneminder) "records" movements by capturing screenshots. Putting these screenshots together in order and running through them gives the same effect as watching a recorded video.
When a Zoneminder event is exported, you basically get a folder with these screenshots:
For archiving purposes this is OK, but not if you want to send this to someone. So I needed to find a way to create a video file or an animated image/gif from these images.
Luckily there's ImageMagick's convert command:
$ convert --help|grep delay
-delay value display the next image after pausing
I agree, the description "display the next image" does not immediately make you think of an animated gif, yet that's exactly what an animated image is.
I can now tell convert to create an animated image using the delay parameter:
$ convert -delay 0.2 *.jpg recording.gif
Additional parameters also allow an infinite loop (0 = infinite) and resizing of the animated image:
$ convert -delay 0.2 -loop 0 -resize 800x600 *.jpg recording.gif
No comments yet.
AWS Android Ansible Apple Atlassian BSD Backup Bash Bluecoat CMS Chef Cloud Container Containers CouchDB DB DNS Database Databases Docker ELK ElasticSearch Elasticsearch Filebeat FreeBSD GlusterFS Grafana Graphics HAProxy HTML Hacks Hardware Icinga Icingaweb2 InfluxDB Internet Java Kibana Kubernetes LXC Linux Logstash Mac Macintosh Mail MariaDB Minio MongoDB Monitoring Multimedia MySQL NFS Nagios Network Nginx OSSEC OTRS PGSQL PHP Perl Personal PostgreSQL Postgres PowerDNS Proxmox Proxy Rancher SSL Security Shell SmartOS Solaris Surveillance SystemD TLS Tomcat Ubuntu Unix VMware Varnish Virtualization Windows Wireless Wordpress Wyse ZFS Zoneminder