public class AliyunVideoParam
extends java.lang.Object
implements java.io.Serializable
AliyunVideoParam.Builder
to create objects of this class.Modifier and Type | Class and Description |
---|---|
static class |
AliyunVideoParam.AudioChannel |
static class |
AliyunVideoParam.AudioSampleRate |
static class |
AliyunVideoParam.Builder |
Constructor and Description |
---|
AliyunVideoParam() |
Modifier and Type | Method and Description |
---|---|
AliyunVideoParam.AudioChannel |
getAudioChannel()
Gets the channel count of audio
|
AliyunVideoParam.AudioSampleRate |
getAudioSampleRate()
Gets the sample rate of audio
|
int |
getBitrate()
Gets the bitrate.
|
int |
getCrf()
Gets the CRF value.
|
int |
getFrameRate()
Gets the frame rate.
|
int |
getGop()
Gets the GOP size.
|
int |
getOutputHeight()
Gets the video output height.
|
int |
getOutputWidth()
Gets the video output width.
|
VideoDisplayMode |
getScaleMode()
Gets the video display mode.
|
float |
getScaleRate()
Gets the resolution scaling ratio.
|
VideoCodecs |
getVideoCodec()
Gets the encoding format.
|
VideoQuality |
getVideoQuality()
Gets the video quality.
|
void |
setAudioChannel(AliyunVideoParam.AudioChannel channel)
Sets channel of audio
|
void |
setAudioSampleRate(AliyunVideoParam.AudioSampleRate sampleRate)
Sets the sample rate of audo
|
void |
setBitrate(int bitrate)
Sets the bitrate.
|
void |
setCrf(int crf)
Sets the CRF value.
|
void |
setFrameRate(int frameRate)
Sets the frame rate.
|
void |
setGop(int gop)
Sets the GOP size.
|
void |
setOutputHeight(int outputHeight)
Sets the video output height.
|
void |
setOutputWidth(int outputWidth)
Sets the video output width.
|
void |
setScaleMode(VideoDisplayMode scaleMode)
Sets the video display mode.
|
void |
setScaleRate(float rate)
Sets the resolution scaling ratio.
|
void |
setVideoCodec(VideoCodecs videoCodec)
Sets the encoding format.
|
void |
setVideoQuality(VideoQuality videoQuality)
Sets the video quality.
|
public int getFrameRate()
public void setFrameRate(int frameRate)
frameRate
- The frame rate. Valid values: [1, 120]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 void setBitrate(int bitrate)
bitrate
- The bitrate.public int getBitrate()
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 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 VideoCodecs getVideoCodec()
VideoCodecs
.public void setVideoCodec(VideoCodecs videoCodec)
videoCodec
- The encoding format VideoCodecs
.public VideoQuality getVideoQuality()
VideoQuality
.public void setVideoQuality(VideoQuality videoQuality)
videoQuality
- The video quality VideoQuality
.public VideoDisplayMode getScaleMode()
VideoDisplayMode
.public void setScaleMode(VideoDisplayMode scaleMode)
scaleMode
- The display mode VideoDisplayMode
.public void setScaleRate(float rate)
rate
- The ratio of the output resolution to the resolution during editing. Valid values: [0, 1]public float getScaleRate()
public AliyunVideoParam.AudioSampleRate getAudioSampleRate()
Added in v3.34.0
public void setAudioSampleRate(AliyunVideoParam.AudioSampleRate sampleRate)
Added in v3.34.0
sample
- The sample rate of audiopublic AliyunVideoParam.AudioChannel getAudioChannel()
Added in v3.34.0
public void setAudioChannel(AliyunVideoParam.AudioChannel channel)
Added in v3.34.0
channel
- The count of channel