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

Commit

Permalink
Merge pull request #892 from pypeclub/hotfix/hiero-cut-review-correct…
Browse files Browse the repository at this point in the history
…-seconds

Hiero: cut videos with correct secons
  • Loading branch information
mkolar authored Jan 20, 2021
2 parents 0437194 + bd0fe88 commit e173033
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 e173033

Please sign in to comment.