VideoEncoderConfig

@RequiresApi(value = 21)  @AutoValue public abstract class VideoEncoderConfig implements EncoderConfig


Summary

Nested types

VideoEncoderConfig.Builder

The builder of the config.

Public methods

static @NonNull VideoEncoderConfig.Builder

Returns a build for this config.

abstract @NonNull int

Gets the bitrate.

abstract @NonNull int

Gets the color format.

abstract @NonNull int

Gets the frame rate.

abstract @NonNull int

Gets the i-frame interval.

abstract @Override @NonNull String

The mime type of the encoder.

abstract @NonNull Size

Gets the resolution.

@NonNull @Override MediaFormat

Transfers the config to a .

Public methods

builder

@NonNull
public static VideoEncoderConfig.Builder builder()

Returns a build for this config.

getBitrate

@NonNull
public abstract int getBitrate()

Gets the bitrate.

getColorFormat

@NonNull
public abstract int getColorFormat()

Gets the color format.

getFrameRate

@NonNull
public abstract int getFrameRate()

Gets the frame rate.

getIFrameInterval

@NonNull
public abstract int getIFrameInterval()

Gets the i-frame interval.

getMimeType

@Override
@NonNull
public abstract @Override String getMimeType()

The mime type of the encoder.

For example, "video/avc" for a video encoder and "audio/mp4a-latm" for an audio encoder.

getResolution

@NonNull
public abstract Size getResolution()

Gets the resolution.

toMediaFormat

@NonNull
@Override
public @Override MediaFormat toMediaFormat()

Transfers the config to a .