public class AVTemplate extends AbstractModel
header, skipSign| 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 encoding format, only `AAC` and `PASSTHROUGH` are available, with `AAC` as the default. | 
| AdditionalRateSetting | getAdditionalRateSettings()Get Additional video bitrate configuration. | 
| Long | getAudioBitrate()Get Audio bitrate. | 
| AudioCodecDetail | getAudioCodecDetails()Get Audio encoding configuration. | 
| AudioNormalizationSettings | getAudioNormalization()Get Audio transcoding special configuration information. | 
| Long | getAudioSampleRate()Get Audio sampling rate, unit HZ. | 
| String | getAudioSelectorName()Get Only AttachedInputs.AudioSelectors.Name can be selected. | 
| AudioTrackInfo[] | getAudioTracks()Get Quantity limit 0-20 Valid when MultiAudioTrackEnabled is turned on. | 
| Long | getBFramesNum()Get The number of B frames can be selected from 1 to 3. | 
| Long | getBitrateCompressionRatio()Get Compression ratio for top speed codec transcoding. | 
| Long | getFaceBlurringEnabled()Get Whether to enable the face blur function, 1 is on, 0 is off, and the default is 0. | 
| Long | getFps()Get Video frame rate. | 
| Long | getFrameRateDenominator()Get Valid when the FrameRateType type you select is SPECIFIED_FRACTION, the output frame rate denominator setting. | 
| Long | getFrameRateNumerator()Get Valid when the FrameRateType type you select is SPECIFIED_FRACTION, the output frame rate numerator setting. | 
| String | getFrameRateType()Get This field indicates how to specify the output video frame rate. | 
| Long | getGopSize()Get Key frame interval, 300-10000, optional. | 
| String | getGopSizeUnits()Get Keyframe units, only support MILLISECONDS (milliseconds). | 
| Long | getHeight()Get Video height. | 
| Long | getMultiAudioTrackEnabled()Get Whether to enable multiple audio tracks 0: Not required 1: Required Default value 0. | 
| 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 | getRefFramesNum()Get The number of reference frames can be selected from 1 to 16. | 
| 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. | 
| VideoCodecDetail | getVideoCodecDetails()Get Video encoding configuration. | 
| Long | getVideoEnhanceEnabled()Get | 
| VideoEnhanceSetting[] | getVideoEnhanceSettings()Get | 
| String | getWatermarkId()Get Watermark ID | 
| Long | getWidth()Get Video width. | 
| void | setAcodec(String Acodec)Set Audio encoding format, only `AAC` and `PASSTHROUGH` are available, with `AAC` as the default. | 
| void | setAdditionalRateSettings(AdditionalRateSetting AdditionalRateSettings)Set Additional video bitrate configuration. | 
| void | setAudioBitrate(Long AudioBitrate)Set Audio bitrate. | 
| void | setAudioCodecDetails(AudioCodecDetail AudioCodecDetails)Set Audio encoding configuration. | 
| void | setAudioNormalization(AudioNormalizationSettings AudioNormalization)Set Audio transcoding special configuration information. | 
| void | setAudioSampleRate(Long AudioSampleRate)Set Audio sampling rate, unit HZ. | 
| void | setAudioSelectorName(String AudioSelectorName)Set Only AttachedInputs.AudioSelectors.Name can be selected. | 
| void | setAudioTracks(AudioTrackInfo[] AudioTracks)Set Quantity limit 0-20 Valid when MultiAudioTrackEnabled is turned on. | 
| void | setBFramesNum(Long BFramesNum)Set The number of B frames can be selected from 1 to 3. | 
| void | setBitrateCompressionRatio(Long BitrateCompressionRatio)Set Compression ratio for top speed codec transcoding. | 
| void | setFaceBlurringEnabled(Long FaceBlurringEnabled)Set Whether to enable the face blur function, 1 is on, 0 is off, and the default is 0. | 
| void | setFps(Long Fps)Set Video frame rate. | 
| void | setFrameRateDenominator(Long FrameRateDenominator)Set Valid when the FrameRateType type you select is SPECIFIED_FRACTION, the output frame rate denominator setting. | 
| void | setFrameRateNumerator(Long FrameRateNumerator)Set Valid when the FrameRateType type you select is SPECIFIED_FRACTION, the output frame rate numerator setting. | 
| void | setFrameRateType(String FrameRateType)Set This field indicates how to specify the output video frame rate. | 
| void | setGopSize(Long GopSize)Set Key frame interval, 300-10000, optional. | 
| void | setGopSizeUnits(String GopSizeUnits)Set Keyframe units, only support MILLISECONDS (milliseconds). | 
| void | setHeight(Long Height)Set Video height. | 
| void | setMultiAudioTrackEnabled(Long MultiAudioTrackEnabled)Set Whether to enable multiple audio tracks 0: Not required 1: Required Default value 0. | 
| 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 | setRefFramesNum(Long RefFramesNum)Set The number of reference frames can be selected from 1 to 16. | 
| 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 | setVideoCodecDetails(VideoCodecDetail VideoCodecDetails)Set Video encoding configuration. | 
| void | setVideoEnhanceEnabled(Long VideoEnhanceEnabled)Set | 
| void | setVideoEnhanceSettings(VideoEnhanceSetting[] VideoEnhanceSettings)Set | 
| 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, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic 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 encoding format, only `AAC` and `PASSTHROUGH` are available, with `AAC` as the 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), `VBR`.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.public Long getFaceBlurringEnabled()
public void setFaceBlurringEnabled(Long FaceBlurringEnabled)
FaceBlurringEnabled - Whether to enable the face blur function, 1 is on, 0 is off, and the default is 0.public String getAudioSelectorName()
public void setAudioSelectorName(String AudioSelectorName)
AudioSelectorName - Only AttachedInputs.AudioSelectors.Name can be selected. The following types need to be filled in: 'RTP_PUSH', 'SRT_PUSH', 'UDP_PUSH', 'RTP-FEC_PUSH'.public AudioNormalizationSettings getAudioNormalization()
public void setAudioNormalization(AudioNormalizationSettings AudioNormalization)
AudioNormalization - Audio transcoding special configuration information.public Long getAudioSampleRate()
public void setAudioSampleRate(Long AudioSampleRate)
AudioSampleRate - Audio sampling rate, unit HZ.public String getFrameRateType()
public void setFrameRateType(String FrameRateType)
FrameRateType - This field indicates how to specify the output video frame rate. If FOLLOW_SOURCE is selected, the output video frame rate will be set equal to the input video frame rate of the first input. If SPECIFIED_FRACTION is selected, the output video frame rate is determined by the fraction (frame rate numerator and frame rate denominator). If SPECIFIED_HZ is selected, the frame rate of the output video is determined by the HZ you enter.public Long getFrameRateNumerator()
public void setFrameRateNumerator(Long FrameRateNumerator)
FrameRateNumerator - Valid when the FrameRateType type you select is SPECIFIED_FRACTION, the output frame rate numerator setting.public Long getFrameRateDenominator()
public void setFrameRateDenominator(Long FrameRateDenominator)
FrameRateDenominator - Valid when the FrameRateType type you select is SPECIFIED_FRACTION, the output frame rate denominator setting.public Long getBFramesNum()
public void setBFramesNum(Long BFramesNum)
BFramesNum - The number of B frames can be selected from 1 to 3.public Long getRefFramesNum()
public void setRefFramesNum(Long RefFramesNum)
RefFramesNum - The number of reference frames can be selected from 1 to 16.public AdditionalRateSetting getAdditionalRateSettings()
public void setAdditionalRateSettings(AdditionalRateSetting AdditionalRateSettings)
AdditionalRateSettings - Additional video bitrate configuration.public VideoCodecDetail getVideoCodecDetails()
public void setVideoCodecDetails(VideoCodecDetail VideoCodecDetails)
VideoCodecDetails - Video encoding configuration.public AudioCodecDetail getAudioCodecDetails()
public void setAudioCodecDetails(AudioCodecDetail AudioCodecDetails)
AudioCodecDetails - Audio encoding configuration.public Long getMultiAudioTrackEnabled()
public void setMultiAudioTrackEnabled(Long MultiAudioTrackEnabled)
MultiAudioTrackEnabled - Whether to enable multiple audio tracks 0: Not required 1: Required Default value 0.public AudioTrackInfo[] getAudioTracks()
public void setAudioTracks(AudioTrackInfo[] AudioTracks)
AudioTracks - Quantity limit 0-20 Valid when MultiAudioTrackEnabled is turned on.public Long getVideoEnhanceEnabled()
public void setVideoEnhanceEnabled(Long VideoEnhanceEnabled)
VideoEnhanceEnabled - public VideoEnhanceSetting[] getVideoEnhanceSettings()
public void setVideoEnhanceSettings(VideoEnhanceSetting[] VideoEnhanceSettings)
VideoEnhanceSettings - public Long getGopSize()
public void setGopSize(Long GopSize)
GopSize - Key frame interval, 300-10000, optional.public String getGopSizeUnits()
public void setGopSizeUnits(String GopSizeUnits)
GopSizeUnits - Keyframe units, only support MILLISECONDS (milliseconds).Copyright © 2024. All rights reserved.