Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
modified adding of -g argument
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed May 7, 2021
1 parent 159ac20 commit 64093f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openpype/scripts/otio_burnin.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ def get_codec_args(ffprobe_data):
if pix_fmt:
output.extend(["-pix_fmt", pix_fmt])

output.extend(["-g", "1"])

return output


Expand Down Expand Up @@ -637,14 +639,13 @@ def burnins_from_data(
if codec_data:
# Use codec definition from method arguments
ffmpeg_args = codec_data
ffmpeg_args.append("-g 1")

else:
ffprobe_data = burnin._streams[0]
ffmpeg_args.extend(get_codec_args(ffprobe_data))

# 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
Expand Down

0 comments on commit 64093f2

Please sign in to comment.