movie from pictures

Lawrence D’Oliveiro lawrencedo99 at gmail.com
Wed Jun 8 20:32:10 EDT 2016


On Thursday, June 9, 2016 at 10:11:16 AM UTC+12, Nev wrote:

> ... afterwards use some ffmpeg command to combine them into a picture.

This is a very common use case for FFmpeg.
1) Generate your frames in some high-quality lossless format, like PNG.
2) Name them sequentially “0001.png”, “0002.png” etc. (Assuming 4 digits is enough here.)
3) Use an FFmpeg command like

    ffmpeg -i /input-dir/%04d.png «output settings» «output filename»

to generate the final movie.

By keeping the full-quality frames from step 2, you can retry step 3 with different encoding settings to see which works best. You can even try two-pass encoding for best quality.



More information about the Python-list mailing list