public static final class AliyunMixOutputParam.Builder
extends java.lang.Object
AliyunMixOutputParam builder static inner class.| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
AliyunMixOutputParam.Builder |
bitrate(int bitrate)
Sets the
mBitrate and returns a reference to this Builder so that the methods can be chained together. |
AliyunMixOutputParam |
build()
Returns a
AliyunMixOutputParam built from the parameters previously set. |
AliyunMixOutputParam.Builder |
crf(int crf)
Sets the
mCrf and returns a reference to this Builder so that the methods can be chained together. |
AliyunMixOutputParam.Builder |
fps(int fps)
Sets the
mFps and returns a reference to this Builder so that the methods can be chained together. |
AliyunMixOutputParam.Builder |
gopSize(int gopSize)
Sets the
mGopSize and returns a reference to this Builder so that the methods can be chained together. |
AliyunMixOutputParam.Builder |
outputAudioReferenceTrack(AliyunMixTrack outputAudioReferenceTrack)
Sets the
mOutputAudioReferenceTrack and returns a reference to this Builder so that the methods can be chained together. |
AliyunMixOutputParam.Builder |
outputDurationReferenceTrack(AliyunMixTrack outputDurationReferenceTrack)
Sets the
mOutputDurationReferenceTrack and returns a reference to this Builder so that the methods can be chained together. |
AliyunMixOutputParam.Builder |
outputHeight(int outputHeight)
Sets the
mOutputHeight and returns a reference to this Builder so that the methods can be chained together. |
AliyunMixOutputParam.Builder |
outputPath(java.lang.String outputPath)
Sets the
mOutputPath and returns a reference to this Builder so that the methods can be chained together. |
AliyunMixOutputParam.Builder |
outputWidth(int outputWidth)
Sets the
mOutputWidth and returns a reference to this Builder so that the methods can be chained together. |
AliyunMixOutputParam.Builder |
videoQuality(VideoQuality videoQuality)
Sets the
mVideoQuality and returns a reference to this Builder so that the methods can be chained together. |
public AliyunMixOutputParam.Builder outputPath(java.lang.String outputPath)
mOutputPath and returns a reference to this Builder so that the methods can be chained together.
输出路径outputPath - the mOutputPath to setpublic AliyunMixOutputParam.Builder outputDurationReferenceTrack(AliyunMixTrack outputDurationReferenceTrack)
mOutputDurationReferenceTrack and returns a reference to this Builder so that the methods can be chained together.
指定某个轨道的时长作为最终合成视频的时长outputDurationReferenceTrack - the mOutputDurationReferenceTrack to setpublic AliyunMixOutputParam.Builder outputAudioReferenceTrack(AliyunMixTrack outputAudioReferenceTrack)
mOutputAudioReferenceTrack and returns a reference to this Builder so that the methods can be chained together.
指定选择哪个轨道的音频流作为输出视频的音频,如果该轨道时长比输出视频时长短,则剩余部分的音频将补空数据,只能选择一路音频。outputAudioReferenceTrack - the mOutputAudioReferenceTrack to setpublic AliyunMixOutputParam.Builder outputWidth(int outputWidth)
mOutputWidth and returns a reference to this Builder so that the methods can be chained together.
输出宽度outputWidth - the mOutputWidth to setpublic AliyunMixOutputParam.Builder outputHeight(int outputHeight)
mOutputHeight and returns a reference to this Builder so that the methods can be chained together.
输出高度outputHeight - the mOutputHeight to setpublic AliyunMixOutputParam.Builder crf(int crf)
mCrf and returns a reference to this Builder so that the methods can be chained together.
输出的crf,只有软编时该参数才有效crf - the mCrf to set, [,],如果越界,则将被
修改为临界值。public AliyunMixOutputParam.Builder bitrate(int bitrate)
mBitrate and returns a reference to this Builder so that the methods can be chained together.
输出的码率,只有硬编时该参数有效bitrate - the mBitrate to set,单位:kbps, [, ],
如果越界,则将被修改为临界值。public AliyunMixOutputParam.Builder videoQuality(VideoQuality videoQuality)
mVideoQuality and returns a reference to this Builder so that the methods can be chained together.
设置输出视频的质量等级videoQuality - the mVideoQuality to setpublic AliyunMixOutputParam.Builder fps(int fps)
mFps and returns a reference to this Builder so that the methods can be chained together.
输出的编码帧率fps - the mFps to set, [, ],如果越界,则将被修改为
临界值。public AliyunMixOutputParam.Builder gopSize(int gopSize)
mGopSize and returns a reference to this Builder so that the methods can be chained together.
输出的GOP大小gopSize - the mGopSize to set, [, ],
如果越界,则将被修改为临界值。public AliyunMixOutputParam build()
AliyunMixOutputParam built from the parameters previously set.AliyunMixOutputParam built with parameters of this AliyunMixOutputParam.Builder