public class CreateLiveTranscodeTemplateRequest extends AbstractModel
Constructor and Description |
---|
CreateLiveTranscodeTemplateRequest() |
CreateLiveTranscodeTemplateRequest(CreateLiveTranscodeTemplateRequest 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.
|
Float |
getAdaptBitratePercent()
Get Bitrate compression ratio of top speed codec 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 in seconds.
|
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 use the short side as the video height.
|
String |
getTemplateName()
Get Template name, such as “900p”.
|
String |
getVcodec()
Get Video codec.
|
Long |
getVideoBitrate()
Get Video bitrate in Kbps.
|
Long |
getWidth()
Get Width.
|
void |
setAcodec(String Acodec)
Set Audio codec.
|
void |
setAdaptBitratePercent(Float AdaptBitratePercent)
Set Bitrate compression ratio of top speed codec 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 in seconds.
|
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 use the short side as the video height.
|
void |
setTemplateName(String TemplateName)
Set Template name, such as “900p”.
|
void |
setVcodec(String Vcodec)
Set Video codec.
|
void |
setVideoBitrate(Long VideoBitrate)
Set Video bitrate in Kbps.
|
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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateLiveTranscodeTemplateRequest()
public CreateLiveTranscodeTemplateRequest(CreateLiveTranscodeTemplateRequest source)
public String getTemplateName()
public void setTemplateName(String TemplateName)
TemplateName
- Template name, such as “900p”. This can be only a combination of letters and digits.
Length limit:
Standard transcoding: 1-10 characters
Top speed codec transcoding: 3-10 characterspublic Long getVideoBitrate()
public void setVideoBitrate(Long VideoBitrate)
VideoBitrate
- Video bitrate in Kbps. Value range: 100-8000.
Note: the transcoding template requires that the bitrate be unique. Therefore, the final saved bitrate may be different from the input bitrate.public String getAcodec()
public void setAcodec(String Acodec)
Acodec
- Audio codec. Default value: aac.
Note: this parameter is unsupported now.public Long getAudioBitrate()
public void setAudioBitrate(Long AudioBitrate)
AudioBitrate
- Audio bitrate. Default value: 0.
Value range: 0-500.public String getVcodec()
public void setVcodec(String Vcodec)
Vcodec
- Video codec. Valid values: h264, h265, origin (default)
origin: original codec as the output codecpublic String getDescription()
public void setDescription(String Description)
Description
- Template description.public Long getNeedVideo()
public void setNeedVideo(Long NeedVideo)
NeedVideo
- Whether to keep the video. 0: no; 1: yes. Default value: 1.public Long getWidth()
public void setWidth(Long Width)
Width
- Width. Default value: 0.
Value range: 0-3000
It must be a multiple of 2. The original width is 0.public Long getNeedAudio()
public void setNeedAudio(Long NeedAudio)
NeedAudio
- Whether to keep the audio. 0: no; 1: yes. Default value: 1.public Long getHeight()
public void setHeight(Long Height)
Height
- Height. Default value: 0
Value range: 0-3000
The value must be a multiple of 2. The original height is `0`.
This parameter is required for a top speed codec template (when `AiTransCode` is `1`).public Long getFps()
public void setFps(Long Fps)
Fps
- Frame rate. Default value: 0.
Value range: 0-60public Long getGop()
public void setGop(Long Gop)
Gop
- Keyframe interval in seconds. Default value: original interval
Value range: 2-6public Long getRotate()
public void setRotate(Long Rotate)
Rotate
- Rotation angle. Default value: 0.
Valid values: 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 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 codec 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 use the short side as the video height. 0: no, 1: yes. Default value: 0.public String getDRMType()
public void setDRMType(String DRMType)
DRMType
- The DRM encryption type. Valid values: fairplay, normalaes, widevine.
If you do not pass this parameter or pass in an empty string, the existing configuration will be reset.public String getDRMTracks()
public void setDRMTracks(String DRMTracks)
DRMTracks
- The tracks to encrypt. Valid values: AUDIO, SD, HD, UHD1, UHD2. You can choose only one video track (SD, HD, UHD1, or UHD2).
If you do not pass this parameter or pass in an empty string, the existing configuration will be reset.Copyright © 2023. All rights reserved.