VideoLayer Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
VideoLayer() |
Initializes a new instance of the VideoLayer class. |
VideoLayer(Int32, String, String, String, Nullable<Int32>, Nullable<Int32>, String, Nullable<Int32>, Nullable<Boolean>) |
Initializes a new instance of the VideoLayer class. |
VideoLayer()
Initializes a new instance of the VideoLayer class.
public VideoLayer ();
Public Sub New ()
Applies to
VideoLayer(Int32, String, String, String, Nullable<Int32>, Nullable<Int32>, String, Nullable<Int32>, Nullable<Boolean>)
Initializes a new instance of the VideoLayer class.
public VideoLayer (int bitrate, string width = default, string height = default, string label = default, int? maxBitrate = default, int? bFrames = default, string frameRate = default, int? slices = default, bool? adaptiveBFrame = default);
new Microsoft.Azure.Management.Media.Models.VideoLayer : int * string * string * string * Nullable<int> * Nullable<int> * string * Nullable<int> * Nullable<bool> -> Microsoft.Azure.Management.Media.Models.VideoLayer
Public Sub New (bitrate As Integer, Optional width As String = Nothing, Optional height As String = Nothing, Optional label As String = Nothing, Optional maxBitrate As Nullable(Of Integer) = Nothing, Optional bFrames As Nullable(Of Integer) = Nothing, Optional frameRate As String = Nothing, Optional slices As Nullable(Of Integer) = Nothing, Optional adaptiveBFrame As Nullable(Of Boolean) = Nothing)
Parameters
- bitrate
- Int32
The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field.
- width
- String
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
- String
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
- String
The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.
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.
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.
- frameRate
- String
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.
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.
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.
Applies to
Azure SDK for .NET