From 5203bb31366343cdcf42da5b8be89085075a61b2 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 21 May 2020 17:05:17 +0200 Subject: [PATCH] add profile from input if is set in extract burnin --- pype/scripts/otio_burnin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pype/scripts/otio_burnin.py b/pype/scripts/otio_burnin.py index c35ce27b9c..138165d489 100644 --- a/pype/scripts/otio_burnin.py +++ b/pype/scripts/otio_burnin.py @@ -519,6 +519,12 @@ def burnins_from_data( if codec_name: ffmpeg_args.append("-codec:v {}".format(codec_name)) + profile_name = burnin._streams[0].get("profile") + if profile_name: + # lower profile name and repalce spaces with underscore + profile_name = profile_name.replace(" ", "_").lower() + ffmpeg_args.append("-profile:v {}".format(profile_name)) + pix_fmt = burnin._streams[0].get("pix_fmt") if pix_fmt: ffmpeg_args.append("-pix_fmt {}".format(pix_fmt))