Created
April 27, 2015 18:12
-
-
Save mjbradford89/eae9aa2ccf7bbc613bad to your computer and use it in GitHub Desktop.
convert-to-gif.sh
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
mplayer -ao null $1 -vo jpeg:outdir=output | |
echo "explosion complete." | |
notify-send "explosion complete." | |
convert output/* output.gif | |
echo "conversion complete." | |
notify-send "conversion complete." | |
convert output.gif -fuzz 4% -layers Optimize complete.gif | |
echo "optimization complete." | |
notify-send "optimization complete." | |
rm output.gif | |
rm -r output | |
echo "clean up complete." | |
echo "finished." | |
notify-send "finished converting to gif." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment