Skip to content

Instantly share code, notes, and snippets.

@jonnolen
Last active January 24, 2022 01:28
Show Gist options
  • Save jonnolen/afceafaa73cdfe0e9d28cfda774b9b4d to your computer and use it in GitHub Desktop.
Save jonnolen/afceafaa73cdfe0e9d28cfda774b9b4d to your computer and use it in GitHub Desktop.
ffmpeg commands

Create a timelapse

  • -r framerate
  • -s size of output video
  • -pattern_type and -i is the input files
  • -vf (filters) scale=-2:2160 means scale proportionally to 2160 pixels high
  • -pix_fmt required for quicktime or some shit.

ffmpeg -r 24 -f image2 -s 3840x2160 -pattern_type glob -i "20220123_*.JPG" -vf "scale=-2:2160" -vcodec libx264 -crf 25 -pix_fmt yuv420p day2.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment