Skip to content

Instantly share code, notes, and snippets.

@msurguy
Created May 15, 2019 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msurguy/a782571131f59459b447b5c97d1213b3 to your computer and use it in GitHub Desktop.
Save msurguy/a782571131f59459b447b5c97d1213b3 to your computer and use it in GitHub Desktop.
timelapse video from GoPro Hero photos
ffmpeg \
  -r 15000/1001 \
  -pattern_type glob -i '*.JPG' \
  -vf "crop=in_w:in_w*9/16,scale=3840:-2" \
  -sws_flags lanczos \
  -pix_fmt yuv420p \
  -vcodec libx264 \
  output2.mkv

ffmpeg -i output2.mkv -codec copy timelapse.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment