VideoEncoderSettings
@UnstableApi
class VideoEncoderSettings
Represents the video encoder settings.
Summary
Nested types |
|---|
@DocumentedThe allowed values for |
|
Builds |
Constants |
|
|---|---|
const VideoEncoderSettings! |
A default |
const Float |
The default I-frame interval in seconds. |
const Int |
NO_VALUE = -1A value for various fields to indicate that the field's value is unknown or not applicable. |
const Int |
RATE_UNSET = -2A value for |
Public functions |
|
|---|---|
VideoEncoderSettings.Builder! |
Returns a |
Boolean |
|
Int |
hashCode() |
String! |
toString() |
Public properties |
|
|---|---|
Int |
The encoding bitrate in bits per second. |
Int |
One of |
Float |
The encoding I-Frame interval in seconds. |
Int |
The encoding level. |
Int |
The |
Int |
The requested number of bidirectional temporal layers requested from the encoder. |
Int |
The requested number of non-bidirectional temporal layers requested from the encoder. |
Int |
The encoder |
Int |
The encoder |
Int |
The encoding profile. |
Long |
The |
Constants
DEFAULT_I_FRAME_INTERVAL_SECONDS
const val DEFAULT_I_FRAME_INTERVAL_SECONDS = 1.0f: Float
The default I-frame interval in seconds.
NO_VALUE
const val NO_VALUE = -1: Int
A value for various fields to indicate that the field's value is unknown or not applicable.
RATE_UNSET
const val RATE_UNSET = -2: Int
A value for setEncoderPerformanceParameters to disable setting performance parameters.
Public functions
buildUpon
fun buildUpon(): VideoEncoderSettings.Builder!
Returns a VideoEncoderSettings.Builder initialized with the values of this instance.
Public properties
maxBFrames
val maxBFrames: Int
The maximum number of B frames allowed between I and P frames in the produced encoded video.
numBidirectionalTemporalLayers
val numBidirectionalTemporalLayers: Int
The requested number of bidirectional temporal layers requested from the encoder.
numNonBidirectionalTemporalLayers
val numNonBidirectionalTemporalLayers: Int
The requested number of non-bidirectional temporal layers requested from the encoder.
repeatPreviousFrameIntervalUs
val repeatPreviousFrameIntervalUs: Long
The frame repeat interval, in microseconds.