Skip to content

Instantly share code, notes, and snippets.

@dnlcrl
Created January 3, 2016 17:10
Show Gist options
  • Save dnlcrl/507f107bac4fd4de806c to your computer and use it in GitHub Desktop.
Save dnlcrl/507f107bac4fd4de806c to your computer and use it in GitHub Desktop.
#! /bin/sh
# cf. http://pages.uoregon.edu/noeckel/MakeMovie.html
# first convert an image sequence to a movie
ffmpeg -sameq -i %03d.jpg output.mp4
# ... and then convert the movie to a GIF animation
ffmpeg -i output.mp4 -pix_fmt rgb24 -s qcif -loop_output 0 output.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment