public static class AliyunVideoRecorderConfig.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
AliyunVideoRecorderConfig |
build() |
AliyunVideoRecorderConfig.Builder |
crf(int crf)
Sets the CRF value.
|
AliyunVideoRecorderConfig.Builder |
encoderFps(int encoderFps)
Sets the encoding frame rate.
|
AliyunVideoRecorderConfig.Builder |
fps(int fps)
Sets the capture frame rate.
|
AliyunVideoRecorderConfig.Builder |
gop(int gop)
Sets the GOP size in frames, that is, the number of frames between two I-frames.
|
AliyunVideoRecorderConfig.Builder |
outputPath(java.lang.String outputPath)
Sets the output path
|
AliyunVideoRecorderConfig.Builder |
videoBitrate(int videoBitrate)
Sets the video bitrate.
|
AliyunVideoRecorderConfig.Builder |
videoCodecs(VideoCodecs videoCodecs)
Sets the encoder type.
|
AliyunVideoRecorderConfig.Builder |
videoHeight(int videoHeight)
Sets the height of the video, must >0
|
AliyunVideoRecorderConfig.Builder |
videoQuality(VideoQuality videoQuality)
Sets the video quality.
|
AliyunVideoRecorderConfig.Builder |
videoWidth(int videoWidth) |
public AliyunVideoRecorderConfig.Builder videoWidth(int videoWidth)
public AliyunVideoRecorderConfig.Builder videoHeight(int videoHeight)
videoHeight
- The height of the videothrow
- IllegalArgumentException if videoHeight is not greater than 0public AliyunVideoRecorderConfig.Builder outputPath(java.lang.String outputPath)
outputPath
- throw
- IllegalArgumentException if outputPath is emptypublic AliyunVideoRecorderConfig.Builder fps(int fps)
fps
- The capture frame rate.public AliyunVideoRecorderConfig.Builder videoCodecs(VideoCodecs videoCodecs)
videoCodecs
- The encoder type.VideoCodecs
public AliyunVideoRecorderConfig.Builder crf(int crf)
crf
- The value must be within the range of to ]. If an invalid value is specified, the nearest threshold value is used.public AliyunVideoRecorderConfig.Builder encoderFps(int encoderFps)
encoderFps
- The encoding frame rate.public AliyunVideoRecorderConfig.Builder videoQuality(VideoQuality videoQuality)
videoQuality
- The quality of the video.VideoQuality
public AliyunVideoRecorderConfig.Builder gop(int gop)
gop
- Valid values: [0, 9,000] When this parameter is set to 0, full I-frames may be possible depending on the device type.public AliyunVideoRecorderConfig.Builder videoBitrate(int videoBitrate)
videoBitrate
- public AliyunVideoRecorderConfig build()