Class Video
java.lang.Object
com.azure.resourcemanager.mediaservices.models.Codec
com.azure.resourcemanager.mediaservices.models.Video
Describes the basic properties for encoding the input video.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the keyFrameInterval property: The distance between two key frames.Get the stretchMode property: The resizing mode - how the input video will be resized to fit the desired output resolution(s).syncMode()
Get the syncMode property: The Video Sync Mode.void
validate()
Validates the instance.withKeyFrameInterval
(Duration keyFrameInterval) Set the keyFrameInterval property: The distance between two key frames.Set the label property: An optional label for the codec.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.
-
Constructor Details
-
Video
public Video()Creates an instance of Video class.
-
-
Method Details
-
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
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
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
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
Get the syncMode property: The Video Sync Mode.- Returns:
- the syncMode value.
-
withSyncMode
Set the syncMode property: The Video Sync Mode.- 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 classCodec
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-