java.lang.Object
com.azure.resourcemanager.mediaservices.models.Codec
com.azure.resourcemanager.mediaservices.models.Video
Direct Known Subclasses:
H264Video, H265Video, Image

public class Video extends Codec
Describes the basic properties for encoding the input video.
  • Constructor Details

    • Video

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

    • keyFrameInterval

      public Duration keyFrameInterval()
      Get the keyFrameInterval property: The distance between two key frames. The value should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow the input source setting.
      Returns:
      the keyFrameInterval value.
    • withKeyFrameInterval

      public Video withKeyFrameInterval(Duration keyFrameInterval)
      Set the keyFrameInterval property: The distance between two key frames. The value should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow the input source setting.
      Parameters:
      keyFrameInterval - the keyFrameInterval value to set.
      Returns:
      the Video object itself.
    • stretchMode

      public StretchMode stretchMode()
      Get the stretchMode property: The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize.
      Returns:
      the stretchMode value.
    • withStretchMode

      public Video withStretchMode(StretchMode stretchMode)
      Set the stretchMode property: The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize.
      Parameters:
      stretchMode - the stretchMode value to set.
      Returns:
      the Video object itself.
    • syncMode

      public VideoSyncMode syncMode()
      Get the syncMode property: The Video Sync Mode.
      Returns:
      the syncMode value.
    • withSyncMode

      public Video withSyncMode(VideoSyncMode syncMode)
      Set the syncMode property: The Video Sync Mode.
      Parameters:
      syncMode - the syncMode value to set.
      Returns:
      the Video object itself.
    • withLabel

      public Video withLabel(String label)
      Set the label property: An optional label for the codec. The label can be used to control muxing behavior.
      Overrides:
      withLabel in class Codec
      Parameters:
      label - the label value to set.
      Returns:
      the Codec object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class Codec
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.