Layer Class
The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution.
- Inheritance
-
azure.mgmt.media._serialization.ModelLayer
Constructor
Layer(*, width: str | None = None, height: str | None = None, label: str | None = None, **kwargs)
Keyword-Only Parameters
Name | Description |
---|---|
width
|
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. |
height
|
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. |
label
|
The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file. |
Variables
Name | Description |
---|---|
width
|
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. |
height
|
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. |
label
|
The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file. |
Azure SDK for Python