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 committed by Jakub Jezek
parent 54d0c8f4b0
commit 1a6a5e4b7f
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3

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