public class MediaInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
mBitrate |
protected int |
mGop |
protected VideoQuality |
mVideoQuality |
Constructor and Description |
---|
MediaInfo() |
Modifier and Type | Method and Description |
---|---|
int |
getCrf()
Gets the CRF value.
|
int |
getEncoderFps() |
int |
getFps()
Gets the capture frame rate.
|
int |
getGop()
Gets the GOP size in frames
|
int |
getVideoBitrate()
Get the video bitrate.
|
VideoCodecs |
getVideoCodec()
Gets the encoder type.
|
int |
getVideoHeight()
Gets the height of the video.
|
VideoQuality |
getVideoQuality()
Get the video quality.
|
int |
getVideoWidth()
Gets the width of the video.
|
int |
setCrf(int crf)
Sets the CRF value.
|
int |
setEncoderFps(int encoderFps)
Sets the encoding frame rate.
|
int |
setFps(int fps)
Sets the capture frame rate.
|
int |
setGop(int gop)
Sets the GOP size in frames, that is, the number of frames between two I-frames.
|
int |
setVideoBitrate(int bitrate)
Sets the video bitrate.
|
void |
setVideoCodec(VideoCodecs videoCodec)
Sets the encoder type.
|
int |
setVideoHeight(int videoHeight)
Sets the height of the video.
|
void |
setVideoQuality(VideoQuality quality)
Sets the video quality.
|
int |
setVideoWidth(int videoWidth)
Sets the width of the video.
|
protected int mGop
protected int mBitrate
protected VideoQuality mVideoQuality
public int getVideoWidth()
public int setVideoWidth(int videoWidth)
videoWidth
- The width of the video.public int getVideoHeight()
public int setVideoHeight(int videoHeight)
videoHeight
- The height of the video.public int getFps()
public int setFps(int fps)
fps
- The capture frame rate.public VideoCodecs getVideoCodec()
public void setVideoCodec(VideoCodecs videoCodec)
videoCodec
- The encoder type.VideoCodecs
public int getCrf()
public int setCrf(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 int getEncoderFps()
public int setEncoderFps(int encoderFps)
encoderFps
- The encoding frame rate.public VideoQuality getVideoQuality()
Added in v3.27.0
VideoQuality
public void setVideoQuality(VideoQuality quality)
Added in v3.27.0
quality
- The quality of the video.VideoQuality
public int getGop()
Added in v3.27.0
public int setGop(int gop)
Added in v3.27.0
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 int getVideoBitrate()
Added in v3.27.0
public int setVideoBitrate(int bitrate)
bitrate
-