Skip to content

Instantly share code, notes, and snippets.

@ftp27
Last active January 2, 2016 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ftp27/8255249 to your computer and use it in GitHub Desktop.
Save ftp27/8255249 to your computer and use it in GitHub Desktop.
Convert MOV or some else video to gif animation
#!/bin/bash
ffmpeg -i video.MOV -r 6 image_%010d.png;
mkdir resized;
for i in image_*.png; do convert $i -resize 600 resized/$i; done
rm -f image_*.png;
cd resized;
convert -delay 10 -layers optimize *.png ../animation.gif
cd ..;
rm -fr resized;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment