GoPro timelapse photos are numbered like G0011231.JPG, G0011232.JPG, …. -start_number tells the image reader where the numbering begins (it only searches the first few numbers by default), so a sequence that starts at 11231 works without renaming. Played at 15 photos per second and conformed to 29.97 fps, every photo shows for about two video frames.

See also image-sequence-2-video.sh, the same idea at 3 photos per second.

The command

ffmpeg -framerate 15 -start_number 11231 -i G00%05d.JPG \
  -vf "scale=1920:1080:force_original_aspect_ratio=increase,crop=1920:1080" \
  -r 29.97 \
  -an \
  -c:v libx264 -crf 18 -pix_fmt yuv420p -preset ultrafast \
  output.mp4

What each part does

-framerate 15          read 15 photos per second of video (lower =
                       slower timelapse)
-start_number 11231    the first number in the sequence
-i G00%05d.JPG         "G00" + 5-digit number (G0011231.JPG); match
                       your camera's naming
scale=1920:1080:force_original_aspect_ratio=increase,crop=1920:1080
                       fill 1080p (GoPro photos are 4:3)
-r 29.97               output at 29.97 fps
-an -c:v libx264 -crf 18 -pix_fmt yuv420p -preset ultrafast

When to use it

Use this when a camera has numbered your timelapse photos from somewhere other than zero or one, as GoPro does, and you want a 1080p video without renaming anything. The header explains each flag. If your photos already start near 0 or 1, or you want a slower slideshow pace, image-sequence-2-video.sh is the simpler starting point.

To adapt it:

  • Set -start_number to the number on your first photo, and edit G00%05d.JPG to match your camera's file names, including the upper-case extension.
  • Lower -framerate for a slower timelapse, or raise it for a faster one.
  • Change both 1920:1080 values together for a different output size.

If ffmpeg reports that it can't find the input, the start number or the pattern doesn't match the first file. If the video ends early, look for a missing number in the sequence. If the top and bottom of the frame are missing, that's expected: the 4:3 photos are cropped to fill 16:9.

Notes

Source
ffmpeg-utilities/notes/commands2.txt
Changed
-r 15 before -i → -framerate 15 (the image reader's own option)