mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fixed codec copy in burnin script
This commit is contained in:
parent
498e9ab6e5
commit
a5efeb616c
1 changed files with 6 additions and 6 deletions
|
|
@ -393,9 +393,6 @@ def burnins_from_data(
|
|||
"shot": "sh0010"
|
||||
}
|
||||
"""
|
||||
# Make sure `codec_data` is list
|
||||
if not codec_data:
|
||||
codec_data = []
|
||||
|
||||
# Use legacy processing when options are not set
|
||||
if options is None or burnin_values is None:
|
||||
|
|
@ -512,11 +509,14 @@ def burnins_from_data(
|
|||
text = value.format(**data)
|
||||
burnin.add_text(text, align, frame_start, frame_end)
|
||||
|
||||
codec_args = ""
|
||||
if codec_data:
|
||||
codec_args = " ".join(codec_data)
|
||||
# Use codec definition from method arguments
|
||||
burnin_args = " ".join(codec_data)
|
||||
else:
|
||||
# Else use copy of source codecs for both audio and video
|
||||
burnin_args = "-codec copy"
|
||||
|
||||
burnin.render(output_path, args=codec_args, overwrite=overwrite, **data)
|
||||
burnin.render(output_path, args=burnin_args, overwrite=overwrite, **data)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue