All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.vod.v20180717.models.VideoTemplateInfo Maven / Gradle / Ivy

There is a newer version: 3.1.1104
Show newest version
/*
 * Copyright (c) 2017-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.
 */
package com.tencentcloudapi.vod.v20180717.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class VideoTemplateInfo extends AbstractModel{

    /**
    * 视频流的编码格式,可选值:
  • libx264:H.264 编码
  • libx265:H.265 编码
  • av1:AOMedia Video 1 编码
  • 目前 H.265 编码必须指定分辨率,并且需要在 640*480 以内。av1 编码容器目前只支持 mp4 。 */ @SerializedName("Codec") @Expose private String Codec; /** * 视频帧率,取值范围:[0, 100],单位:Hz。 当取值为 0,表示帧率和原始视频保持一致。 */ @SerializedName("Fps") @Expose private Long Fps; /** * 视频流的码率,取值范围:0 和 [128, 35000],单位:kbps。 当取值为 0,表示视频码率和原始视频保持一致。 */ @SerializedName("Bitrate") @Expose private Long Bitrate; /** * 分辨率自适应,可选值:
  • open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
  • close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
  • 默认值:open。 */ @SerializedName("ResolutionAdaptive") @Expose private String ResolutionAdaptive; /** * 视频流宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。 */ @SerializedName("Width") @Expose private Long Width; /** * 视频流高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。 */ @SerializedName("Height") @Expose private Long Height; /** * 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
  • stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
  • black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
  • white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
  • gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊填充。
  • 默认值:black 。 */ @SerializedName("FillType") @Expose private String FillType; /** * 视频恒定码率控制因子,取值范围为[1, 51]。 如果指定该参数,将使用 CRF 的码率控制方式做转码(视频码率将不再生效)。 如果没有特殊需求,不建议指定该参数。 */ @SerializedName("Vcrf") @Expose private Long Vcrf; /** * 关键帧 I 帧之间的间隔,取值范围:0 和 [1, 100000],单位:帧数。 当填 0 或不填时,系统将自动设置 gop 长度。 */ @SerializedName("Gop") @Expose private Long Gop; /** * Get 视频流的编码格式,可选值:
  • libx264:H.264 编码
  • libx265:H.265 编码
  • av1:AOMedia Video 1 编码
  • 目前 H.265 编码必须指定分辨率,并且需要在 640*480 以内。av1 编码容器目前只支持 mp4 。 * @return Codec 视频流的编码格式,可选值:
  • libx264:H.264 编码
  • libx265:H.265 编码
  • av1:AOMedia Video 1 编码
  • 目前 H.265 编码必须指定分辨率,并且需要在 640*480 以内。av1 编码容器目前只支持 mp4 。 */ public String getCodec() { return this.Codec; } /** * Set 视频流的编码格式,可选值:
  • libx264:H.264 编码
  • libx265:H.265 编码
  • av1:AOMedia Video 1 编码
  • 目前 H.265 编码必须指定分辨率,并且需要在 640*480 以内。av1 编码容器目前只支持 mp4 。 * @param Codec 视频流的编码格式,可选值:
  • libx264:H.264 编码
  • libx265:H.265 编码
  • av1:AOMedia Video 1 编码
  • 目前 H.265 编码必须指定分辨率,并且需要在 640*480 以内。av1 编码容器目前只支持 mp4 。 */ public void setCodec(String Codec) { this.Codec = Codec; } /** * Get 视频帧率,取值范围:[0, 100],单位:Hz。 当取值为 0,表示帧率和原始视频保持一致。 * @return Fps 视频帧率,取值范围:[0, 100],单位:Hz。 当取值为 0,表示帧率和原始视频保持一致。 */ public Long getFps() { return this.Fps; } /** * Set 视频帧率,取值范围:[0, 100],单位:Hz。 当取值为 0,表示帧率和原始视频保持一致。 * @param Fps 视频帧率,取值范围:[0, 100],单位:Hz。 当取值为 0,表示帧率和原始视频保持一致。 */ public void setFps(Long Fps) { this.Fps = Fps; } /** * Get 视频流的码率,取值范围:0 和 [128, 35000],单位:kbps。 当取值为 0,表示视频码率和原始视频保持一致。 * @return Bitrate 视频流的码率,取值范围:0 和 [128, 35000],单位:kbps。 当取值为 0,表示视频码率和原始视频保持一致。 */ public Long getBitrate() { return this.Bitrate; } /** * Set 视频流的码率,取值范围:0 和 [128, 35000],单位:kbps。 当取值为 0,表示视频码率和原始视频保持一致。 * @param Bitrate 视频流的码率,取值范围:0 和 [128, 35000],单位:kbps。 当取值为 0,表示视频码率和原始视频保持一致。 */ public void setBitrate(Long Bitrate) { this.Bitrate = Bitrate; } /** * Get 分辨率自适应,可选值:
  • open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
  • close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
  • 默认值:open。 * @return ResolutionAdaptive 分辨率自适应,可选值:
  • open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
  • close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
  • 默认值:open。 */ public String getResolutionAdaptive() { return this.ResolutionAdaptive; } /** * Set 分辨率自适应,可选值:
  • open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
  • close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
  • 默认值:open。 * @param ResolutionAdaptive 分辨率自适应,可选值:
  • open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
  • close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
  • 默认值:open。 */ public void setResolutionAdaptive(String ResolutionAdaptive) { this.ResolutionAdaptive = ResolutionAdaptive; } /** * Get 视频流宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。 * @return Width 视频流宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。 */ public Long getWidth() { return this.Width; } /** * Set 视频流宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。 * @param Width 视频流宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。 */ public void setWidth(Long Width) { this.Width = Width; } /** * Get 视频流高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。 * @return Height 视频流高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。 */ public Long getHeight() { return this.Height; } /** * Set 视频流高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。 * @param Height 视频流高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。 */ public void setHeight(Long Height) { this.Height = Height; } /** * Get 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
  • stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
  • black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
  • white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
  • gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊填充。
  • 默认值:black 。 * @return FillType 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
  • stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
  • black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
  • white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
  • gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊填充。
  • 默认值:black 。 */ public String getFillType() { return this.FillType; } /** * Set 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
  • stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
  • black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
  • white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
  • gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊填充。
  • 默认值:black 。 * @param FillType 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
  • stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
  • black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
  • white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
  • gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊填充。
  • 默认值:black 。 */ public void setFillType(String FillType) { this.FillType = FillType; } /** * Get 视频恒定码率控制因子,取值范围为[1, 51]。 如果指定该参数,将使用 CRF 的码率控制方式做转码(视频码率将不再生效)。 如果没有特殊需求,不建议指定该参数。 * @return Vcrf 视频恒定码率控制因子,取值范围为[1, 51]。 如果指定该参数,将使用 CRF 的码率控制方式做转码(视频码率将不再生效)。 如果没有特殊需求,不建议指定该参数。 */ public Long getVcrf() { return this.Vcrf; } /** * Set 视频恒定码率控制因子,取值范围为[1, 51]。 如果指定该参数,将使用 CRF 的码率控制方式做转码(视频码率将不再生效)。 如果没有特殊需求,不建议指定该参数。 * @param Vcrf 视频恒定码率控制因子,取值范围为[1, 51]。 如果指定该参数,将使用 CRF 的码率控制方式做转码(视频码率将不再生效)。 如果没有特殊需求,不建议指定该参数。 */ public void setVcrf(Long Vcrf) { this.Vcrf = Vcrf; } /** * Get 关键帧 I 帧之间的间隔,取值范围:0 和 [1, 100000],单位:帧数。 当填 0 或不填时,系统将自动设置 gop 长度。 * @return Gop 关键帧 I 帧之间的间隔,取值范围:0 和 [1, 100000],单位:帧数。 当填 0 或不填时,系统将自动设置 gop 长度。 */ public Long getGop() { return this.Gop; } /** * Set 关键帧 I 帧之间的间隔,取值范围:0 和 [1, 100000],单位:帧数。 当填 0 或不填时,系统将自动设置 gop 长度。 * @param Gop 关键帧 I 帧之间的间隔,取值范围:0 和 [1, 100000],单位:帧数。 当填 0 或不填时,系统将自动设置 gop 长度。 */ public void setGop(Long Gop) { this.Gop = Gop; } public VideoTemplateInfo() { } /** * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, * and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. */ public VideoTemplateInfo(VideoTemplateInfo source) { if (source.Codec != null) { this.Codec = new String(source.Codec); } if (source.Fps != null) { this.Fps = new Long(source.Fps); } if (source.Bitrate != null) { this.Bitrate = new Long(source.Bitrate); } if (source.ResolutionAdaptive != null) { this.ResolutionAdaptive = new String(source.ResolutionAdaptive); } if (source.Width != null) { this.Width = new Long(source.Width); } if (source.Height != null) { this.Height = new Long(source.Height); } if (source.FillType != null) { this.FillType = new String(source.FillType); } if (source.Vcrf != null) { this.Vcrf = new Long(source.Vcrf); } if (source.Gop != null) { this.Gop = new Long(source.Gop); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "Codec", this.Codec); this.setParamSimple(map, prefix + "Fps", this.Fps); this.setParamSimple(map, prefix + "Bitrate", this.Bitrate); this.setParamSimple(map, prefix + "ResolutionAdaptive", this.ResolutionAdaptive); this.setParamSimple(map, prefix + "Width", this.Width); this.setParamSimple(map, prefix + "Height", this.Height); this.setParamSimple(map, prefix + "FillType", this.FillType); this.setParamSimple(map, prefix + "Vcrf", this.Vcrf); this.setParamSimple(map, prefix + "Gop", this.Gop); } }




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy