Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
fix(hiero): cut videos with correct secons
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubjezek001 committed Jan 19, 2021
1 parent 0437194 commit bd0fe88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pype/plugins/hiero/publish/extract_review_cutup.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def process(self, instance):
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
Expand Down Expand Up @@ -267,8 +267,8 @@ def process(self, instance):
).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
Expand Down

0 comments on commit bd0fe88

Please sign in to comment.