VideoEncoderSettings


@UnstableApi
class VideoEncoderSettings


Represents the video encoder settings.

Summary

Nested types

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
annotation VideoEncoderSettings.BitrateMode

The allowed values for bitrateMode.

Builds VideoEncoderSettings instances.

Constants

const VideoEncoderSettings!

A default VideoEncoderSettings.

const Float

The default I-frame interval in seconds.

const Int

A value for various fields to indicate that the field's value is unknown or not applicable.

const Int

A value for setEncoderPerformanceParameters to disable setting performance parameters.

Public functions

VideoEncoderSettings.Builder!

Returns a VideoEncoderSettings.Builder initialized with the values of this instance.

Boolean
equals(o: Any?)
Int

Public properties

Int

The encoding bitrate in bits per second.

Int

One of BitrateMode.

Float

The encoding I-Frame interval in seconds.

Int

The encoding level.

Int

The maximum number of B frames allowed between I and P frames in the produced encoded video.

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 operating rate in frames per second.

Int

The encoder priority.

Int

The encoding profile.

Long

The frame repeat interval, in microseconds.

Constants

DEFAULT

const val DEFAULTVideoEncoderSettings!

A default VideoEncoderSettings.

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.

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

Public properties

bitrate

val bitrateInt

The encoding bitrate in bits per second.

iFrameIntervalSeconds

val iFrameIntervalSecondsFloat

The encoding I-Frame interval in seconds.

level

val levelInt

The encoding level.

maxBFrames

val maxBFramesInt

The maximum number of B frames allowed between I and P frames in the produced encoded video.

numBidirectionalTemporalLayers

val numBidirectionalTemporalLayersInt

The requested number of bidirectional temporal layers requested from the encoder.

numNonBidirectionalTemporalLayers

val numNonBidirectionalTemporalLayersInt

The requested number of non-bidirectional temporal layers requested from the encoder.

operatingRate

val operatingRateInt

The encoder operating rate in frames per second.

priority

val priorityInt

The encoder priority.

profile

val profileInt

The encoding profile.

repeatPreviousFrameIntervalUs

val repeatPreviousFrameIntervalUsLong

The frame repeat interval, in microseconds.