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

com.tencentcloudapi.cme.v20191029.models.VideoEncodingPresetVideoSetting Maven / Gradle / Ivy

/*
 * 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.cme.v20191029.models;

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

public class VideoEncodingPresetVideoSetting extends AbstractModel{

    /**
    * 视频流的编码格式,可选值:
  • H264:H.264 编码。
  • */ @SerializedName("Codec") @Expose private String Codec; /** * 视频短边尺寸,取值范围: [128, 4096],单位:px。 视频最后的分辨率,根据短边尺寸和宽高比进行计算。 例:如果项目的宽高比是 16:9 :
  • 短边尺寸为 1080,则导出视频的分辨率为 1920 * 1080。
  • 短边尺寸为 720,则导出视频的分辨率为 1280 * 720。
  • 如果项目的宽高比是 9:16 :
  • 短边尺寸为 1080,则导出视频的分辨率为 1080 * 1920。
  • 短边尺寸为 720,则导出视频的分辨率为 720 * 1280。
  • 默认值:1080。 */ @SerializedName("ShortEdge") @Expose private Long ShortEdge; /** * 指定码率,单位 bps。当该参数为'0'时则不强制限定码率。 默认值:0。 */ @SerializedName("Bitrate") @Expose private Long Bitrate; /** * Get 视频流的编码格式,可选值:
  • H264:H.264 编码。
  • * @return Codec 视频流的编码格式,可选值:
  • H264:H.264 编码。
  • */ public String getCodec() { return this.Codec; } /** * Set 视频流的编码格式,可选值:
  • H264:H.264 编码。
  • * @param Codec 视频流的编码格式,可选值:
  • H264:H.264 编码。
  • */ public void setCodec(String Codec) { this.Codec = Codec; } /** * Get 视频短边尺寸,取值范围: [128, 4096],单位:px。 视频最后的分辨率,根据短边尺寸和宽高比进行计算。 例:如果项目的宽高比是 16:9 :
  • 短边尺寸为 1080,则导出视频的分辨率为 1920 * 1080。
  • 短边尺寸为 720,则导出视频的分辨率为 1280 * 720。
  • 如果项目的宽高比是 9:16 :
  • 短边尺寸为 1080,则导出视频的分辨率为 1080 * 1920。
  • 短边尺寸为 720,则导出视频的分辨率为 720 * 1280。
  • 默认值:1080。 * @return ShortEdge 视频短边尺寸,取值范围: [128, 4096],单位:px。 视频最后的分辨率,根据短边尺寸和宽高比进行计算。 例:如果项目的宽高比是 16:9 :
  • 短边尺寸为 1080,则导出视频的分辨率为 1920 * 1080。
  • 短边尺寸为 720,则导出视频的分辨率为 1280 * 720。
  • 如果项目的宽高比是 9:16 :
  • 短边尺寸为 1080,则导出视频的分辨率为 1080 * 1920。
  • 短边尺寸为 720,则导出视频的分辨率为 720 * 1280。
  • 默认值:1080。 */ public Long getShortEdge() { return this.ShortEdge; } /** * Set 视频短边尺寸,取值范围: [128, 4096],单位:px。 视频最后的分辨率,根据短边尺寸和宽高比进行计算。 例:如果项目的宽高比是 16:9 :
  • 短边尺寸为 1080,则导出视频的分辨率为 1920 * 1080。
  • 短边尺寸为 720,则导出视频的分辨率为 1280 * 720。
  • 如果项目的宽高比是 9:16 :
  • 短边尺寸为 1080,则导出视频的分辨率为 1080 * 1920。
  • 短边尺寸为 720,则导出视频的分辨率为 720 * 1280。
  • 默认值:1080。 * @param ShortEdge 视频短边尺寸,取值范围: [128, 4096],单位:px。 视频最后的分辨率,根据短边尺寸和宽高比进行计算。 例:如果项目的宽高比是 16:9 :
  • 短边尺寸为 1080,则导出视频的分辨率为 1920 * 1080。
  • 短边尺寸为 720,则导出视频的分辨率为 1280 * 720。
  • 如果项目的宽高比是 9:16 :
  • 短边尺寸为 1080,则导出视频的分辨率为 1080 * 1920。
  • 短边尺寸为 720,则导出视频的分辨率为 720 * 1280。
  • 默认值:1080。 */ public void setShortEdge(Long ShortEdge) { this.ShortEdge = ShortEdge; } /** * Get 指定码率,单位 bps。当该参数为'0'时则不强制限定码率。 默认值:0。 * @return Bitrate 指定码率,单位 bps。当该参数为'0'时则不强制限定码率。 默认值:0。 */ public Long getBitrate() { return this.Bitrate; } /** * Set 指定码率,单位 bps。当该参数为'0'时则不强制限定码率。 默认值:0。 * @param Bitrate 指定码率,单位 bps。当该参数为'0'时则不强制限定码率。 默认值:0。 */ public void setBitrate(Long Bitrate) { this.Bitrate = Bitrate; } public VideoEncodingPresetVideoSetting() { } /** * 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 VideoEncodingPresetVideoSetting(VideoEncodingPresetVideoSetting source) { if (source.Codec != null) { this.Codec = new String(source.Codec); } if (source.ShortEdge != null) { this.ShortEdge = new Long(source.ShortEdge); } if (source.Bitrate != null) { this.Bitrate = new Long(source.Bitrate); } } /** * 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 + "ShortEdge", this.ShortEdge); this.setParamSimple(map, prefix + "Bitrate", this.Bitrate); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy