Skip to content

Instantly share code, notes, and snippets.

@warmwaffles
Last active October 17, 2020 01:05
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 warmwaffles/326a8470fb53faeef851d138e0293681 to your computer and use it in GitHub Desktop.
Save warmwaffles/326a8470fb53faeef851d138e0293681 to your computer and use it in GitHub Desktop.
Convert go-pro timelapse with ffmpeg

To compile all of the gopro timelapse images use the following command.

ffmpeg -r 6 \
  -f image2 \
  -pattern_type glob \
  -i '*.JPG' \
  -s 4000x3000 \
  -c:v mjpeg \
  -q:v 10 \
  ./nameoffile.avi
  • -r 6 - 6 fps.
  • -pattern_type glob -i '*.JPG' - Every JPG in current directory.
  • -s 4000x3000 - Using GoPro's original still image resolution for the output video.
  • -c:v mjpeg - MJPEG video codec.
  • -q:v 10 - Quality 10. Use 2-31. 2 is highest quality.

Filename formatting

  • Timelapse Photo
    • Format: Gyyyxxxx.JPG
    • yyy - Group number
    • xxxx - File number

Reference https://community.gopro.com/t5/en/GoPro-Camera-File-Naming-Convention/ta-p/390220#

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