H264Video Class
Describes all the properties for encoding a video with the H.264 codec.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
azure.mgmt.media.models._models_py3.VideoH264Video
Constructor
H264Video(*, label: str | None = None, key_frame_interval: timedelta | None = None, stretch_mode: str | _models.StretchMode | None = None, sync_mode: str | _models.VideoSyncMode | None = None, complexity: str | _models.H264Complexity | None = None, layers: List[_models.H264Layer] | None = None, rate_control_mode: str | _models.H264RateControlMode | None = None, scene_change_detection: bool | None = None, **kwargs)
Keyword-Only Parameters
Name | Description |
---|---|
label
|
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
|
str or
StretchMode
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
|
str or
VideoSyncMode
The Video Sync Mode. Known values are: "Auto", "Passthrough", "Cfr", and "Vfr". |
complexity
|
Tells the encoder how to choose its encoding settings. The default value is Balanced. Known values are: "Speed", "Balanced", and "Quality". |
layers
|
The collection of output H.264 layers to be produced by the encoder. |
rate_control_mode
|
The video rate control mode. Known values are: "ABR", "CBR", and "CRF". |
scene_change_detection
|
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. |
Variables
Name | Description |
---|---|
odata_type
|
The discriminator for derived types. Required. |
label
|
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
|
str or
StretchMode
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
|
str or
VideoSyncMode
The Video Sync Mode. Known values are: "Auto", "Passthrough", "Cfr", and "Vfr". |
complexity
|
Tells the encoder how to choose its encoding settings. The default value is Balanced. Known values are: "Speed", "Balanced", and "Quality". |
layers
|
The collection of output H.264 layers to be produced by the encoder. |
rate_control_mode
|
The video rate control mode. Known values are: "ABR", "CBR", and "CRF". |
scene_change_detection
|
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. |
Azure SDK for Python