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

Hiero: cut videos with correct secons #892

Merged
merged 1 commit into from
Jan 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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