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.
Personal Internet VMware PHP Linux Shell Bluecoat Proxy Windows Hardware Virtualization Nagios MySQL DB Monitoring Mail Android Network Wyse Hacks Tomcat Postgres Apple Mac Backup BSD ZFS Solaris SmartOS Unix Multimedia Perl Database MongoDB CMS OTRS FreeBSD Wordpress LXC Nginx Proxmox DNS Graphics GlusterFS Security Chef HAProxy Icinga Ansible HTML MariaDB Containers Rancher Docker AWS ELK Kibana Logstash Filebeat Varnish PGSQL PostgreSQL ElasticSearch CouchDB Bash Macintosh Container Minio Grafana InfluxDB Databases NFS OSSEC SystemD Java Zoneminder Surveillance Elasticsearch SSL TLS Icingaweb2 Cloud Wireless Kubernetes Ubuntu