mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix extract review cutup (port from 2.x)
This commit is contained in:
parent
a3fdff91dc
commit
3b0b505e5c
1 changed files with 3 additions and 3 deletions
|
|
@ -151,7 +151,7 @@ class ExtractReviewCutUp(pype.api.Extractor):
|
|||
https://github.com/pypeclub/pype/issues/659
|
||||
"""
|
||||
frame_duration_extend = 1
|
||||
if audio_check_output:
|
||||
if audio_check_output and ("audio" in inst_data["families"]):
|
||||
frame_duration_extend = 0
|
||||
|
||||
# translate frame to sec
|
||||
|
|
@ -267,8 +267,8 @@ class ExtractReviewCutUp(pype.api.Extractor):
|
|||
).format(**locals()))
|
||||
|
||||
# append ffmpeg input video clip
|
||||
input_args.append("-ss {:0.2f}".format(start_sec))
|
||||
input_args.append("-t {:0.2f}".format(duration_sec))
|
||||
input_args.append("-ss {}".format(start_sec))
|
||||
input_args.append("-t {}".format(duration_sec))
|
||||
input_args.append("-i \"{}\"".format(full_input_path))
|
||||
|
||||
# add copy audio video codec if only shortening clip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue