Bagikan melalui


VideoLayer Class

Definition

Describes the settings to be used when encoding the input video into a desired output bitrate layer.

public class VideoLayer : Microsoft.Azure.Management.Media.Models.Layer
type VideoLayer = class
    inherit Layer
Public Class VideoLayer
Inherits Layer
Inheritance
VideoLayer
Derived

Constructors

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.

Properties

AdaptiveBFrame

Gets or sets 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.

BFrames

Gets or sets 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.

Bitrate

Gets or sets the average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field.

FrameRate

Gets or sets 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.

Height

Gets or sets 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.

(Inherited from Layer)
Label

Gets or sets the alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.

(Inherited from Layer)
MaxBitrate

Gets or sets 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.

Slices

Gets or sets 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.

Width

Gets or sets 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.

(Inherited from Layer)

Methods

Validate()

Validate the object.

Applies to