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

com.tencentcloudapi.mps.v20190612.models.VideoTemplateInfoForUpdate 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.mps.v20190612.models;

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

public class VideoTemplateInfoForUpdate extends AbstractModel{

    /**
    * The video codec. Valid values:
  • libx264: H.264
  • libx265: H.265
  • av1: AOMedia Video 1
  • Note: You must specify a resolution (not higher than 640 x 480) if the H.265 codec is used. Note: You can only use the AOMedia Video 1 codec for MP4 files. */ @SerializedName("Codec") @Expose private String Codec; /** * Video frame rate in Hz. Value range: [0, 100]. If the value is 0, the frame rate will be the same as that of the source video. */ @SerializedName("Fps") @Expose private Long Fps; /** * Bitrate of a video stream in Kbps. Value range: 0 and [128, 35,000]. If the value is 0, the bitrate of the video will be the same as that of the source video. */ @SerializedName("Bitrate") @Expose private Long Bitrate; /** * Resolution adaption. Valid values:
  • open: Enabled. When resolution adaption is enabled, `Width` indicates the long side of a video, while `Height` indicates the short side.
  • close: Disabled. When resolution adaption is disabled, `Width` indicates the width of a video, while `Height` indicates the height.
  • Note: When resolution adaption is enabled, `Width` cannot be smaller than `Height`. */ @SerializedName("ResolutionAdaptive") @Expose private String ResolutionAdaptive; /** * Maximum value of the width (or long side) of a video stream in px. Value range: 0 and [128, 4,096].
  • If both `Width` and `Height` are 0, the resolution will be the same as that of the source video;
  • If `Width` is 0, but `Height` is not 0, `Width` will be proportionally scaled;
  • If `Width` is not 0, but `Height` is 0, `Height` will be proportionally scaled;
  • If both `Width` and `Height` are not 0, the custom resolution will be used.
  • */ @SerializedName("Width") @Expose private Long Width; /** * Maximum value of the height (or short side) of a video stream in px. Value range: 0 and [128, 4,096]. */ @SerializedName("Height") @Expose private Long Height; /** * Frame interval between I keyframes. Value range: 0 and [1,100000]. If this parameter is 0, the system will automatically set the GOP length. */ @SerializedName("Gop") @Expose private Long Gop; /** * Fill type. "Fill" refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported:
  • stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot "shorter" or "longer";
  • black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks.
  • white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks.
  • gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur.
  • */ @SerializedName("FillType") @Expose private String FillType; /** * The control factor of video constant bitrate. Value range: [0, 51]. This parameter will be disabled if you enter `0`. It is not recommended to specify this parameter if there are no special requirements. */ @SerializedName("Vcrf") @Expose private Long Vcrf; /** * Whether to enable adaptive encoding. Valid values:
  • 0: Disable
  • 1: Enable
  • Default value: 0. If this parameter is set to `1`, multiple streams with different resolutions and bitrates will be generated automatically. The highest resolution, bitrate, and quality of the streams are determined by the values of `width` and `height`, `Bitrate`, and `Vcrf` in `VideoTemplate` respectively. If these parameters are not set in `VideoTemplate`, the highest resolution generated will be the same as that of the source video, and the highest video quality will be close to VMAF 95. To use this parameter or learn about the billing details of adaptive encoding, please contact your sales rep. */ @SerializedName("ContentAdaptStream") @Expose private Long ContentAdaptStream; /** * Get The video codec. Valid values:
  • libx264: H.264
  • libx265: H.265
  • av1: AOMedia Video 1
  • Note: You must specify a resolution (not higher than 640 x 480) if the H.265 codec is used. Note: You can only use the AOMedia Video 1 codec for MP4 files. * @return Codec The video codec. Valid values:
  • libx264: H.264
  • libx265: H.265
  • av1: AOMedia Video 1
  • Note: You must specify a resolution (not higher than 640 x 480) if the H.265 codec is used. Note: You can only use the AOMedia Video 1 codec for MP4 files. */ public String getCodec() { return this.Codec; } /** * Set The video codec. Valid values:
  • libx264: H.264
  • libx265: H.265
  • av1: AOMedia Video 1
  • Note: You must specify a resolution (not higher than 640 x 480) if the H.265 codec is used. Note: You can only use the AOMedia Video 1 codec for MP4 files. * @param Codec The video codec. Valid values:
  • libx264: H.264
  • libx265: H.265
  • av1: AOMedia Video 1
  • Note: You must specify a resolution (not higher than 640 x 480) if the H.265 codec is used. Note: You can only use the AOMedia Video 1 codec for MP4 files. */ public void setCodec(String Codec) { this.Codec = Codec; } /** * Get Video frame rate in Hz. Value range: [0, 100]. If the value is 0, the frame rate will be the same as that of the source video. * @return Fps Video frame rate in Hz. Value range: [0, 100]. If the value is 0, the frame rate will be the same as that of the source video. */ public Long getFps() { return this.Fps; } /** * Set Video frame rate in Hz. Value range: [0, 100]. If the value is 0, the frame rate will be the same as that of the source video. * @param Fps Video frame rate in Hz. Value range: [0, 100]. If the value is 0, the frame rate will be the same as that of the source video. */ public void setFps(Long Fps) { this.Fps = Fps; } /** * Get Bitrate of a video stream in Kbps. Value range: 0 and [128, 35,000]. If the value is 0, the bitrate of the video will be the same as that of the source video. * @return Bitrate Bitrate of a video stream in Kbps. Value range: 0 and [128, 35,000]. If the value is 0, the bitrate of the video will be the same as that of the source video. */ public Long getBitrate() { return this.Bitrate; } /** * Set Bitrate of a video stream in Kbps. Value range: 0 and [128, 35,000]. If the value is 0, the bitrate of the video will be the same as that of the source video. * @param Bitrate Bitrate of a video stream in Kbps. Value range: 0 and [128, 35,000]. If the value is 0, the bitrate of the video will be the same as that of the source video. */ public void setBitrate(Long Bitrate) { this.Bitrate = Bitrate; } /** * Get Resolution adaption. Valid values:
  • open: Enabled. When resolution adaption is enabled, `Width` indicates the long side of a video, while `Height` indicates the short side.
  • close: Disabled. When resolution adaption is disabled, `Width` indicates the width of a video, while `Height` indicates the height.
  • Note: When resolution adaption is enabled, `Width` cannot be smaller than `Height`. * @return ResolutionAdaptive Resolution adaption. Valid values:
  • open: Enabled. When resolution adaption is enabled, `Width` indicates the long side of a video, while `Height` indicates the short side.
  • close: Disabled. When resolution adaption is disabled, `Width` indicates the width of a video, while `Height` indicates the height.
  • Note: When resolution adaption is enabled, `Width` cannot be smaller than `Height`. */ public String getResolutionAdaptive() { return this.ResolutionAdaptive; } /** * Set Resolution adaption. Valid values:
  • open: Enabled. When resolution adaption is enabled, `Width` indicates the long side of a video, while `Height` indicates the short side.
  • close: Disabled. When resolution adaption is disabled, `Width` indicates the width of a video, while `Height` indicates the height.
  • Note: When resolution adaption is enabled, `Width` cannot be smaller than `Height`. * @param ResolutionAdaptive Resolution adaption. Valid values:
  • open: Enabled. When resolution adaption is enabled, `Width` indicates the long side of a video, while `Height` indicates the short side.
  • close: Disabled. When resolution adaption is disabled, `Width` indicates the width of a video, while `Height` indicates the height.
  • Note: When resolution adaption is enabled, `Width` cannot be smaller than `Height`. */ public void setResolutionAdaptive(String ResolutionAdaptive) { this.ResolutionAdaptive = ResolutionAdaptive; } /** * Get Maximum value of the width (or long side) of a video stream in px. Value range: 0 and [128, 4,096].
  • If both `Width` and `Height` are 0, the resolution will be the same as that of the source video;
  • If `Width` is 0, but `Height` is not 0, `Width` will be proportionally scaled;
  • If `Width` is not 0, but `Height` is 0, `Height` will be proportionally scaled;
  • If both `Width` and `Height` are not 0, the custom resolution will be used.
  • * @return Width Maximum value of the width (or long side) of a video stream in px. Value range: 0 and [128, 4,096].
  • If both `Width` and `Height` are 0, the resolution will be the same as that of the source video;
  • If `Width` is 0, but `Height` is not 0, `Width` will be proportionally scaled;
  • If `Width` is not 0, but `Height` is 0, `Height` will be proportionally scaled;
  • If both `Width` and `Height` are not 0, the custom resolution will be used.
  • */ public Long getWidth() { return this.Width; } /** * Set Maximum value of the width (or long side) of a video stream in px. Value range: 0 and [128, 4,096].
  • If both `Width` and `Height` are 0, the resolution will be the same as that of the source video;
  • If `Width` is 0, but `Height` is not 0, `Width` will be proportionally scaled;
  • If `Width` is not 0, but `Height` is 0, `Height` will be proportionally scaled;
  • If both `Width` and `Height` are not 0, the custom resolution will be used.
  • * @param Width Maximum value of the width (or long side) of a video stream in px. Value range: 0 and [128, 4,096].
  • If both `Width` and `Height` are 0, the resolution will be the same as that of the source video;
  • If `Width` is 0, but `Height` is not 0, `Width` will be proportionally scaled;
  • If `Width` is not 0, but `Height` is 0, `Height` will be proportionally scaled;
  • If both `Width` and `Height` are not 0, the custom resolution will be used.
  • */ public void setWidth(Long Width) { this.Width = Width; } /** * Get Maximum value of the height (or short side) of a video stream in px. Value range: 0 and [128, 4,096]. * @return Height Maximum value of the height (or short side) of a video stream in px. Value range: 0 and [128, 4,096]. */ public Long getHeight() { return this.Height; } /** * Set Maximum value of the height (or short side) of a video stream in px. Value range: 0 and [128, 4,096]. * @param Height Maximum value of the height (or short side) of a video stream in px. Value range: 0 and [128, 4,096]. */ public void setHeight(Long Height) { this.Height = Height; } /** * Get Frame interval between I keyframes. Value range: 0 and [1,100000]. If this parameter is 0, the system will automatically set the GOP length. * @return Gop Frame interval between I keyframes. Value range: 0 and [1,100000]. If this parameter is 0, the system will automatically set the GOP length. */ public Long getGop() { return this.Gop; } /** * Set Frame interval between I keyframes. Value range: 0 and [1,100000]. If this parameter is 0, the system will automatically set the GOP length. * @param Gop Frame interval between I keyframes. Value range: 0 and [1,100000]. If this parameter is 0, the system will automatically set the GOP length. */ public void setGop(Long Gop) { this.Gop = Gop; } /** * Get Fill type. "Fill" refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported:
  • stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot "shorter" or "longer";
  • black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks.
  • white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks.
  • gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur.
  • * @return FillType Fill type. "Fill" refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported:
  • stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot "shorter" or "longer";
  • black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks.
  • white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks.
  • gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur.
  • */ public String getFillType() { return this.FillType; } /** * Set Fill type. "Fill" refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported:
  • stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot "shorter" or "longer";
  • black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks.
  • white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks.
  • gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur.
  • * @param FillType Fill type. "Fill" refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported:
  • stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot "shorter" or "longer";
  • black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks.
  • white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks.
  • gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur.
  • */ public void setFillType(String FillType) { this.FillType = FillType; } /** * Get The control factor of video constant bitrate. Value range: [0, 51]. This parameter will be disabled if you enter `0`. It is not recommended to specify this parameter if there are no special requirements. * @return Vcrf The control factor of video constant bitrate. Value range: [0, 51]. This parameter will be disabled if you enter `0`. It is not recommended to specify this parameter if there are no special requirements. */ public Long getVcrf() { return this.Vcrf; } /** * Set The control factor of video constant bitrate. Value range: [0, 51]. This parameter will be disabled if you enter `0`. It is not recommended to specify this parameter if there are no special requirements. * @param Vcrf The control factor of video constant bitrate. Value range: [0, 51]. This parameter will be disabled if you enter `0`. It is not recommended to specify this parameter if there are no special requirements. */ public void setVcrf(Long Vcrf) { this.Vcrf = Vcrf; } /** * Get Whether to enable adaptive encoding. Valid values:
  • 0: Disable
  • 1: Enable
  • Default value: 0. If this parameter is set to `1`, multiple streams with different resolutions and bitrates will be generated automatically. The highest resolution, bitrate, and quality of the streams are determined by the values of `width` and `height`, `Bitrate`, and `Vcrf` in `VideoTemplate` respectively. If these parameters are not set in `VideoTemplate`, the highest resolution generated will be the same as that of the source video, and the highest video quality will be close to VMAF 95. To use this parameter or learn about the billing details of adaptive encoding, please contact your sales rep. * @return ContentAdaptStream Whether to enable adaptive encoding. Valid values:
  • 0: Disable
  • 1: Enable
  • Default value: 0. If this parameter is set to `1`, multiple streams with different resolutions and bitrates will be generated automatically. The highest resolution, bitrate, and quality of the streams are determined by the values of `width` and `height`, `Bitrate`, and `Vcrf` in `VideoTemplate` respectively. If these parameters are not set in `VideoTemplate`, the highest resolution generated will be the same as that of the source video, and the highest video quality will be close to VMAF 95. To use this parameter or learn about the billing details of adaptive encoding, please contact your sales rep. */ public Long getContentAdaptStream() { return this.ContentAdaptStream; } /** * Set Whether to enable adaptive encoding. Valid values:
  • 0: Disable
  • 1: Enable
  • Default value: 0. If this parameter is set to `1`, multiple streams with different resolutions and bitrates will be generated automatically. The highest resolution, bitrate, and quality of the streams are determined by the values of `width` and `height`, `Bitrate`, and `Vcrf` in `VideoTemplate` respectively. If these parameters are not set in `VideoTemplate`, the highest resolution generated will be the same as that of the source video, and the highest video quality will be close to VMAF 95. To use this parameter or learn about the billing details of adaptive encoding, please contact your sales rep. * @param ContentAdaptStream Whether to enable adaptive encoding. Valid values:
  • 0: Disable
  • 1: Enable
  • Default value: 0. If this parameter is set to `1`, multiple streams with different resolutions and bitrates will be generated automatically. The highest resolution, bitrate, and quality of the streams are determined by the values of `width` and `height`, `Bitrate`, and `Vcrf` in `VideoTemplate` respectively. If these parameters are not set in `VideoTemplate`, the highest resolution generated will be the same as that of the source video, and the highest video quality will be close to VMAF 95. To use this parameter or learn about the billing details of adaptive encoding, please contact your sales rep. */ public void setContentAdaptStream(Long ContentAdaptStream) { this.ContentAdaptStream = ContentAdaptStream; } public VideoTemplateInfoForUpdate() { } /** * 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 VideoTemplateInfoForUpdate(VideoTemplateInfoForUpdate 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.Gop != null) { this.Gop = new Long(source.Gop); } if (source.FillType != null) { this.FillType = new String(source.FillType); } if (source.Vcrf != null) { this.Vcrf = new Long(source.Vcrf); } if (source.ContentAdaptStream != null) { this.ContentAdaptStream = new Long(source.ContentAdaptStream); } } /** * 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 + "Gop", this.Gop); this.setParamSimple(map, prefix + "FillType", this.FillType); this.setParamSimple(map, prefix + "Vcrf", this.Vcrf); this.setParamSimple(map, prefix + "ContentAdaptStream", this.ContentAdaptStream); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy