Optimizes review encoding for image sequences

Simplifies the encoding process for image sequences
by removing the conditional check for specific image
formats when using the 'copy' codec. This ensures
consistent and efficient handling of image sequence
encoding for review purposes.
This commit is contained in:
Jakub Jezek 2025-04-15 16:37:56 +02:00
parent f8ab13dd2a
commit 6df129b93f
No known key found for this signature in database
GPG key ID: 06DBD609ADF27FD9

View file

@ -526,13 +526,10 @@ class ExtractOTIOReview(
input_extension
and self.output_ext == input_extension
):
if input_extension.lower() in [
".png", ".tif", ".tiff", ".dpx", ".exr"
]:
command.extend(["-c", "copy"])
else:
# For lossy formats, force re-encode
command.extend(["-pix_fmt", "rgba"])
command.extend(["-c", "copy"])
else:
# For lossy formats, force re-encode
command.extend(["-pix_fmt", "rgba"])
# add output path at the end
command.append(output_path)