public class AVTemplate extends AbstractModel
Constructor and Description |
---|
AVTemplate() |
AVTemplate(AVTemplate 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.
|
Long |
getAudioBitrate()
Get Audio bitrate.
|
Long |
getBitrateCompressionRatio()
Get Compression ratio for top speed codec transcoding.
|
Long |
getFps()
Get Video frame rate.
|
Long |
getHeight()
Get Video height.
|
String |
getName()
Get Name of an audio/video transcoding template, which can contain 1-20 case-sensitive letters and digits
|
Long |
getNeedAudio()
Get Whether audio is needed.
|
Long |
getNeedVideo()
Get Whether video is needed.
|
String |
getRateControlMode()
Get Bitrate control mode.
|
Long |
getSmartSubtitles()
Get Whether to convert audio to text.
|
String |
getSubtitleConfiguration()
Get The subtitle settings.
|
String |
getTopSpeed()
Get Whether to enable top speed codec transcoding.
|
String |
getVcodec()
Get Video codec.
|
Long |
getVideoBitrate()
Get Video bitrate.
|
String |
getWatermarkId()
Get Watermark ID
|
Long |
getWidth()
Get Video width.
|
void |
setAcodec(String Acodec)
Set Audio codec.
|
void |
setAudioBitrate(Long AudioBitrate)
Set Audio bitrate.
|
void |
setBitrateCompressionRatio(Long BitrateCompressionRatio)
Set Compression ratio for top speed codec transcoding.
|
void |
setFps(Long Fps)
Set Video frame rate.
|
void |
setHeight(Long Height)
Set Video height.
|
void |
setName(String Name)
Set Name of an audio/video transcoding template, which can contain 1-20 case-sensitive letters and digits
|
void |
setNeedAudio(Long NeedAudio)
Set Whether audio is needed.
|
void |
setNeedVideo(Long NeedVideo)
Set Whether video is needed.
|
void |
setRateControlMode(String RateControlMode)
Set Bitrate control mode.
|
void |
setSmartSubtitles(Long SmartSubtitles)
Set Whether to convert audio to text.
|
void |
setSubtitleConfiguration(String SubtitleConfiguration)
Set The subtitle settings.
|
void |
setTopSpeed(String TopSpeed)
Set Whether to enable top speed codec transcoding.
|
void |
setVcodec(String Vcodec)
Set Video codec.
|
void |
setVideoBitrate(Long VideoBitrate)
Set Video bitrate.
|
void |
setWatermarkId(String WatermarkId)
Set Watermark ID
|
void |
setWidth(Long Width)
Set Video width.
|
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 AVTemplate()
public AVTemplate(AVTemplate source)
public String getName()
public void setName(String Name)
Name
- Name of an audio/video transcoding template, which can contain 1-20 case-sensitive letters and digitspublic Long getNeedVideo()
public void setNeedVideo(Long NeedVideo)
NeedVideo
- Whether video is needed. `0`: not needed; `1`: neededpublic String getVcodec()
public void setVcodec(String Vcodec)
Vcodec
- Video codec. Valid values: `H264`, `H265`. If this parameter is left empty, the original video codec will be used.public Long getWidth()
public void setWidth(Long Width)
Width
- Video width. Value range: (0, 3000]. The value must be an integer multiple of 4. If this parameter is left empty, the original video width will be used.public Long getHeight()
public void setHeight(Long Height)
Height
- Video height. Value range: (0, 3000]. The value must be an integer multiple of 4. If this parameter is left empty, the original video height will be used.public Long getFps()
public void setFps(Long Fps)
Fps
- Video frame rate. Value range: [1, 240]. If this parameter is left empty, the original frame rate will be used.public String getTopSpeed()
public void setTopSpeed(String TopSpeed)
TopSpeed
- Whether to enable top speed codec transcoding. Valid values: `CLOSE` (disable), `OPEN` (enable). Default value: `CLOSE`public Long getBitrateCompressionRatio()
public void setBitrateCompressionRatio(Long BitrateCompressionRatio)
BitrateCompressionRatio
- Compression ratio for top speed codec transcoding. Value range: [0, 50]. The lower the compression ratio, the higher the image quality.public Long getNeedAudio()
public void setNeedAudio(Long NeedAudio)
NeedAudio
- Whether audio is needed. `0`: not needed; `1`: neededpublic String getAcodec()
public void setAcodec(String Acodec)
Acodec
- Audio codec. Valid value: `AAC` (default)public Long getAudioBitrate()
public void setAudioBitrate(Long AudioBitrate)
AudioBitrate
- Audio bitrate. If this parameter is left empty, the original bitrate will be used.
Valid values: `6000`, `7000`, `8000`, `10000`, `12000`, `14000`, `16000`, `20000`, `24000`, `28000`, `32000`, `40000`, `48000`, `56000`, `64000`, `80000`, `96000`, `112000`, `128000`, `160000`, `192000`, `224000`, `256000`, `288000`, `320000`, `384000`, `448000`, `512000`, `576000`, `640000`, `768000`, `896000`, `1024000`public Long getVideoBitrate()
public void setVideoBitrate(Long VideoBitrate)
VideoBitrate
- Video bitrate. Value range: [50000, 40000000]. The value must be an integer multiple of 1000. If this parameter is left empty, the original bitrate will be used.public String getRateControlMode()
public void setRateControlMode(String RateControlMode)
RateControlMode
- Bitrate control mode. Valid values: `CBR`, `ABR` (default)public String getWatermarkId()
public void setWatermarkId(String WatermarkId)
WatermarkId
- Watermark IDpublic Long getSmartSubtitles()
public void setSmartSubtitles(Long SmartSubtitles)
SmartSubtitles
- Whether to convert audio to text. `0` (default): No; `1`: Yes.public String getSubtitleConfiguration()
public void setSubtitleConfiguration(String SubtitleConfiguration)
SubtitleConfiguration
- The subtitle settings. Currently, the following subtitles are supported:
`eng2eng`: English speech to English text.
`eng2chs`: English speech to Chinese text.
`eng2chseng`: English speech to English and Chinese text.
`chs2chs`: Chinese speech to Chinese text.
`chs2eng`: Chinese speech to English text.
`chs2chseng`: Chinese speech to Chinese and English text.Copyright © 2023. All rights reserved.