Config

open class Config(val mimeType: String, val startBitrate: Int, val profile: Int = 0)

Base configuration class. If you don't know how to set class members, Video encoding recommendations should give you hints.

See also

Inheritors

Constructors

Link copied to clipboard
constructor(mimeType: String, startBitrate: Int, profile: Int = 0)

Properties

Link copied to clipboard

Get default encoder name. If name is null, it won't be possible to start a stream.

Link copied to clipboard

Check if this configuration is supported by the default encoder. If format is not supported, it won't be possible to start a stream.

Link copied to clipboard

The encoder mime type. Only MediaFormat.MIMETYPE_AUDIO_AAC is supported yet.

Link copied to clipboard
val profile: Int = 0

The encoder profile. Only applicable to AAC, AVC, HEVC, VP9, AV1.

Link copied to clipboard

The encoder bitrate in bits/s.

Functions

Link copied to clipboard

Check if this configuration is supported by the specified encoder. If format is not supported, it won't be possible to start a stream.

Link copied to clipboard
open override fun toString(): String