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 Video stream bitrate (Kbps).
|
String |
getCodec()
Get Video stream codec.
|
String |
getFillType()
Get Fill type.
|
Long |
getFps()
Get Video frame rate in 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 Video stream bitrate (Kbps).
|
void |
setCodec(String Codec)
Set Video stream codec.
|
void |
setFillType(String FillType)
Set Fill type.
|
void |
setFps(Long Fps)
Set Video frame rate in 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
- Video stream codec. Valid values:
public Long getFps()
public void setFps(Long Fps)
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 getBitrate()
public void setBitrate(Long Bitrate)
Bitrate
- Video stream bitrate (Kbps). Valid values: `0`; [75, 35000]
If the value is `0`, the original video bitrate will be used.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
- 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:
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 © 2022. All rights reserved.