Skip to content

Instantly share code, notes, and snippets.

@bensmithett
Last active September 12, 2020 12:44
Show Gist options
  • Save bensmithett/4030944 to your computer and use it in GitHub Desktop.
Save bensmithett/4030944 to your computer and use it in GitHub Desktop.
Convert an image sequence to a 1080p video
brew install ffmpeg
ffmpeg -start_number 079 -y -r 30 -i "DSC_0%03d.JPG" -vf scale=1920:-1,crop=1920:1080 -vcodec libx264 -b:v 10000k -r 30 outputhd.m4v
# Optional bits
# -start_number: the first number in the sequence (default: 0)
# -y: overwrite output files without asking
# -r: input framerate (i.e. photos per second. The second -r is the output framerate)
# -i: input files. %03d = 3 digits (so this example would use DSC_0079.JPG - DSC_0999.JPG)
# Picked 10000k for the bitrate based on https://support.google.com/youtube/answer/1722171?hl=en
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment