CodecConfig

open class CodecConfig(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.

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.

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
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
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