你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
H265Layer 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
H265Layer()
初始化 H265Layer 类的新实例。
public H265Layer ();
Public Sub New ()
适用于
H265Layer(Int32, String, String, String, Nullable<Int32>, Nullable<Int32>, String, Nullable<Int32>, Nullable<Boolean>, Nullable<H265VideoProfile>, String, Nullable<TimeSpan>, Nullable<Double>, Nullable<Int32>)
初始化 H265Layer 类的新实例。
public H265Layer (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.H265VideoProfile? profile = default, string level = default, TimeSpan? bufferWindow = default, double? crf = default, int? referenceFrames = default);
new Microsoft.Azure.Management.Media.Models.H265Layer : int * string * string * string * Nullable<int> * Nullable<int> * string * Nullable<int> * Nullable<bool> * Nullable<Microsoft.Azure.Management.Media.Models.H265VideoProfile> * string * Nullable<TimeSpan> * Nullable<double> * Nullable<int> -> Microsoft.Azure.Management.Media.Models.H265Layer
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 H265VideoProfile) = 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)
参数
- bitrate
- Int32
生成此层时对输入视频进行编码的平均比特率(以位/秒为单位)。 例如:目标比特率为 3000Kbps 或 3Mbps 意味着此值应为 3000000 这是必填字段。
- width
- String
此层的输出视频的宽度。 该值可以是绝对 (像素) ,也可以是相对 (百分比) 。 例如,50% 表示输出视频的像素宽度是输入的一半。
- height
- String
此层的输出视频的高度。 该值可以是绝对 (像素) ,也可以是相对 (百分比) 。 例如,50% 表示输出视频的高度为输入的一半像素。
- label
- String
此层的字母数字标签,可用于多路复用不同的视频和音频层或命名输出文件。
- frameRate
- String
帧速率 (为此层编码) 每秒帧数。 该值可以采用 M/N 的形式,其中 M 和 N 是整数 (例如,30000/1001) ,或者以数字的形式 (例如,30 或 29.97) 。 编码器根据配置文件和级别对允许的帧速率强制实施约束。 如果未指定,编码器将使用与输入视频相同的帧速率。
- profile
- Nullable<H265VideoProfile>
我们目前支持 Main。 默认值为 Auto。可能的值包括:“Auto”、“Main”、“Main10”
- level
- String
我们目前支持最高级别 6.2。 该值可以是 Auto,也可以是与 H.265 配置文件匹配的数字。 如果未指定,则默认值为“自动”,这允许编码器选择适合此层的级别。
VBV 缓冲区窗口长度。 该值应采用 ISO 8601 格式。 该值应在 [0.1-100] 秒范围内。 默认值为 5 秒 (例如 PT5S) 。
编码此层时要使用的 CRF 值。 此设置在 CRF 模式下设置视频编解码器的 RateControlMode 时生效。 CRF 值的范围在 0 到 51 之间,其中值越低,质量越好,代价是文件大小越大。 值越高意味着压缩程度越高,但在某些时候会注意到质量下降。 默认值为 28。