Skip to content

Instantly share code, notes, and snippets.

@emamd
Created January 6, 2016 18:59
Show Gist options
  • Save emamd/4a8fd57e63f112f557fa to your computer and use it in GitHub Desktop.
Save emamd/4a8fd57e63f112f557fa to your computer and use it in GitHub Desktop.
# Convert movie frames to jpgs
ffmpeg -i {{MOVIE_FILE}} -r 5 -qscale 0 '{{OUTPUT_FILENAME}}-%03d.jpg'
# Convert jpgs to gif
convert -delay 10 -loop 0 -layers Optimize +map frames/*.jpg frames/{{OUTPUT_FILENAME}}.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment