Created
January 8, 2017 15:56
-
-
Save skuro/3a4a930d7be64827474b7fc5e5117694 to your computer and use it in GitHub Desktop.
You need to have imagemagick and ffmpeg installed.
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
gifcast () { | |
mkdir /tmp/gifcast | |
ffmpeg -i "$@" -r 10 /tmp/gifcast/gifcast%05d.png | |
convert -layers Optimize /tmp/gifcast/gifcast*.png gifcast.gif | |
rm /tmp/gifcast/gifcast*.png | |
rmdir /tmp/gifcast | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment