Format Options
CineonFormatOptions
¶
CineonFormatOptions(
ten_bit_black_point: int,
ten_bit_white_point: int,
converted_black_point: float,
converted_white_point: float,
current_gamma: float,
highlight_expansion: int,
logarithmic_conversion: bool,
file_format: CineonFileFormat,
bit_depth: int,
)
Cineon/DPX format-specific render options.
These settings correspond to the Cineon Settings dialog in After Effects, accessible when the output format is set to Cineon Sequence or DPX Sequence.
Example
Attributes¶
converted_black_point
¶
converted_black_point: float
The converted black point value, normalized to the 0.0–1.0 range. This is the linear-light equivalent of the 10-bit black point.
converted_white_point
¶
converted_white_point: float
The converted white point value, normalized to the 0.0–1.0 range. This is the linear-light equivalent of the 10-bit white point.
file_format
¶
file_format: CineonFileFormat
The file format for the Cineon output. See CineonFileFormat for possible values.
JpegFormatOptions
¶
JpegFormatOptions(
quality: int, format_type: JpegFormatType, scans: int
)
JPEG format-specific render options.
These settings correspond to the JPEG Options dialog in After Effects, accessible when the output format is set to JPEG Sequence.
Example
Attributes¶
format_type
¶
format_type: JpegFormatType
JPEG format option type: Baseline (Standard), Baseline Optimized, or Progressive.
OpenExrFormatOptions
¶
OpenExrFormatOptions(
compression: OpenExrCompression,
luminance_chroma: bool,
thirty_two_bit_float: bool,
dwa_compression_level: float | None,
)
OpenEXR format-specific render options.
These settings correspond to the OpenEXR Options dialog in After Effects, accessible when the output format is set to OpenEXR or OpenEXR Sequence.
Example
Attributes¶
compression
¶
compression: OpenExrCompression
The compression method. Corresponds to the Compression dropdown
in the OpenEXR Options dialog.
dwa_compression_level
¶
dwa_compression_level: float | None
The DWA compression level. Only meaningful when compression is
OpenExrCompression.DWAA or OpenExrCompression.DWAB.
Stored as a little-endian f4 in the Ropt body. Defaults to
45.0 in After Effects.
PngFormatOptions
¶
PngFormatOptions(
width: int,
height: int,
bit_depth: int,
compression: PngCompression,
include_hdr10_metadata: bool,
color_primaries: Hdr10ColorPrimaries,
luminance_min: float | None,
luminance_max: float | None,
content_light_max: float | None,
content_light_average: float | None,
)
PNG format-specific render options.
These settings correspond to the PNG Options dialog in After Effects, accessible when the output format is set to PNG Sequence.
The Ropt body for PNG contains a fixed-size binary block (typically 318
bytes) with width, height, and bit depth at known offsets. HDR10 metadata
is stored separately in a JSON Utf8 chunk alongside the Ropt chunk.
Example
Attributes¶
bit_depth
¶
bit_depth: int
The output bit depth per channel (big-endian u2 at offset 24).
Common values are 8 and 16.
color_primaries
¶
color_primaries: Hdr10ColorPrimaries
The color primaries used for HDR10 metadata. Corresponds to the
Color Primaries dropdown in the PNG Options dialog.
Only meaningful when include_hdr10_metadata is True.
compression
¶
compression: PngCompression
The PNG compression / interlace mode. Corresponds to the
Compression dropdown in the PNG Options dialog.
content_light_average
¶
content_light_average: float | None
The maximum frame average light level in nits for HDR10 metadata,
or None if not explicitly set. Corresponds to the
Content Light Average field in the PNG Options dialog.
content_light_max
¶
content_light_max: float | None
The maximum content light level in nits for HDR10 metadata, or
None if not explicitly set. Corresponds to the
Content Light Maximum field in the PNG Options dialog.
include_hdr10_metadata
¶
include_hdr10_metadata: bool
Whether HDR10 metadata is embedded in the PNG output.
Corresponds to the Include HDR10 Metadata checkbox in the PNG
Options dialog. Only available for 16-bit output.
luminance_max
¶
luminance_max: float | None
The maximum display luminance in nits for HDR10 metadata, or
None if not explicitly set. Corresponds to the
Luminance Maximum field in the PNG Options dialog.
TargaFormatOptions
¶
Targa (TGA) format-specific render options.
These settings correspond to the Targa Options dialog in After Effects, accessible when the output format is set to Targa Sequence.
Example
TiffFormatOptions
¶
TIFF format-specific render options.
These settings correspond to the TIFF Options dialog in After Effects, accessible when the output format is set to TIFF Sequence.
Example
XmlFormatOptions
¶
XmlFormatOptions(
format_code: str,
video_codec: VideoCodec | int | None,
audio_codec: AudioCodec | int | None,
frame_rate: float | None,
mpeg_audio_format: MPEGAudioFormat | int | None = None,
mpeg_multiplexer: MPEGMultiplexer | int | None = None,
mpeg_mux_stream_compatibility: MPEGMuxStreamCompatibility
| int
| None = None,
params: dict[str, str] = dict(),
)
XML-based format-specific render options.
Shared by output formats that store their settings as a binary header
followed by a PremiereData XML block containing ExporterParam
elements. Applicable formats include AVI (.AVI), H.264 (H264),
MP3 (Mp3), QuickTime (MooV), and WAV (wao_).
Individual parameters are stored in the params dictionary, keyed by
their Adobe parameter identifier (e.g. "ADBEVideoCodec").
Example
Attributes¶
audio_codec
¶
audio_codec: AudioCodec | int | None
The audio codec as an AudioCodec integer value extracted from the
ADBEAudioCodec parameter, or None when the parameter is absent.
Falls back to a plain int when the codec is not in the
AudioCodec enum.
format_code
¶
format_code: str
The 4-character format identifier from the Ropt chunk header
(e.g. ".AVI", "H264", "Mp3 ", "MooV", "wao_").
frame_rate
¶
frame_rate: float | None
The output frame rate in frames per second, derived from the
ADBEVideoFPS parameter. Adobe stores this as ticks per frame using
a time base of 254,016,000,000 ticks/second, so
frame_rate = 254016000000 / ADBEVideoFPS.
None for audio-only formats (MP3, WAV).
mpeg_audio_format
¶
mpeg_audio_format: MPEGAudioFormat | int | None = None
The MPEG audio format as an MPEGAudioFormat FourCC integer value
extracted from the ADBEMPEGAudioFormat parameter, or None when
the parameter is absent. Falls back to a plain int when the value
is not in the MPEGAudioFormat enum.
mpeg_multiplexer
¶
mpeg_multiplexer: MPEGMultiplexer | int | None = None
The MPEG multiplexer as an MPEGMultiplexer FourCC integer value
extracted from the ADBEMPEGMultiplexer parameter, or None when
the parameter is absent. Falls back to a plain int when the value
is not in the MPEGMultiplexer enum.
mpeg_mux_stream_compatibility
¶
mpeg_mux_stream_compatibility: (
MPEGMuxStreamCompatibility | int | None
) = None
The MPEG mux stream compatibility as an
MPEGMuxStreamCompatibility FourCC integer value extracted from the
ADBEMPEGMuxStreamCompatibility parameter, or None when the
parameter is absent. Falls back to a plain int when the value is
not in the MPEGMuxStreamCompatibility enum.
params
¶
All ExporterParam key-value pairs extracted from the embedded XML
PremiereData block. Keys are Adobe parameter identifiers such as
"ADBEVideoCodec", "ADBEVideoQuality",
"ADBEAudioInterleave", etc. Values are the raw string
representations from the XML.
video_codec
¶
video_codec: VideoCodec | int | None
The video codec as a VideoCodec FourCC integer value extracted from
the ADBEVideoCodec parameter, or None for audio-only formats
(MP3, WAV). Falls back to a plain int when the codec is not in the
VideoCodec enum.