Merge pull request #1276 from ynput/bugfix/oiio-trancode-padding-issue

Fixes frame string formatting for transcoding
This commit is contained in:
Jakub Ježek 2025-05-23 09:59:32 +02:00 committed by GitHub
commit c5bfbb0dd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)