Last active
August 29, 2015 14:17
-
-
Save joshdholtz/adf03a7bca7afa5c760d to your computer and use it in GitHub Desktop.
.mov to .gist
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
brew install ffmpeg | |
brew install gifsicle | |
mkdir pngs | |
mkdir gifs | |
ffmpeg -i exportation-edited.mov -r 10 ./pngs/out%04d.png | |
cd pngs | |
for i in *.png; do sips --resampleWidth 640 $i; done | |
for i in *.png; do sips -s format gif $i --out ../gifs/$i.gif;done | |
cd ../gifs | |
gifsicle ./*.gif --optimize=3 --delay=3 --loopcount --colors 256 > ../animation.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment