Fix concatenating metadata

Slate concatenation didn't pass metadata to output
This commit is contained in:
jrsndlr 2022-04-29 17:43:02 +02:00
parent 5d8cea5046
commit 49725781f4
2 changed files with 18 additions and 2 deletions

View file

@ -77,7 +77,7 @@ class ExtractReviewSlate(openpype.api.Extractor):
streams = get_ffprobe_streams(
input_path, self.log
)
# get video metadata
# Get video metadata
for stream in streams:
input_timecode = None
input_width = None
@ -337,8 +337,23 @@ class ExtractReviewSlate(openpype.api.Extractor):
"-i", conc_text_path,
"-c", "copy",
"-timecode", offset_timecode,
output_path
]
# Use arguments from ffmpeg preset
source_ffmpeg_cmd = repre.get("ffmpeg_cmd")
if source_ffmpeg_cmd:
copy_args = (
"-metadata",
"-metadata:s:v:0",
)
args = source_ffmpeg_cmd.split(" ")
for indx, arg in enumerate(args):
if arg in copy_args:
concat_args.append(arg)
# assumes arg has one parameter
concat_args.append(args[indx + 1])
# add output
concat_args.append(output_path)
if not input_audio:
# ffmpeg concat subprocess
self.log.debug(

View file

@ -568,6 +568,7 @@ def burnins_from_data(
if source_ffmpeg_cmd:
copy_args = (
"-metadata",
"-metadata:s:v:0",
)
args = source_ffmpeg_cmd.split(" ")
for idx, arg in enumerate(args):