public static final class AliyunMixOutputParam.Builder
extends java.lang.Object
AliyunMixOutputParam
builder static inner class.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
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
VideoQuality 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.
Sets the video output path.outputPath
- The mOutputPath
.public AliyunMixOutputParam.Builder outputDurationReferenceTrack(AliyunMixTrack outputDurationReferenceTrack)
mOutputDurationReferenceTrack
and returns a reference to this Builder so that the methods can be chained together.
Sets the video track whose duration is used as the duration of the duet.outputDurationReferenceTrack
- The mOutputDurationReferenceTrack
.public AliyunMixOutputParam.Builder outputAudioReferenceTrack(AliyunMixTrack outputAudioReferenceTrack)
mOutputAudioReferenceTrack
and returns a reference to this Builder so that the methods can be chained together.
Sets the video track whose audio is used as the audio of the duet. If the duration of the audio is shorter than the duration of the duet, null data is added to the audio track. Only one audio track is allowed.outputAudioReferenceTrack
- The mOutputAudioReferenceTrack
.public AliyunMixOutputParam.Builder outputWidth(int outputWidth)
mOutputWidth
and returns a reference to this Builder so that the methods can be chained together.
Sets the output width.outputWidth
- The mOutputWidth
.public AliyunMixOutputParam.Builder outputHeight(int outputHeight)
mOutputHeight
and returns a reference to this Builder so that the methods can be chained together.
Sets the output height.outputHeight
- The mOutputHeight
.public AliyunMixOutputParam.Builder crf(int crf)
mCrf
and returns a reference to this Builder so that the methods can be chained together.crf
- The mCrf
must be within the range of Constant#MIN_CRF_VALUE
to Constant#MAX_CRF_VALUE
.
If an invalid value is specified, the nearest threshold value is used.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
must be within the range of Constant#MIN_VIDEO_BITRATE
to Constant#MAX_VIDEO_BITRATE
.
If an invalid value is specified, the nearest threshold value is used.public AliyunMixOutputParam.Builder videoQuality(VideoQuality videoQuality)
VideoQuality
and returns a reference to this Builder so that the methods can be chained together.videoQuality
- The mVideoQuality
.public AliyunMixOutputParam.Builder fps(int fps)
mFps
and returns a reference to this Builder so that the methods can be chained together.
The fps must be within the range of Constant#MIN_FPS
to Constant#MAX_FPS
,
If an invalid value is specified, the nearest threshold value is used.fps
- The fps valuepublic AliyunMixOutputParam.Builder gopSize(int gopSize)
mGopSize
and returns a reference to this Builder so that the methods can be chained together.gopSize
- The mGopSize
must be within the range of Constant#MIN_GOP_VALUE
to Constant#MAX_GOP_VALUE
.
If an invalid value is specified, the nearest threshold value is used.public AliyunMixOutputParam build()
AliyunMixOutputParam
built from the parameters previously set.AliyunMixOutputParam
built with parameters of AliyunMixOutputParam.Builder
.