Class VideoEncoderH264
- java.lang.Object
-
- com.azure.resourcemanager.videoanalyzer.models.VideoEncoderBase
-
- com.azure.resourcemanager.videoanalyzer.models.VideoEncoderH264
-
public final class VideoEncoderH264 extends VideoEncoderBase
A custom preset for encoding video with the H.264 (AVC) codec.
-
-
Constructor Summary
Constructors Constructor Description VideoEncoderH264()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate()Validates the instance.VideoEncoderH264withBitrateKbps(String bitrateKbps)Set the bitrateKbps property: The maximum bitrate, in kilobits per second or Kbps, at which video should be encoded.VideoEncoderH264withFrameRate(String frameRate)Set the frameRate property: The frame rate (in frames per second) of the encoded video.VideoEncoderH264withScale(VideoScale scale)Set the scale property: Describes the resolution of the encoded video.-
Methods inherited from class com.azure.resourcemanager.videoanalyzer.models.VideoEncoderBase
bitrateKbps, frameRate, scale
-
-
-
-
Method Detail
-
withBitrateKbps
public VideoEncoderH264 withBitrateKbps(String bitrateKbps)
Set the bitrateKbps property: The maximum bitrate, in kilobits per second or Kbps, at which video should be encoded. If omitted, encoder sets it automatically to try and match the quality of the input video.- Overrides:
withBitrateKbpsin classVideoEncoderBase- Parameters:
bitrateKbps- the bitrateKbps value to set.- Returns:
- the VideoEncoderBase object itself.
-
withFrameRate
public VideoEncoderH264 withFrameRate(String frameRate)
Set the frameRate property: The frame rate (in frames per second) of the encoded video. The value must be greater than zero, and less than or equal to 300. If omitted, the encoder uses the average frame rate of the input video.- Overrides:
withFrameRatein classVideoEncoderBase- Parameters:
frameRate- the frameRate value to set.- Returns:
- the VideoEncoderBase object itself.
-
withScale
public VideoEncoderH264 withScale(VideoScale scale)
Set the scale property: Describes the resolution of the encoded video. If omitted, the encoder uses the resolution of the input video.- Overrides:
withScalein classVideoEncoderBase- Parameters:
scale- the scale value to set.- Returns:
- the VideoEncoderBase object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classVideoEncoderBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-