public class EncodeParams extends AbstractModel
Constructor and Description |
---|
EncodeParams() |
EncodeParams(EncodeParams 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 |
---|---|
Long |
getAudioBitrate()
Get Output audio bitrate (Kbps) for On-Cloud MixTranscoding.
|
Long |
getAudioChannels()
Get Number of sound channels of output stream for On-Cloud MixTranscoding.
|
Long |
getAudioCodec()
Get Output audio codec for On-Cloud MixTranscoding.
|
Long |
getAudioSampleRate()
Get Output audio sample rate (Hz) for On-Cloud MixTranscoding.
|
Long |
getBackgroundColor()
Get Output background color for On-Cloud MixTranscoding.
|
Long |
getBackgroundImageId()
Get Output stream background image for stream mix.
|
String |
getBackgroundImageUrl()
Get URL of the background image for the mixed stream, which can be in PNG, JPG, JPEG, or BMP format and does not support the alpha channel.
|
Long |
getVideoBitrate()
Get Output bitrate (Kbps) for On-Cloud MixTranscoding, which is required for audio-video output.
|
Long |
getVideoFramerate()
Get Output stream frame rate for On-Cloud MixTranscoding in FPS.
|
Long |
getVideoGop()
Get Output stream GOP in seconds for On-Cloud MixTranscoding, which is required for audio/video output.
|
Long |
getVideoHeight()
Get Output stream height in pixels for On-Cloud MixTranscoding, which is required for audio/video output.
|
Long |
getVideoWidth()
Get Output stream width in pixels for On-Cloud MixTranscoding, which is required for audio/video output.
|
void |
setAudioBitrate(Long AudioBitrate)
Set Output audio bitrate (Kbps) for On-Cloud MixTranscoding.
|
void |
setAudioChannels(Long AudioChannels)
Set Number of sound channels of output stream for On-Cloud MixTranscoding.
|
void |
setAudioCodec(Long AudioCodec)
Set Output audio codec for On-Cloud MixTranscoding.
|
void |
setAudioSampleRate(Long AudioSampleRate)
Set Output audio sample rate (Hz) for On-Cloud MixTranscoding.
|
void |
setBackgroundColor(Long BackgroundColor)
Set Output background color for On-Cloud MixTranscoding.
|
void |
setBackgroundImageId(Long BackgroundImageId)
Set Output stream background image for stream mix.
|
void |
setBackgroundImageUrl(String BackgroundImageUrl)
Set URL of the background image for the mixed stream, which can be in PNG, JPG, JPEG, or BMP format and does not support the alpha channel.
|
void |
setVideoBitrate(Long VideoBitrate)
Set Output bitrate (Kbps) for On-Cloud MixTranscoding, which is required for audio-video output.
|
void |
setVideoFramerate(Long VideoFramerate)
Set Output stream frame rate for On-Cloud MixTranscoding in FPS.
|
void |
setVideoGop(Long VideoGop)
Set Output stream GOP in seconds for On-Cloud MixTranscoding, which is required for audio/video output.
|
void |
setVideoHeight(Long VideoHeight)
Set Output stream height in pixels for On-Cloud MixTranscoding, which is required for audio/video output.
|
void |
setVideoWidth(Long VideoWidth)
Set Output stream width in pixels for On-Cloud MixTranscoding, which is required for audio/video output.
|
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 EncodeParams()
public EncodeParams(EncodeParams source)
public Long getAudioSampleRate()
public void setAudioSampleRate(Long AudioSampleRate)
AudioSampleRate
- Output audio sample rate (Hz) for On-Cloud MixTranscoding. Valid values: 48000, 44100, 32000, 24000, 16000, 8000public Long getAudioBitrate()
public void setAudioBitrate(Long AudioBitrate)
AudioBitrate
- Output audio bitrate (Kbps) for On-Cloud MixTranscoding. Value range: 8-500public Long getAudioChannels()
public void setAudioChannels(Long AudioChannels)
AudioChannels
- Number of sound channels of output stream for On-Cloud MixTranscoding. Valid values: 1, 2. 1 represents mono-channel, and 2 represents dual-channel.public Long getVideoWidth()
public void setVideoWidth(Long VideoWidth)
VideoWidth
- Output stream width in pixels for On-Cloud MixTranscoding, which is required for audio/video output. Value range: [0, 1920].public Long getVideoHeight()
public void setVideoHeight(Long VideoHeight)
VideoHeight
- Output stream height in pixels for On-Cloud MixTranscoding, which is required for audio/video output. Value range: [0, 1080].public Long getVideoBitrate()
public void setVideoBitrate(Long VideoBitrate)
VideoBitrate
- Output bitrate (Kbps) for On-Cloud MixTranscoding, which is required for audio-video output. Value range: 1-10000public Long getVideoFramerate()
public void setVideoFramerate(Long VideoFramerate)
VideoFramerate
- Output stream frame rate for On-Cloud MixTranscoding in FPS. This parameter is required for audio/video outputs. Value range: [1, 60].public Long getVideoGop()
public void setVideoGop(Long VideoGop)
VideoGop
- Output stream GOP in seconds for On-Cloud MixTranscoding, which is required for audio/video output. Value range: [1, 5].public Long getBackgroundColor()
public void setBackgroundColor(Long BackgroundColor)
BackgroundColor
- Output background color for On-Cloud MixTranscoding. Valid values: decimal integers. Commonly used colors include:
Red: 0xff0000, whose decimal number is 16724736
Yellow: 0xffff00, whose decimal number is 16776960
Green: 0x33cc00, whose decimal number is 3394560
Blue: 0x0066ff, whose decimal number is 26367
Black: 0x000000, whose decimal number is 0
White: 0xFFFFFF, whose decimal number is 16777215
Grey: 0x999999, whose decimal number is 10066329public Long getBackgroundImageId()
public void setBackgroundImageId(Long BackgroundImageId)
BackgroundImageId
- Output stream background image for stream mix. Its value is the ID of image uploaded through the TRTC Console.public Long getAudioCodec()
public void setAudioCodec(Long AudioCodec)
AudioCodec
- Output audio codec for On-Cloud MixTranscoding. Valid values: 0, 1, 2. 0 (default): LC-AAC; 1: HE-AAC; 2: HE-AACv2. If this parameter is set to 2 (HE-AACv2), On-Cloud MixTranscoding can produce only dual-channel streams. If it is set to 1 (HE-AAC) or 2 (HE-AACv2), the valid values for the audio sample rate of output streams are 48000, 44100, 32000, 24000, and 16000.public String getBackgroundImageUrl()
public void setBackgroundImageUrl(String BackgroundImageUrl)
BackgroundImageUrl
- URL of the background image for the mixed stream, which can be in PNG, JPG, JPEG, or BMP format and does not support the alpha channel. The URL must not exceed 512 bytes. When both `BackgroundImageUrl` and `BackgroundImageId` are specified, the former will be used. The background image must not exceed 10 MB.Copyright © 2021. All rights reserved.