public class ModifyLiveTranscodeTemplateRequest extends AbstractModel
Constructor and Description |
---|
ModifyLiveTranscodeTemplateRequest() |
ModifyLiveTranscodeTemplateRequest(ModifyLiveTranscodeTemplateRequest 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 |
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 in fps.
|
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 in pixels.
|
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.
|
Long |
getTemplateId()
Get Template ID.
|
String |
getVcodec()
Get Video codec.
|
Long |
getVideoBitrate()
Get Video bitrate in Kbps.
|
Long |
getWidth()
Get Width in pixels.
|
void |
setAcodec(String Acodec)
Set Audio codec.
|
void |
setAdaptBitratePercent(Float AdaptBitratePercent)
Set Bitrate compression ratio of top speed codec video.
|
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 in fps.
|
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 in pixels.
|
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 |
setTemplateId(Long TemplateId)
Set Template ID.
|
void |
setVcodec(String Vcodec)
Set Video codec.
|
void |
setVideoBitrate(Long VideoBitrate)
Set Video bitrate in Kbps.
|
void |
setWidth(Long Width)
Set Width in pixels.
|
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 ModifyLiveTranscodeTemplateRequest()
public ModifyLiveTranscodeTemplateRequest(ModifyLiveTranscodeTemplateRequest source)
public Long getTemplateId()
public void setTemplateId(Long TemplateId)
TemplateId
- Template ID.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 getAcodec()
public void setAcodec(String Acodec)
Acodec
- Audio codec. Defaut 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 getDescription()
public void setDescription(String Description)
Description
- Template description.public 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 Long getWidth()
public void setWidth(Long Width)
Width
- Width in pixels. Value range: 0-3000.
It must be a multiple of 2. The original width is 0.public Long getNeedVideo()
public void setNeedVideo(Long NeedVideo)
NeedVideo
- Whether to keep the video. 0: no; 1: yes. Default value: 1.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 in pixels. Value range: 0-3000.
It must be a multiple of 2. The original height is 0.public Long getFps()
public void setFps(Long Fps)
Fps
- Frame rate in fps. Default value: 0.
Value range: 0-60public Long getGop()
public void setGop(Long Gop)
Gop
- Keyframe interval in seconds.
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.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 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.