mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Fixes frame string formatting for transcoding
Ensures the frame string used for transcoding includes the correct padding, based on the collection's padding attribute. This resolves issues where the output file sequence name was not correctly formatted, leading to transcoding failures.
This commit is contained in:
parent
fcd6bfdf0f
commit
7a5e7a96f1
1 changed files with 5 additions and 1 deletions
|
|
@ -283,7 +283,11 @@ class ExtractOIIOTranscode(publish.Extractor):
|
|||
if collection.holes().indexes:
|
||||
return files_to_convert
|
||||
|
||||
frame_str = "{}-{}#".format(frames[0], frames[-1])
|
||||
# Get the padding from the collection
|
||||
# This is the number of digits used in the frame numbers
|
||||
padding = collection.padding
|
||||
|
||||
frame_str = "{}-{}%0{}d".format(frames[0], frames[-1], padding)
|
||||
file_name = "{}{}{}".format(collection.head, frame_str,
|
||||
collection.tail)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue