public class Config
extends java.lang.Object
Constructor and Description |
---|
Config() |
Modifier and Type | Method and Description |
---|---|
int |
getAudioChannel()
Gets the channel count of audio
|
int |
getAudioSampleRate()
Gets the sample rate of audio
|
int |
getBackgroundColor()
Gets the background color.
|
int |
getBitrate()
Gets the bitrate.
|
int |
getCrf()
Gets the CRF value.
|
int |
getDisplayMode()
Gets the video display mode.
|
int |
getFps()
Gets the frame rate.
|
int |
getGop()
Gets the GOP size.
|
int |
getOutputHeight()
Gets the video output height.
|
int |
getOutputWidth()
Gets the video output width.
|
float |
getScale()
Gets the resolution scaling ratio.
|
int |
getVideoCodec()
Gets the encoding format.
|
int |
getVideoQuality()
Gets the video quality.
|
int |
getVolume()
Gets the video volume.
|
boolean |
isMute()
is mute
|
void |
setAudioChannel(int channel)
Sets channel of audo
|
void |
setAudioSampleRate(int sampleRate)
Sets the sample rate of audo
|
void |
setBackgroundColor(int backgroundColor)
Sets the background color.
|
void |
setBitrate(int bitrate)
Sets the bitrate.
|
void |
setCrf(int crf)
Sets the CRF value.
|
void |
setDisplayMode(int displayMode)
Sets the video display mode.
|
void |
setFps(int fps)
Sets the frame rate.
|
void |
setGop(int gop)
Sets the GOP size.
|
void |
setMute(boolean mute)
Mutes or unmutes playback.
|
void |
setOutputHeight(int outputHeight)
Sets the video output height.
|
void |
setOutputWidth(int outputWidth)
Sets the video output width.
|
void |
setScale(float scale)
Sets the resolution scaling ratio.
|
void |
setVideoCodec(int videoCodec)
Sets the encoding format.
|
void |
setVideoQuality(int videoQuality)
Sets the video quality.
|
void |
setVolume(int volume)
Sets the video volume.
|
public int getGop()
public void setGop(int gop)
gop
- This setting may not work properly in hardware encoders. To avoid this issue, use software encoders.public int getVideoQuality()
VideoQuality
.public void setVideoQuality(int videoQuality)
videoQuality
- The video quality VideoQuality
.public int getBitrate()
public void setBitrate(int bitrate)
bitrate
- The bitrate.public int getFps()
public void setFps(int fps)
fps
- The frame rate. Valid values: [1, 120]public int getCrf()
public void setCrf(int crf)
crf
- The quality setting of ffmpeg video. The lower the CRF value, the higher the video quality and the larger the file size. Default value: 23public int getVideoCodec()
VideoCodecs
.public void setVideoCodec(int videoCodec)
videoCodec
- The encoding format VideoCodecs
.public float getScale()
public void setScale(float scale)
scale
- The ratio of the output resolution to the resolution during editing. Valid values: [0, 1]public int getOutputWidth()
public void setOutputWidth(int outputWidth)
outputWidth
- The output width.public int getOutputHeight()
public void setOutputHeight(int outputHeight)
outputHeight
- The output height.public boolean isMute()
public void setMute(boolean mute)
mute
- is mutepublic int getVolume()
public void setVolume(int volume)
volume
- volumepublic int getBackgroundColor()
public void setBackgroundColor(int backgroundColor)
VideoDisplayMode.FILL
.backgroundColor
- The background color in ARGB format. An 8-bit integer type.VideoDisplayMode
public int getDisplayMode()
VideoDisplayMode
public void setDisplayMode(int displayMode)
displayMode
- video display mode.VideoDisplayMode
public int getAudioSampleRate()
public void setAudioSampleRate(int sampleRate)
sample
- The sample rate of audiopublic int getAudioChannel()
public void setAudioChannel(int channel)
channel
- The count of channel