Skip to content

Instantly share code, notes, and snippets.

@lengarvey
Created July 7, 2013 11:27
Show Gist options
  • Save lengarvey/5943188 to your computer and use it in GitHub Desktop.
Save lengarvey/5943188 to your computer and use it in GitHub Desktop.
Converting a mov to a gif.

Install ffmpeg and gifsicle.

ffmpeg converts from mov to gif and gifsicle optmises the gif so it isn't HUGE.

Install using brew:

brew install ffmpeg gifsicle

Convert that mov!

ffmpeg -i ./Movies/test_running.mov -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=7 > ./Movies/test_running.gif

Constraining the size in ffmpeg does squish and change proportions, you can play around with the settings as you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment