H265VideoLayer Class
Describes the settings to be used when encoding the input video into a desired output bitrate layer.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
azure.mgmt.media.models._models_py3.LayerH265VideoLayer
Constructor
H265VideoLayer(*, bitrate: int, width: Optional[str] = None, height: Optional[str] = None, label: Optional[str] = None, max_bitrate: Optional[int] = None, b_frames: Optional[int] = None, frame_rate: Optional[str] = None, slices: Optional[int] = None, adaptive_b_frame: Optional[bool] = None, **kwargs)
Variables
- width
- str
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
- str
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
- str
The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.
- bitrate
- int
Required. The average bitrate in bits per second at which to encode the input video when generating this layer. For example: a target bitrate of 3000Kbps or 3Mbps means this value should be 3000000 This is a required field.
- max_bitrate
- int
The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate.
- b_frames
- int
The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level.
- frame_rate
- str
The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video.
- slices
- int
The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame.
- adaptive_b_frame
- bool
Specifies whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use.
Feedback
Submit and view feedback for