Last active
January 2, 2016 05:09
-
-
Save ftp27/8255249 to your computer and use it in GitHub Desktop.
Convert MOV or some else video to gif animation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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