AudioEncoderSpec

data class AudioEncoderSpec(val codec: CodecId, val sampleRate: Int, val channels: Int = 2, val sampleFormat: SampleFormat = SampleFormat.None, val bitrateBps: Long, val options: Map<String, String> = emptyMap())

Constructors

Link copied to clipboard
constructor(codec: CodecId, sampleRate: Int, channels: Int = 2, sampleFormat: SampleFormat = SampleFormat.None, bitrateBps: Long, options: Map<String, String> = emptyMap())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Encoder-specific options, passed through as av_opt_set strings.

Link copied to clipboard

SampleFormat.None picks the encoder's preferred format (e.g. fltp for aac).

Link copied to clipboard