using -g 1 (same as -intra) to set right keyframes of burning output

This commit is contained in:
iLLiCiTiT 2020-08-07 12:18:54 +02:00
parent 5205e1773e
commit 5724f3e474

View file

@ -528,6 +528,9 @@ def burnins_from_data(
if pix_fmt:
ffmpeg_args.append("-pix_fmt {}".format(pix_fmt))
# Use group one (same as `-intra` argument, which is deprecated)
ffmpeg_args.append("-g 1")
ffmpeg_args_str = " ".join(ffmpeg_args)
burnin.render(
output_path, args=ffmpeg_args_str, overwrite=overwrite, **data