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 }}| Field | Default | Description |
|---|---|---|
codec | required | aac or opus. |
profile | codec default | AAC profile: LC, HEv1, or HEv2. |
bitrateBps | auto | Target bitrate, capped at 512 kbps. |
sampleRate | 48000 | Output rate snapped to a supported encode rate. |
channels | 2 | 1 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.