Turns numbered stills (f00001.jpg, f00002.jpg, …) into a 29.97 fps video. The crop sits 200 px below center, the framing the effects/ examples use for portraits, where centering would cut off chins rather than foreheads. This is the base the effects/ chains build on.

The command

ffmpeg -framerate 29.97 -i frames/f%05d.jpg \
  -vf "scale=1280:720:force_original_aspect_ratio=increase,crop=1280:720:(in_w-out_w)/2:(in_h-out_h)/2+200" \
  -c:v libx264 -crf 18 -pix_fmt yuv420p \
  output.mp4

What each part does

-framerate 29.97       the rate to read the stills at
-i frames/f%05d.jpg    %05d = 5-digit, zero-padded frame number
scale=1280:720:force_original_aspect_ratio=increase
                       cover 1280×720
crop=1280:720:(in_w-out_w)/2:(in_h-out_h)/2+200
                       center horizontally, 200 px below center
                       (clamped to stay inside the frame)
-c:v libx264 -crf 18 -pix_fmt yuv420p

When to use it

Use this when you have a folder of numbered stills, especially portraits, and want a 1280×720 video framed a little low, so that heads keep their chins rather than their foreheads. It is the starting point the effects/ chains assume. The header explains each flag.

Skip it for footage that is already 16:9. Those frames scale to exactly 720 px tall, so there is nothing to shift and the 200 px offset does nothing.

Useful edits:

  • Change +200 to move the framing, or delete it for a plain centered crop.
  • Change 1280:720 in both filters for another size. Keep both numbers even.
  • Swap in the source's -preset ultrafast -crf 40 for quick drafts.

If the framing looks wrong, check how tall the scaled stills are. When the extra height is less than 400 px, the crop gets clamped to the bottom edge. If frames are missing, check that the files match f%05d.jpg exactly. Numbering that doesn't start at 1 is covered in gopro-timelapse-start-number.sh.

Notes

Source
ffmpeg-utilities/faces-ffmpeg.sh (the shared input and crop of every command)
Changed
-r → -framerate; final-quality -crf 18 instead of the source's -preset ultrafast -crf 40 draft settings