@UnstableApi
public final class CodecDbLite


Repository of chipset-specific recommendations and/or optimizations for using Android platform provided video codecs.

Recommendations made by this class are based on Google-collected benchmark data collected on production devices leveraging the chipsets represented.

Summary

Public methods

static VideoEncoderSettings

Returns the recommended VideoEncoderSettings for the provided format.

static String

Returns the MIME type recommended for video encoding on the runtime device.

Public methods

getRecommendedVideoEncoderSettings

public static VideoEncoderSettings getRecommendedVideoEncoderSettings(Format format)

Returns the recommended VideoEncoderSettings for the provided format.

Parameters
Format format

the video format to recommend settings for which must include sampleMimeType to identify the codec. For best results, width, height, frameRate should be set since some optimizations are resolution dependent.

getRecommendedVideoMimeType

public static String getRecommendedVideoMimeType()

Returns the MIME type recommended for video encoding on the runtime device.