Skip to content

Instantly share code, notes, and snippets.

@joshdholtz
Last active August 29, 2015 14:17
Show Gist options
  • Save joshdholtz/adf03a7bca7afa5c760d to your computer and use it in GitHub Desktop.
Save joshdholtz/adf03a7bca7afa5c760d to your computer and use it in GitHub Desktop.
.mov to .gist
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