Class H265Video
java.lang.Object
com.azure.resourcemanager.mediaservices.models.Codec
com.azure.resourcemanager.mediaservices.models.Video
com.azure.resourcemanager.mediaservices.models.H265Video
Describes all the properties for encoding a video with the H.265 codec.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the complexity property: Tells the encoder how to choose its encoding settings.layers()
Get the layers property: The collection of output H.265 layers to be produced by the encoder.Get the sceneChangeDetection property: Specifies whether or not the encoder should insert key frames at scene changes.void
validate()
Validates the instance.withComplexity
(H265Complexity complexity) Set the complexity property: Tells the encoder how to choose its encoding settings.withKeyFrameInterval
(Duration keyFrameInterval) Set the keyFrameInterval property: The distance between two key frames.Set the label property: An optional label for the codec.withLayers
(List<H265Layer> layers) Set the layers property: The collection of output H.265 layers to be produced by the encoder.withSceneChangeDetection
(Boolean sceneChangeDetection) Set the sceneChangeDetection property: Specifies whether or not the encoder should insert key frames at scene changes.withStretchMode
(StretchMode stretchMode) Set the stretchMode property: The resizing mode - how the input video will be resized to fit the desired output resolution(s).withSyncMode
(VideoSyncMode syncMode) Set the syncMode property: The Video Sync Mode.Methods inherited from class com.azure.resourcemanager.mediaservices.models.Video
keyFrameInterval, stretchMode, syncMode
-
Constructor Details
-
H265Video
public H265Video()Creates an instance of H265Video class.
-
-
Method Details
-
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
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
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
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
Get the layers property: The collection of output H.265 layers to be produced by the encoder.- Returns:
- the layers value.
-
withLayers
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
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 classVideo
- Parameters:
keyFrameInterval
- the keyFrameInterval value to set.- Returns:
- the Video object itself.
-
withStretchMode
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 classVideo
- Parameters:
stretchMode
- the stretchMode value to set.- Returns:
- the Video object itself.
-
withSyncMode
Set the syncMode property: The Video Sync Mode.- Overrides:
withSyncMode
in classVideo
- Parameters:
syncMode
- the syncMode value to set.- Returns:
- the Video object itself.
-
withLabel
Set the label property: An optional label for the codec. The label can be used to control muxing behavior. -
validate
public void validate()Validates the instance.- Overrides:
validate
in classVideo
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-