public final class H265Video extends Video
Describes all the properties for encoding a video with the H.265 codec.
  • Constructor Details

    • H265Video

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

    • sceneChangeDetection

      public Boolean sceneChangeDetection()
      Get the sceneChangeDetection property: Specifies whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video.
      Returns:
      the sceneChangeDetection value.
    • withSceneChangeDetection

      public H265Video withSceneChangeDetection(Boolean sceneChangeDetection)
      Set the sceneChangeDetection property: Specifies whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video.
      Parameters:
      sceneChangeDetection - the sceneChangeDetection value to set.
      Returns:
      the H265Video object itself.
    • complexity

      public H265Complexity complexity()
      Get the complexity property: Tells the encoder how to choose its encoding settings. Quality will provide for a higher compression ratio but at a higher cost and longer compute time. Speed will produce a relatively larger file but is faster and more economical. The default value is Balanced.
      Returns:
      the complexity value.
    • withComplexity

      public H265Video withComplexity(H265Complexity complexity)
      Set the complexity property: Tells the encoder how to choose its encoding settings. Quality will provide for a higher compression ratio but at a higher cost and longer compute time. Speed will produce a relatively larger file but is faster and more economical. The default value is Balanced.
      Parameters:
      complexity - the complexity value to set.
      Returns:
      the H265Video object itself.
    • layers

      public List<H265Layer> layers()
      Get the layers property: The collection of output H.265 layers to be produced by the encoder.
      Returns:
      the layers value.
    • withLayers

      public H265Video withLayers(List<H265Layer> layers)
      Set the layers property: The collection of output H.265 layers to be produced by the encoder.
      Parameters:
      layers - the layers value to set.
      Returns:
      the H265Video object itself.
    • withKeyFrameInterval

      public H265Video 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.
      Overrides:
      withKeyFrameInterval in class Video
      Parameters:
      keyFrameInterval - the keyFrameInterval value to set.
      Returns:
      the Video object itself.
    • withStretchMode

      public H265Video 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.
      Overrides:
      withStretchMode in class Video
      Parameters:
      stretchMode - the stretchMode value to set.
      Returns:
      the Video object itself.
    • withSyncMode

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

      public H265Video 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 Video
      Parameters:
      label - the label value to set.
      Returns:
      the Codec object itself.
    • validate

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