AudioEncoder

One configured and opened audio encoder. Some codecs require a fixed input chunk size (AAC: 1024 samples). For those, route frames through FilterGraph.buildAudio and call FilterGraph.setOutputFrameSize with frameSize (Transcoder does this automatically).

One configured and opened audio encoder. Some codecs require a fixed input chunk size (AAC: 1024 samples). For those, route frames through FilterGraph.buildAudio and call FilterGraph.setOutputFrameSize with frameSize (Transcoder does this automatically).

One configured and opened audio encoder. Some codecs require a fixed input chunk size (AAC: 1024 samples). For those, route frames through FilterGraph.buildAudio and call FilterGraph.setOutputFrameSize with frameSize (Transcoder does this automatically).

One configured and opened audio encoder. Some codecs require a fixed input chunk size (AAC: 1024 samples). For those, route frames through FilterGraph.buildAudio and call FilterGraph.setOutputFrameSize with frameSize (Transcoder does this automatically).

Properties

Link copied to clipboard
expect val channels: Int
actual val channels: Int
actual val channels: Int
actual val channels: Int
Link copied to clipboard
expect val frameSize: Int

Samples the codec wants per frame; 0 when the codec takes arbitrary chunk sizes.

actual val frameSize: Int

Samples the codec wants per frame; 0 when the codec takes arbitrary chunk sizes.

actual val frameSize: Int

Samples the codec wants per frame; 0 when the codec takes arbitrary chunk sizes.

actual val frameSize: Int

Samples the codec wants per frame; 0 when the codec takes arbitrary chunk sizes.

Link copied to clipboard

The sample format actually negotiated (resolves AudioEncoderSpec.sampleFormat = None).

The sample format actually negotiated (resolves AudioEncoderSpec.sampleFormat = None).

The sample format actually negotiated (resolves AudioEncoderSpec.sampleFormat = None).

The sample format actually negotiated (resolves AudioEncoderSpec.sampleFormat = None).

Link copied to clipboard
expect val sampleRate: Int
actual val sampleRate: Int
actual val sampleRate: Int
actual val sampleRate: Int

Functions

Link copied to clipboard
expect open override fun close()
actual open override fun close()
actual open override fun close()
actual open override fun close()
Link copied to clipboard
expect suspend fun drive(input: Flow<Frame>)

Drain input into this encoder + the parent muxer. Returns when the flow completes.

actual suspend fun drive(input: ERROR CLASS: Symbol not found for Flow<io/github/yuroyami/kiteffmpeg/Frame>)
actual suspend fun drive(input: Flow<Frame>)

Drain input into this encoder + the parent muxer. Returns when the flow completes.

actual suspend fun drive(input: Flow<Frame>)

Drain input into this encoder + the parent muxer. Returns when the flow completes.