mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-11-06 13:28:17 +00:00
With this, an encoding process can change certain values that until now were settable during init only. A graceful reconfiguration will be attempted first, which depends on the capabilities of the underlying encoder. If that fails, a full encoder restart is performed instead. The reconfiguration parameters are passed as a list of target timestamp and key=value pairs to be applied at that point during encoding. Future improvements may also include targetting encoded frame number, and extending the command feature to also support passing encoder runtime arguments and not just filter runtime change arguments. Example: ffmpeg -i INPUT -reinit_opts:v:0 "pts=100000|crf=18,pts=200000|video_size=1280x720:crf=20" -crf 30 -c:v:0 libx264 OUTPUT Signed-off-by: James Almer <jamrial@gmail.com>