Last active
September 12, 2020 12:44
-
-
Save bensmithett/4030944 to your computer and use it in GitHub Desktop.
Convert an image sequence to a 1080p video
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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