/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Live.V20180801.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyLiveTranscodeTemplateRequest : AbstractModel
{
///
/// 模板 Id。
///
[JsonProperty("TemplateId")]
public long? TemplateId{ get; set; }
///
/// 视频编码:
/// h264/h265。
///
[JsonProperty("Vcodec")]
public string Vcodec{ get; set; }
///
/// 音频编码:
/// aac/mp3。
///
[JsonProperty("Acodec")]
public string Acodec{ get; set; }
///
/// 音频码率,默认0。
/// 范围:0-500。
///
[JsonProperty("AudioBitrate")]
public long? AudioBitrate{ get; set; }
///
/// 模板描述。
///
[JsonProperty("Description")]
public string Description{ get; set; }
///
/// 视频码率。
/// 范围:100-8000。
///
[JsonProperty("VideoBitrate")]
public long? VideoBitrate{ get; set; }
///
/// 宽。0-3000。
///
[JsonProperty("Width")]
public long? Width{ get; set; }
///
/// 是否保留视频,0:否,1:是。默认1。
///
[JsonProperty("NeedVideo")]
public long? NeedVideo{ get; set; }
///
/// 是否保留音频,0:否,1:是。默认1。
///
[JsonProperty("NeedAudio")]
public long? NeedAudio{ get; set; }
///
/// 高。0-3000。
///
[JsonProperty("Height")]
public long? Height{ get; set; }
///
/// 帧率。0-200。
///
[JsonProperty("Fps")]
public long? Fps{ get; set; }
///
/// 关键帧间隔,单位:秒。0-50。
///
[JsonProperty("Gop")]
public long? Gop{ get; set; }
///
/// 旋转角度。
/// 0 90 180 270。
///
[JsonProperty("Rotate")]
public long? Rotate{ get; set; }
///
/// 编码质量:
/// baseline/main/high。
///
[JsonProperty("Profile")]
public string Profile{ get; set; }
///
/// 是否不超过原始码率。0:否,1:是。默认0。
///
[JsonProperty("BitrateToOrig")]
public long? BitrateToOrig{ get; set; }
///
/// 是否不超过原始高。0:否,1:是。默认0。
///
[JsonProperty("HeightToOrig")]
public long? HeightToOrig{ get; set; }
///
/// 是否不超过原始帧率。0:否,1:是。默认0。
///
[JsonProperty("FpsToOrig")]
public long? FpsToOrig{ get; set; }
///
/// 极速高清相比 VideoBitrate 少多少码率,0.1到0.5。
///
[JsonProperty("AdaptBitratePercent")]
public float? AdaptBitratePercent{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "TemplateId", this.TemplateId);
this.SetParamSimple(map, prefix + "Vcodec", this.Vcodec);
this.SetParamSimple(map, prefix + "Acodec", this.Acodec);
this.SetParamSimple(map, prefix + "AudioBitrate", this.AudioBitrate);
this.SetParamSimple(map, prefix + "Description", this.Description);
this.SetParamSimple(map, prefix + "VideoBitrate", this.VideoBitrate);
this.SetParamSimple(map, prefix + "Width", this.Width);
this.SetParamSimple(map, prefix + "NeedVideo", this.NeedVideo);
this.SetParamSimple(map, prefix + "NeedAudio", this.NeedAudio);
this.SetParamSimple(map, prefix + "Height", this.Height);
this.SetParamSimple(map, prefix + "Fps", this.Fps);
this.SetParamSimple(map, prefix + "Gop", this.Gop);
this.SetParamSimple(map, prefix + "Rotate", this.Rotate);
this.SetParamSimple(map, prefix + "Profile", this.Profile);
this.SetParamSimple(map, prefix + "BitrateToOrig", this.BitrateToOrig);
this.SetParamSimple(map, prefix + "HeightToOrig", this.HeightToOrig);
this.SetParamSimple(map, prefix + "FpsToOrig", this.FpsToOrig);
this.SetParamSimple(map, prefix + "AdaptBitratePercent", this.AdaptBitratePercent);
}
}
}