public class VideoTemplateInfo extends AbstractModel
Constructor and Description |
---|
VideoTemplateInfo() |
VideoTemplateInfo(VideoTemplateInfo source)
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.
|
Modifier and Type | Method and Description |
---|---|
Long |
getBitrate()
Get The video bitrate (Kbps).
|
String |
getCodec()
Get The video codec.
|
String |
getFillType()
Get The fill mode, which indicates how a video is resized when the video’s original aspect ratio is different from the target aspect ratio.
|
Long |
getFps()
Get The video frame rate (Hz).
|
Long |
getGop()
Get Frame interval between I keyframes.
|
Long |
getHeight()
Get Maximum value of the height (or short side) of a video stream in px.
|
String |
getResolutionAdaptive()
Get Resolution adaption.
|
Long |
getVcrf()
Get The control factor of video constant bitrate.
|
Long |
getWidth()
Get Maximum value of the width (or long side) of a video stream in px.
|
void |
setBitrate(Long Bitrate)
Set The video bitrate (Kbps).
|
void |
setCodec(String Codec)
Set The video codec.
|
void |
setFillType(String FillType)
Set The fill mode, which indicates how a video is resized when the video’s original aspect ratio is different from the target aspect ratio.
|
void |
setFps(Long Fps)
Set The video frame rate (Hz).
|
void |
setGop(Long Gop)
Set Frame interval between I keyframes.
|
void |
setHeight(Long Height)
Set Maximum value of the height (or short side) of a video stream in px.
|
void |
setResolutionAdaptive(String ResolutionAdaptive)
Set Resolution adaption.
|
void |
setVcrf(Long Vcrf)
Set The control factor of video constant bitrate.
|
void |
setWidth(Long Width)
Set Maximum value of the width (or long side) of a video stream in px.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public VideoTemplateInfo()
public VideoTemplateInfo(VideoTemplateInfo source)
public String getCodec()
public void setCodec(String Codec)
Codec
- The video codec. Valid values:
public Long getFps()
public void setFps(Long Fps)
Fps
- The video frame rate (Hz). Value range: [0, 100].
If the value is 0, the frame rate will be the same as that of the source video.
Note: For adaptive bitrate streaming, the value range of this parameter is [0, 60].public Long getBitrate()
public void setBitrate(Long Bitrate)
Bitrate
- The video bitrate (Kbps). Value range: 0 and [128, 35000].
If the value is 0, the bitrate of the video will be the same as that of the source video.public String getResolutionAdaptive()
public void setResolutionAdaptive(String ResolutionAdaptive)
ResolutionAdaptive
- Resolution adaption. Valid values:
public Long getWidth()
public void setWidth(Long Width)
Width
- Maximum value of the width (or long side) of a video stream in px. Value range: 0 and [128, 4,096].
public Long getHeight()
public void setHeight(Long Height)
Height
- Maximum value of the height (or short side) of a video stream in px. Value range: 0 and [128, 4,096].
public Long getGop()
public void setGop(Long Gop)
Gop
- Frame interval between I keyframes. Value range: 0 and [1,100000].
If this parameter is 0 or left empty, the system will automatically set the GOP length.public String getFillType()
public void setFillType(String FillType)
FillType
- The fill mode, which indicates how a video is resized when the video’s original aspect ratio is different from the target aspect ratio. Valid values:
public Long getVcrf()
public void setVcrf(Long Vcrf)
Vcrf
- The control factor of video constant bitrate. Value range: [1, 51]
If this parameter is specified, CRF (a bitrate control method) will be used for transcoding. (Video bitrate will no longer take effect.)
It is not recommended to specify this parameter if there are no special requirements.Copyright © 2023. All rights reserved.