PresetConfigurations Class

An object of optional configuration settings for encoder.

Inheritance
azure.mgmt.media._serialization.Model
PresetConfigurations

Constructor

PresetConfigurations(*, complexity: str | _models.Complexity | None = None, interleave_output: str | _models.InterleaveOutput | None = None, key_frame_interval_in_seconds: float | None = None, max_bitrate_bps: int | None = None, max_height: int | None = None, max_layers: int | None = None, min_bitrate_bps: int | None = None, min_height: int | None = None, **kwargs)

Keyword-Only Parameters

Name Description
complexity

Allows you to configure the encoder settings to control the balance between speed and quality. Example: set Complexity as Speed for faster encoding but less compression efficiency. Known values are: "Speed", "Balanced", and "Quality".

interleave_output

Sets the interleave mode of the output to control how audio and video are stored in the container format. Example: set InterleavedOutput as NonInterleavedOutput to produce audio-only and video-only outputs in separate MP4 files. Known values are: "NonInterleavedOutput" and "InterleavedOutput".

key_frame_interval_in_seconds

The key frame interval in seconds. Example: set KeyFrameIntervalInSeconds as 2 to reduce the playback buffering for some players.

max_bitrate_bps
int

The maximum bitrate in bits per second (threshold for the top video layer). Example: set MaxBitrateBps as 6000000 to avoid producing very high bitrate outputs for contents with high complexity.

max_height
int

The maximum height of output video layers. Example: set MaxHeight as 720 to produce output layers up to 720P even if the input is 4K.

max_layers
int

The maximum number of output video layers. Example: set MaxLayers as 4 to make sure at most 4 output layers are produced to control the overall cost of the encoding job.

min_bitrate_bps
int

The minimum bitrate in bits per second (threshold for the bottom video layer). Example: set MinBitrateBps as 200000 to have a bottom layer that covers users with low network bandwidth.

min_height
int

The minimum height of output video layers. Example: set MinHeight as 360 to avoid output layers of smaller resolutions like 180P.

Variables

Name Description
complexity

Allows you to configure the encoder settings to control the balance between speed and quality. Example: set Complexity as Speed for faster encoding but less compression efficiency. Known values are: "Speed", "Balanced", and "Quality".

interleave_output

Sets the interleave mode of the output to control how audio and video are stored in the container format. Example: set InterleavedOutput as NonInterleavedOutput to produce audio-only and video-only outputs in separate MP4 files. Known values are: "NonInterleavedOutput" and "InterleavedOutput".

key_frame_interval_in_seconds

The key frame interval in seconds. Example: set KeyFrameIntervalInSeconds as 2 to reduce the playback buffering for some players.

max_bitrate_bps
int

The maximum bitrate in bits per second (threshold for the top video layer). Example: set MaxBitrateBps as 6000000 to avoid producing very high bitrate outputs for contents with high complexity.

max_height
int

The maximum height of output video layers. Example: set MaxHeight as 720 to produce output layers up to 720P even if the input is 4K.

max_layers
int

The maximum number of output video layers. Example: set MaxLayers as 4 to make sure at most 4 output layers are produced to control the overall cost of the encoding job.

min_bitrate_bps
int

The minimum bitrate in bits per second (threshold for the bottom video layer). Example: set MinBitrateBps as 200000 to have a bottom layer that covers users with low network bandwidth.

min_height
int

The minimum height of output video layers. Example: set MinHeight as 360 to avoid output layers of smaller resolutions like 180P.