Share via


H264Layer Constructors

Definition

Overloads

H264Layer()

Initializes a new instance of the H264Layer class.

H264Layer(Int32, String, String, String, Nullable<Int32>, Nullable<Int32>, String, Nullable<Int32>, Nullable<Boolean>, Nullable<H264VideoProfile>, String, Nullable<TimeSpan>, Nullable<Double>, Nullable<Int32>, Nullable<EntropyMode>)

Initializes a new instance of the H264Layer class.

H264Layer()

Initializes a new instance of the H264Layer class.

public H264Layer ();
Public Sub New ()

Applies to

H264Layer(Int32, String, String, String, Nullable<Int32>, Nullable<Int32>, String, Nullable<Int32>, Nullable<Boolean>, Nullable<H264VideoProfile>, String, Nullable<TimeSpan>, Nullable<Double>, Nullable<Int32>, Nullable<EntropyMode>)

Initializes a new instance of the H264Layer class.

public H264Layer (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, Microsoft.Azure.Management.Media.Models.H264VideoProfile? profile = default, string level = default, TimeSpan? bufferWindow = default, double? crf = default, int? referenceFrames = default, Microsoft.Azure.Management.Media.Models.EntropyMode? entropyMode = default);
new Microsoft.Azure.Management.Media.Models.H264Layer : int * string * string * string * Nullable<int> * Nullable<int> * string * Nullable<int> * Nullable<bool> * Nullable<Microsoft.Azure.Management.Media.Models.H264VideoProfile> * string * Nullable<TimeSpan> * Nullable<double> * Nullable<int> * Nullable<Microsoft.Azure.Management.Media.Models.EntropyMode> -> Microsoft.Azure.Management.Media.Models.H264Layer
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, Optional profile As Nullable(Of H264VideoProfile) = Nothing, Optional level As String = Nothing, Optional bufferWindow As Nullable(Of TimeSpan) = Nothing, Optional crf As Nullable(Of Double) = Nothing, Optional referenceFrames As Nullable(Of Integer) = Nothing, Optional entropyMode As Nullable(Of EntropyMode) = 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.

maxBitrate
Nullable<Int32>

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.

bFrames
Nullable<Int32>

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.

slices
Nullable<Int32>

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.

adaptiveBFrame
Nullable<Boolean>

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.

profile
Nullable<H264VideoProfile>

We currently support Baseline, Main, High, High422, High444. Default is Auto. Possible values include: 'Auto', 'Baseline', 'Main', 'High', 'High422', 'High444'

level
String

We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer.

bufferWindow
Nullable<TimeSpan>

The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S).

crf
Nullable<Double>

The value of CRF to be used when encoding this layer. This setting takes effect when RateControlMode of video codec is set at CRF mode. The range of CRF value is between 0 and 51, where lower values would result in better quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality degradation will be noticed. Default value is 23.

referenceFrames
Nullable<Int32>

The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting.

entropyMode
Nullable<EntropyMode>

The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level. Possible values include: 'Cabac', 'Cavlc'

Applies to