VideoEncoderSettings


@UnstableApi
public final class VideoEncoderSettings


Represents the video encoder settings.

Summary

Nested types

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

The allowed values for bitrateMode.

public final class VideoEncoderSettings.Builder

Builds VideoEncoderSettings instances.

Constants

static final VideoEncoderSettings

A default VideoEncoderSettings.

static final float

The default I-frame interval in seconds.

static final int

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

static final int

A value for setEncoderPerformanceParameters to disable setting performance parameters.

Public fields

final int

The encoding bitrate in bits per second.

final int

One of BitrateMode.

final float

The encoding I-Frame interval in seconds.

final int

The encoding level.

final int

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

final int

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

final int

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

final int

The encoder operating rate in frames per second.

final int

The encoder priority.

final int

The encoding profile.

final long

The frame repeat interval, in microseconds.

Public methods

VideoEncoderSettings.Builder

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

boolean
int

Constants

DEFAULT

public static final VideoEncoderSettings DEFAULT

A default VideoEncoderSettings.

DEFAULT_I_FRAME_INTERVAL_SECONDS

public static final float DEFAULT_I_FRAME_INTERVAL_SECONDS = 1.0f

The default I-frame interval in seconds.

NO_VALUE

public static final int NO_VALUE = -1

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

RATE_UNSET

public static final int RATE_UNSET = -2

A value for setEncoderPerformanceParameters to disable setting performance parameters.

Public fields

bitrate

public final int bitrate

The encoding bitrate in bits per second.

bitrateMode

@VideoEncoderSettings.BitrateMode
public final int bitrateMode

One of BitrateMode.

iFrameIntervalSeconds

public final float iFrameIntervalSeconds

The encoding I-Frame interval in seconds.

level

public final int level

The encoding level.

maxBFrames

public final int maxBFrames

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

numBidirectionalTemporalLayers

public final int numBidirectionalTemporalLayers

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

numNonBidirectionalTemporalLayers

public final int numNonBidirectionalTemporalLayers

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

operatingRate

public final int operatingRate

The encoder operating rate in frames per second.

priority

public final int priority

The encoder priority.

profile

public final int profile

The encoding profile.

repeatPreviousFrameIntervalUs

public final long repeatPreviousFrameIntervalUs

The frame repeat interval, in microseconds.

Public methods

buildUpon

public VideoEncoderSettings.Builder buildUpon()

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

equals

public boolean equals(@Nullable Object o)

hashCode

public int hashCode()