Class PresetConfigurations

java.lang.Object
com.azure.resourcemanager.mediaservices.models.PresetConfigurations

public final class PresetConfigurations extends Object
An object of optional configuration settings for encoder.
  • Constructor Details

    • PresetConfigurations

      public PresetConfigurations()
      Creates an instance of PresetConfigurations class.
  • Method Details

    • complexity

      public Complexity 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

      public PresetConfigurations withComplexity(Complexity complexity)
      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

      public InterleaveOutput 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

      public PresetConfigurations 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. 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

      public Float 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

      public PresetConfigurations withKeyFrameIntervalInSeconds(Float keyFrameIntervalInSeconds)
      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

      public Integer 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

      public PresetConfigurations withMaxBitrateBps(Integer maxBitrateBps)
      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

      public Integer 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

      public PresetConfigurations withMaxHeight(Integer maxHeight)
      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

      public Integer 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

      public PresetConfigurations withMaxLayers(Integer maxLayers)
      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

      public Integer 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

      public PresetConfigurations withMinBitrateBps(Integer minBitrateBps)
      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

      public Integer 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

      public PresetConfigurations withMinHeight(Integer minHeight)
      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.