Skip to content

Instantly share code, notes, and snippets.

@ifnull
Created May 3, 2013 07:37
Show Gist options
  • Save ifnull/5507762 to your computer and use it in GitHub Desktop.
Save ifnull/5507762 to your computer and use it in GitHub Desktop.
Convert a series of JPGs to and MP4
# -r The first one. Desired length of video (i.e. 7 is 7 seconds).
# -start_number Starting index (i.e. foobar0099.jpg)
ffmpeg \
-f image2 \
-r 7 \
-start_number 99 \
-i ./images/foobar%04d.jpg \
-c:v libx264 \
-r 30 \
out.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment