Video Class

Describes the basic properties for encoding the input video.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: H264Video, H265Video, Image

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.media.models._models_py3.Codec
Video

Constructor

Video(*, label: str | None = None, key_frame_interval: timedelta | None = None, stretch_mode: str | _models.StretchMode | None = None, sync_mode: str | _models.VideoSyncMode | None = None, **kwargs)

Keyword-Only Parameters

Name Description
label
str

An optional label for the codec. The label can be used to control muxing behavior.

key_frame_interval

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.

stretch_mode

The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize. Known values are: "None", "AutoSize", and "AutoFit".

sync_mode

The Video Sync Mode. Known values are: "Auto", "Passthrough", "Cfr", and "Vfr".

Variables

Name Description
odata_type
str

The discriminator for derived types. Required.

label
str

An optional label for the codec. The label can be used to control muxing behavior.

key_frame_interval

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.

stretch_mode

The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize. Known values are: "None", "AutoSize", and "AutoFit".

sync_mode

The Video Sync Mode. Known values are: "Auto", "Passthrough", "Cfr", and "Vfr".