ffmpeg commands
Image sequences
The scripts in this folder turn a folder of numbered still images into a video. Each one reads the frames at a set rate, scales them to cover a fixed frame size such as 1080p or 720p, and crops off whatever overflows. They're useful when you have camera timelapse photos, rendered or exported frames to assemble, or vector animation frames that need to become a transparent overlay. Adapting one usually means matching the filename pattern and start number to your files and adjusting the rate and output size; each script's header explains every flag.
GoPro timelapse photos to a 1080p video, starting mid-sequence
gopro-timelapse-start-number.sh
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.
Convert a sequence of images to a video, filling the frame and cropping to exactly 1920x1080, 3 frames per second, starting at filename with the number 26565 and working through all images with 5 digits of numbers in the filename
image-sequence-2-video.sh
Convert a sequence of images to a video, filling the frame and cropping to exactly 1920x1080, 3 frames per second, starting at filename with the number 26565 and working through all images with 5 digits of numbers in the filename
Image sequence to video, filled to 1280×720 with a lowered crop
images-to-video-offset-crop.sh
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.
SVG animation frames to ProRes 4444 with a transparent background
svg-frames-to-prores4444-alpha.sh
For overlays made as numbered SVG frames (for example primitive output, see related-tools/, or frames exported from a vector tool): rasterize each SVG to PNG keeping transparency, then encode a ProRes 4444 movie with an alpha channel that editors can layer over other footage.
Source: lucidbeaming/ffmpeg-utilities/image-sequence at v1.0.1