Class PresetConfigurations
java.lang.Object
com.azure.resourcemanager.mediaservices.models.PresetConfigurations
An object of optional configuration settings for encoder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the complexity property: Allows you to configure the encoder settings to control the balance between speed and quality.Get the interleaveOutput property: Sets the interleave mode of the output to control how audio and video are stored in the container format.Get the keyFrameIntervalInSeconds property: The key frame interval in seconds.Get the maxBitrateBps property: The maximum bitrate in bits per second (threshold for the top video layer).Get the maxHeight property: The maximum height of output video layers.Get the maxLayers property: The maximum number of output video layers.Get the minBitrateBps property: The minimum bitrate in bits per second (threshold for the bottom video layer).Get the minHeight property: The minimum height of output video layers.void
validate()
Validates the instance.withComplexity
(Complexity complexity) Set the complexity property: Allows you to configure the encoder settings to control the balance between speed and quality.withInterleaveOutput
(InterleaveOutput interleaveOutput) Set the interleaveOutput property: Sets the interleave mode of the output to control how audio and video are stored in the container format.withKeyFrameIntervalInSeconds
(Float keyFrameIntervalInSeconds) Set the keyFrameIntervalInSeconds property: The key frame interval in seconds.withMaxBitrateBps
(Integer maxBitrateBps) Set the maxBitrateBps property: The maximum bitrate in bits per second (threshold for the top video layer).withMaxHeight
(Integer maxHeight) Set the maxHeight property: The maximum height of output video layers.withMaxLayers
(Integer maxLayers) Set the maxLayers property: The maximum number of output video layers.withMinBitrateBps
(Integer minBitrateBps) Set the minBitrateBps property: The minimum bitrate in bits per second (threshold for the bottom video layer).withMinHeight
(Integer minHeight) Set the minHeight property: The minimum height of output video layers.
-
Constructor Details
-
PresetConfigurations
public PresetConfigurations()Creates an instance of PresetConfigurations class.
-
-
Method Details
-
complexity
Get the complexity property: 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.- Returns:
- the complexity value.
-
withComplexity
Set the complexity property: 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.- Parameters:
complexity
- the complexity value to set.- Returns:
- the PresetConfigurations object itself.
-
interleaveOutput
Get the interleaveOutput property: 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.- Returns:
- the interleaveOutput value.
-
withInterleaveOutput
Set the interleaveOutput property: 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.- Parameters:
interleaveOutput
- the interleaveOutput value to set.- Returns:
- the PresetConfigurations object itself.
-
keyFrameIntervalInSeconds
Get the keyFrameIntervalInSeconds property: The key frame interval in seconds. Example: set KeyFrameIntervalInSeconds as 2 to reduce the playback buffering for some players.- Returns:
- the keyFrameIntervalInSeconds value.
-
withKeyFrameIntervalInSeconds
Set the keyFrameIntervalInSeconds property: The key frame interval in seconds. Example: set KeyFrameIntervalInSeconds as 2 to reduce the playback buffering for some players.- Parameters:
keyFrameIntervalInSeconds
- the keyFrameIntervalInSeconds value to set.- Returns:
- the PresetConfigurations object itself.
-
maxBitrateBps
Get the maxBitrateBps property: 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.- Returns:
- the maxBitrateBps value.
-
withMaxBitrateBps
Set the maxBitrateBps property: 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.- Parameters:
maxBitrateBps
- the maxBitrateBps value to set.- Returns:
- the PresetConfigurations object itself.
-
maxHeight
Get the maxHeight property: 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.- Returns:
- the maxHeight value.
-
withMaxHeight
Set the maxHeight property: 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.- Parameters:
maxHeight
- the maxHeight value to set.- Returns:
- the PresetConfigurations object itself.
-
maxLayers
Get the maxLayers property: 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.- Returns:
- the maxLayers value.
-
withMaxLayers
Set the maxLayers property: 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.- Parameters:
maxLayers
- the maxLayers value to set.- Returns:
- the PresetConfigurations object itself.
-
minBitrateBps
Get the minBitrateBps property: 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.- Returns:
- the minBitrateBps value.
-
withMinBitrateBps
Set the minBitrateBps property: 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.- Parameters:
minBitrateBps
- the minBitrateBps value to set.- Returns:
- the PresetConfigurations object itself.
-
minHeight
Get the minHeight property: The minimum height of output video layers. Example: set MinHeight as 360 to avoid output layers of smaller resolutions like 180P.- Returns:
- the minHeight value.
-
withMinHeight
Set the minHeight property: The minimum height of output video layers. Example: set MinHeight as 360 to avoid output layers of smaller resolutions like 180P.- Parameters:
minHeight
- the minHeight value to set.- Returns:
- the PresetConfigurations object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-