public class TemplateInfo extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
TemplateInfo()  | 
TemplateInfo(TemplateInfo 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 | 
|---|---|
String | 
getAcodec()
Get Audio codec: aac. 
 | 
Float | 
getAdaptBitratePercent()
Get Bitrate compression ratio of top speed code video. 
 | 
Long | 
getAiTransCode()
Get Whether it is a top speed codec template. 
 | 
Long | 
getAudioBitrate()
Get Audio bitrate. 
 | 
Long | 
getBitrateToOrig()
Get Whether to use the original bitrate when the set bitrate is larger than the original bitrate. 
 | 
String | 
getDescription()
Get Template description. 
 | 
String | 
getDRMTracks()
Get The tracks to encrypt. 
 | 
String | 
getDRMType()
Get The DRM encryption type. 
 | 
Long | 
getFps()
Get Frame rate. 
 | 
Long | 
getFpsToOrig()
Get Whether to use the original frame rate when the set frame rate is larger than the original frame rate. 
 | 
Long | 
getGop()
Get Keyframe interval, unit: second. 
 | 
Long | 
getHeight()
Get Height. 
 | 
Long | 
getHeightToOrig()
Get Whether to use the original height when the set height is higher than the original height. 
 | 
Long | 
getNeedAudio()
Get Whether to keep the audio. 
 | 
Long | 
getNeedVideo()
Get Whether to keep the video. 
 | 
String | 
getProfile()
Get Encoding quality:
baseline/main/high. 
 | 
Long | 
getRotate()
Get Rotation angle. 
 | 
Long | 
getShortEdgeAsHeight()
Get Whether to take the shorter side as height. 
 | 
Long | 
getTemplateId()
Get Template ID. 
 | 
String | 
getTemplateName()
Get Template name. 
 | 
String | 
getVcodec()
Get Codec: h264/h265/origin. 
 | 
Long | 
getVideoBitrate()
Get Video bitrate. 
 | 
Long | 
getWidth()
Get Width. 
 | 
void | 
setAcodec(String Acodec)
Set Audio codec: aac. 
 | 
void | 
setAdaptBitratePercent(Float AdaptBitratePercent)
Set Bitrate compression ratio of top speed code video. 
 | 
void | 
setAiTransCode(Long AiTransCode)
Set Whether it is a top speed codec template. 
 | 
void | 
setAudioBitrate(Long AudioBitrate)
Set Audio bitrate. 
 | 
void | 
setBitrateToOrig(Long BitrateToOrig)
Set Whether to use the original bitrate when the set bitrate is larger than the original bitrate. 
 | 
void | 
setDescription(String Description)
Set Template description. 
 | 
void | 
setDRMTracks(String DRMTracks)
Set The tracks to encrypt. 
 | 
void | 
setDRMType(String DRMType)
Set The DRM encryption type. 
 | 
void | 
setFps(Long Fps)
Set Frame rate. 
 | 
void | 
setFpsToOrig(Long FpsToOrig)
Set Whether to use the original frame rate when the set frame rate is larger than the original frame rate. 
 | 
void | 
setGop(Long Gop)
Set Keyframe interval, unit: second. 
 | 
void | 
setHeight(Long Height)
Set Height. 
 | 
void | 
setHeightToOrig(Long HeightToOrig)
Set Whether to use the original height when the set height is higher than the original height. 
 | 
void | 
setNeedAudio(Long NeedAudio)
Set Whether to keep the audio. 
 | 
void | 
setNeedVideo(Long NeedVideo)
Set Whether to keep the video. 
 | 
void | 
setProfile(String Profile)
Set Encoding quality:
baseline/main/high. 
 | 
void | 
setRotate(Long Rotate)
Set Rotation angle. 
 | 
void | 
setShortEdgeAsHeight(Long ShortEdgeAsHeight)
Set Whether to take the shorter side as height. 
 | 
void | 
setTemplateId(Long TemplateId)
Set Template ID. 
 | 
void | 
setTemplateName(String TemplateName)
Set Template name. 
 | 
void | 
setVcodec(String Vcodec)
Set Codec: h264/h265/origin. 
 | 
void | 
setVideoBitrate(Long VideoBitrate)
Set Video bitrate. 
 | 
void | 
setWidth(Long Width)
Set Width. 
 | 
void | 
toMap(HashMap<String,String> map,
     String prefix)
Internal implementation, normal users should not use it. 
 | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic TemplateInfo()
public TemplateInfo(TemplateInfo source)
public String getVcodec()
public void setVcodec(String Vcodec)
Vcodec - Codec: h264/h265/origin. Default value: h264.
origin: keep the original codec.public Long getVideoBitrate()
public void setVideoBitrate(Long VideoBitrate)
VideoBitrate - Video bitrate. Value range: 0–8,000 Kbps.
If the value is 0, the original bitrate will be retained.
Note: transcoding templates require a unique bitrate. The final saved bitrate may differ from the input bitrate.public String getAcodec()
public void setAcodec(String Acodec)
Acodec - Audio codec: aac. Default value: aac.
Note: This parameter will not take effect for now and will be supported soon.public Long getAudioBitrate()
public void setAudioBitrate(Long AudioBitrate)
AudioBitrate - Audio bitrate. Value range: 0–500 Kbps.
0 by default.public Long getWidth()
public void setWidth(Long Width)
Width - Width. Default value: 0.
Value range: [0-3,000].
The value must be a multiple of 2. The original width is 0.public Long getHeight()
public void setHeight(Long Height)
Height - Height. Default value: 0.
Value range: [0-3,000].
The value must be a multiple of 2. The original width is 0.public Long getFps()
public void setFps(Long Fps)
Fps - Frame rate. Default value: 0.
Range: 0-60 Fps.public Long getGop()
public void setGop(Long Gop)
Gop - Keyframe interval, unit: second.
Original interval by default
Range: 2-6public Long getRotate()
public void setRotate(Long Rotate)
Rotate - Rotation angle. Default value: 0.
Value range: 0, 90, 180, 270public String getProfile()
public void setProfile(String Profile)
Profile - Encoding quality:
baseline/main/high. Default value: baseline.public Long getBitrateToOrig()
public void setBitrateToOrig(Long BitrateToOrig)
BitrateToOrig - Whether to use the original bitrate when the set bitrate is larger than the original bitrate.
0: no, 1: yes
Default value: 0.public Long getHeightToOrig()
public void setHeightToOrig(Long HeightToOrig)
HeightToOrig - Whether to use the original height when the set height is higher than the original height.
0: no, 1: yes
Default value: 0.public Long getFpsToOrig()
public void setFpsToOrig(Long FpsToOrig)
FpsToOrig - Whether to use the original frame rate when the set frame rate is larger than the original frame rate.
0: no, 1: yes
Default value: 0.public Long getNeedVideo()
public void setNeedVideo(Long NeedVideo)
NeedVideo - Whether to keep the video. 0: no; 1: yes.public Long getNeedAudio()
public void setNeedAudio(Long NeedAudio)
NeedAudio - Whether to keep the audio. 0: no; 1: yes.public Long getTemplateId()
public void setTemplateId(Long TemplateId)
TemplateId - Template ID.public String getTemplateName()
public void setTemplateName(String TemplateName)
TemplateName - Template name.public String getDescription()
public void setDescription(String Description)
Description - Template description.public Long getAiTransCode()
public void setAiTransCode(Long AiTransCode)
AiTransCode - Whether it is a top speed codec template. 0: no, 1: yes. Default value: 0.public Float getAdaptBitratePercent()
public void setAdaptBitratePercent(Float AdaptBitratePercent)
AdaptBitratePercent - Bitrate compression ratio of top speed code video.
Target bitrate of top speed code = VideoBitrate * (1-AdaptBitratePercent)
Value range: 0.0-0.5.public Long getShortEdgeAsHeight()
public void setShortEdgeAsHeight(Long ShortEdgeAsHeight)
ShortEdgeAsHeight - Whether to take the shorter side as height. 0: no, 1: yes. Default value: 0.
Note: this field may return `null`, indicating that no valid value is obtained.public String getDRMType()
public void setDRMType(String DRMType)
DRMType - The DRM encryption type. Valid values: fairplay, normalaes, widevine.
Note: This field may return null, indicating that no valid values can be obtained.public String getDRMTracks()
public void setDRMTracks(String DRMTracks)
DRMTracks - The tracks to encrypt. Valid values: AUDIO, SD, HD, UHD1, UHD2. Separate multiple tracks with “|”. You can choose only one video track (SD, HD, UHD1, or UHD2).
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2025. All rights reserved.