Split video into frames and then combine at 30fps

Split a video into multiple image frames and then reassemble frames into a movie again. Frames may be edited in between commands.

mkdir frames
ffmpeg -i $INPUT_FILE frames/thumb%04d.jpg -hide_banner

# Edit frames as necessary before continuing

ffmpeg -framerate 30 -pattern_type glob -i 'frames/*.jpg' -c:v libx264 -pix_fmt yuv420p $OUTPUT_FILE
Copied!

Use your own input

If you have values you'd like to use instead of the provided variables, type or paste your data into the variable inputs below. If Javascript is enabled, your text will automatically be added to the command and you can click to copy.