Skip to content
Console

audio_encoder

Convert one raw audio stream into encoded access units. audio_encoder accepts raw audio only and can feed rtmp_push, srt_push, segment, or websocket.

{
"name": "aac",
"type": "audio_encoder",
"inputs": ["mix_audio"],
"config": {
"codec": "aac",
"bitrateBps": 128000,
"sampleRate": 48000,
"channels": 2
}
}
FieldDefaultDescription
codecrequiredaac or opus.
profilecodec defaultAAC profile: LC, HEv1, or HEv2.
bitrateBpsautoTarget bitrate, capped at 512 kbps.
sampleRate48000Output rate snapped to a supported encode rate.
channels21 for mono or 2 for stereo.

Equivalent nodes with the same input, filters, and config are shared across sinks. RTC sinks publish raw audio through their SDK and reject encoded input.