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

Commit

Permalink
create a sequence output when converting sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Mar 28, 2022
1 parent 50550c5 commit 9b097d4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions openpype/lib/transcoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,14 @@ def convert_for_ffmpeg(
oiio_cmd.extend(["--eraseattrib", attr_name])

# Add last argument - path to output
base_file_name = os.path.basename(first_input_path)
output_path = os.path.join(output_dir, base_file_name)
if is_sequence:
ext = os.path.splitext(first_input_path)[1]
base_filename = "tmp.%{:0>2}d{}".format(
len(str(input_frame_end)), ext
)
else:
base_filename = os.path.basename(first_input_path)
output_path = os.path.join(output_dir, base_filename)
oiio_cmd.extend([
"-o", output_path
])
Expand Down

0 comments on commit 9b097d4

Please sign in to comment.