Class H265VideoLayer
java.lang.Object
com.azure.resourcemanager.mediaservices.models.Layer
com.azure.resourcemanager.mediaservices.models.H265VideoLayer
- Direct Known Subclasses:
H265Layer
Describes the settings to be used when encoding the input video into a desired output bitrate layer.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the adaptiveBFrame property: Specifies whether or not adaptive B-frames are to be used when encoding this layer.bFrames()
Get the bFrames property: The number of B-frames to be used when encoding this layer.int
bitrate()
Get the bitrate property: The average bitrate in bits per second at which to encode the input video when generating this layer.Get the frameRate property: The frame rate (in frames per second) at which to encode this layer.Get the maxBitrate property: The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill.slices()
Get the slices property: The number of slices to be used when encoding this layer.void
validate()
Validates the instance.withAdaptiveBFrame
(Boolean adaptiveBFrame) Set the adaptiveBFrame property: Specifies whether or not adaptive B-frames are to be used when encoding this layer.withBFrames
(Integer bFrames) Set the bFrames property: The number of B-frames to be used when encoding this layer.withBitrate
(int bitrate) Set the bitrate property: The average bitrate in bits per second at which to encode the input video when generating this layer.withFrameRate
(String frameRate) Set the frameRate property: The frame rate (in frames per second) at which to encode this layer.withHeight
(String height) Set the height property: The height of the output video for this layer.Set the label property: The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.withMaxBitrate
(Integer maxBitrate) Set the maxBitrate property: The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill.withSlices
(Integer slices) Set the slices property: The number of slices to be used when encoding this layer.Set the width property: The width of the output video for this layer.
-
Constructor Details
-
H265VideoLayer
public H265VideoLayer()Creates an instance of H265VideoLayer class.
-
-
Method Details
-
bitrate
public int bitrate()Get the bitrate property: The average bitrate in bits per second at which to encode the input video when generating this layer. For example: a target bitrate of 3000Kbps or 3Mbps means this value should be 3000000 This is a required field.- Returns:
- the bitrate value.
-
withBitrate
Set the bitrate property: The average bitrate in bits per second at which to encode the input video when generating this layer. For example: a target bitrate of 3000Kbps or 3Mbps means this value should be 3000000 This is a required field.- Parameters:
bitrate
- the bitrate value to set.- Returns:
- the H265VideoLayer object itself.
-
maxBitrate
Get the maxBitrate property: The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate.- Returns:
- the maxBitrate value.
-
withMaxBitrate
Set the maxBitrate property: The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate.- Parameters:
maxBitrate
- the maxBitrate value to set.- Returns:
- the H265VideoLayer object itself.
-
bFrames
Get the bFrames property: The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level.- Returns:
- the bFrames value.
-
withBFrames
Set the bFrames property: The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level.- Parameters:
bFrames
- the bFrames value to set.- Returns:
- the H265VideoLayer object itself.
-
frameRate
Get the frameRate property: The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video.- Returns:
- the frameRate value.
-
withFrameRate
Set the frameRate property: The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video.- Parameters:
frameRate
- the frameRate value to set.- Returns:
- the H265VideoLayer object itself.
-
slices
Get the slices property: The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame.- Returns:
- the slices value.
-
withSlices
Set the slices property: The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame.- Parameters:
slices
- the slices value to set.- Returns:
- the H265VideoLayer object itself.
-
adaptiveBFrame
Get the adaptiveBFrame property: Specifies whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use.- Returns:
- the adaptiveBFrame value.
-
withAdaptiveBFrame
Set the adaptiveBFrame property: Specifies whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use.- Parameters:
adaptiveBFrame
- the adaptiveBFrame value to set.- Returns:
- the H265VideoLayer object itself.
-
withWidth
Set the width property: The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input. -
withHeight
Set the height property: The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input.- Overrides:
withHeight
in classLayer
- Parameters:
height
- the height value to set.- Returns:
- the Layer object itself.
-
withLabel
Set the label property: The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file. -
validate
public void validate()Validates the instance.- Overrides:
validate
in classLayer
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-