Fix gaps in color transcode

Create sequence only if no gaps.
This commit is contained in:
Petr Kalis 2025-02-28 10:08:21 +01:00
parent ab3fdea704
commit d150377092

View file

@ -280,6 +280,10 @@ class ExtractOIIOTranscode(publish.Extractor):
collection = collections[0]
frames = list(collection.indexes)
real_range = list(range(frames[0], frames[-1] + 1))
if set(frames) != set(real_range): # check for gaps
return files_to_convert
frame_str = "{}-{}#".format(frames[0], frames[-1])
file_name = "{}{}{}".format(collection.head, frame_str,
collection.tail)