mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
passed json may have more data about first frame and full input path
This commit is contained in:
parent
18e882fc42
commit
ba44eb5acd
1 changed files with 9 additions and 3 deletions
|
|
@ -383,7 +383,8 @@ def example(input_path, output_path):
|
|||
|
||||
def burnins_from_data(
|
||||
input_path, output_path, data,
|
||||
codec_data=None, options=None, burnin_values=None, overwrite=True
|
||||
codec_data=None, options=None, burnin_values=None, overwrite=True,
|
||||
full_input_path=None, first_frame=None
|
||||
):
|
||||
"""This method adds burnins to video/image file based on presets setting.
|
||||
|
||||
|
|
@ -440,8 +441,11 @@ def burnins_from_data(
|
|||
"shot": "sh0010"
|
||||
}
|
||||
"""
|
||||
streams = None
|
||||
if full_input_path:
|
||||
streams = _streams(full_input_path)
|
||||
|
||||
burnin = ModifiedBurnins(input_path, options_init=options)
|
||||
burnin = ModifiedBurnins(input_path, streams, options, first_frame)
|
||||
|
||||
frame_start = data.get("frame_start")
|
||||
frame_end = data.get("frame_end")
|
||||
|
|
@ -604,6 +608,8 @@ if __name__ == "__main__":
|
|||
in_data["burnin_data"],
|
||||
codec_data=in_data.get("codec"),
|
||||
options=in_data.get("options"),
|
||||
burnin_values=in_data.get("values")
|
||||
burnin_values=in_data.get("values"),
|
||||
full_input_path=in_data.get("full_input_path"),
|
||||
first_frame=in_data.get("first_frame")
|
||||
)
|
||||
print("* Burnin script has finished")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue