PresetConfigurationsArgs

data class PresetConfigurationsArgs(val complexity: Output<Either<String, Complexity>>? = null, val interleaveOutput: Output<Either<String, InterleaveOutput>>? = null, val keyFrameIntervalInSeconds: Output<Double>? = null, val maxBitrateBps: Output<Int>? = null, val maxHeight: Output<Int>? = null, val maxLayers: Output<Int>? = null, val minBitrateBps: Output<Int>? = null, val minHeight: Output<Int>? = null) : ConvertibleToJava<PresetConfigurationsArgs>

An object of optional configuration settings for encoder.

Constructors

Link copied to clipboard
constructor(complexity: Output<Either<String, Complexity>>? = null, interleaveOutput: Output<Either<String, InterleaveOutput>>? = null, keyFrameIntervalInSeconds: Output<Double>? = null, maxBitrateBps: Output<Int>? = null, maxHeight: Output<Int>? = null, maxLayers: Output<Int>? = null, minBitrateBps: Output<Int>? = null, minHeight: Output<Int>? = null)

Properties

Link copied to clipboard
val complexity: Output<Either<String, Complexity>>? = null

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.

Link copied to clipboard
val interleaveOutput: Output<Either<String, InterleaveOutput>>? = null

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.

Link copied to clipboard
val keyFrameIntervalInSeconds: Output<Double>? = null

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

Link copied to clipboard
val maxBitrateBps: Output<Int>? = null

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.

Link copied to clipboard
val maxHeight: Output<Int>? = null

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.

Link copied to clipboard
val maxLayers: Output<Int>? = null

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.

Link copied to clipboard
val minBitrateBps: Output<Int>? = null

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.

Link copied to clipboard
val minHeight: Output<Int>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): PresetConfigurationsArgs