Created
March 29, 2015 10:30
-
-
Save takahirom/3e2727d73b7ce9e20fe0 to your computer and use it in GitHub Desktop.
mp4 to gif
This file contains 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
mkdir work_for_gif | |
ffmpeg -i $1 -an -r 15 -s `ffmpeg -i $1 2>&1 | perl -lane 'print $1 if /(\d{2,}x\d+)/'` work_for_gif/%04d.png | |
convert work_for_gif/*.png output.gif | |
rm -rf work_for_gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment