mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
add video length if input or output is sequence
This commit is contained in:
parent
c44d0ab339
commit
c826aaa0a6
1 changed files with 3 additions and 0 deletions
|
|
@ -351,6 +351,9 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
||||||
duration_sec = float(output_frames_len / temp_data["fps"])
|
duration_sec = float(output_frames_len / temp_data["fps"])
|
||||||
ffmpeg_output_args.append("-t {:0.2f}".format(duration_sec))
|
ffmpeg_output_args.append("-t {:0.2f}".format(duration_sec))
|
||||||
|
|
||||||
|
# Set frame range of output when input or output is sequence
|
||||||
|
elif temp_data["input_is_sequence"] or temp_data["output_is_sequence"]:
|
||||||
|
ffmpeg_output_args.append("-frames:v {}".format(output_frames_len))
|
||||||
|
|
||||||
# Add video/image input path
|
# Add video/image input path
|
||||||
ffmpeg_input_args.append(
|
ffmpeg_input_args.append(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue