mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Fix concatenating metadata
Slate concatenation didn't pass metadata to output
This commit is contained in:
parent
5d8cea5046
commit
49725781f4
2 changed files with 18 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue