mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Stop processing directly on unknown RGBA channel for a representation
This commit is contained in:
parent
148ce21a9a
commit
d072da86d1
1 changed files with 7 additions and 3 deletions
|
|
@ -153,8 +153,7 @@ class ExtractOIIOTranscode(publish.Extractor):
|
|||
additional_command_args = (output_def["oiiotool_args"]
|
||||
["additional_command_args"])
|
||||
|
||||
files_to_convert = self._translate_to_sequence(
|
||||
files_to_convert)
|
||||
unknown_rgba_channels = False
|
||||
for file_name in files_to_convert:
|
||||
input_path = os.path.join(original_staging_dir,
|
||||
file_name)
|
||||
|
|
@ -174,11 +173,16 @@ class ExtractOIIOTranscode(publish.Extractor):
|
|||
self.log
|
||||
)
|
||||
except UnknownRGBAChannelsError:
|
||||
unknown_rgba_channels = True
|
||||
self.log.error(
|
||||
"Skipping OIIO Transcode. Unknown RGBA channels"
|
||||
f" for colorspace conversion in file: {input_path}"
|
||||
)
|
||||
continue
|
||||
break
|
||||
|
||||
if unknown_rgba_channels:
|
||||
# Stop processing this representation
|
||||
break
|
||||
|
||||
# cleanup temporary transcoded files
|
||||
for file_name in new_repre["files"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue