Skip to content

feat: configurable Opus encoder settings - #7

Merged
dangusev merged 1 commit into
mainfrom
feat/opus-config
Sep 22, 2026
Merged

dangusev merged 1 commit into
mainfrom
feat/opus-config

Conversation

@dangusev

Copy link
Copy Markdown
Collaborator
  • Add LocalAudioTrackConfig (bitrate, in-band FEC, expected packet loss, DTX) and LocalAudioTrack::opus_with_config. Until now the encoder ran on libopus defaults, which meant 72 kbps, no FEC despite the SDK advertising useinbandfec=1, and a full payload on every silent frame.

  • New defaults: 32 kbps, FEC on at 10% expected loss, DTX on. Callers who need the old behaviour can pass their own config.

  • Added Fromopus::Error for RtcError, matching how other dependency errors convert

  • Updated audio and video encoder documentation into one README section with examples for both

- Add LocalAudioTrackConfig (bitrate, in-band FEC, expected packet loss,
  DTX) and LocalAudioTrack::opus_with_config. Until now the encoder ran on
 libopus defaults, which meant 72 kbps, no FEC despite the SDK advertising useinbandfec=1, and a full payload on every silent frame.

- New defaults: 32 kbps, FEC on at 10% expected loss, DTX on. Callers who need the old behaviour can pass their own config.

- Added From<opus::Error> for RtcError, matching how other dependency errors convert

- Updated  audio and video encoder documentation into one README section with examples for both
@dangusev
dangusev merged commit 40ee2a4 into main Sep 22, 2026
3 checks passed
@dangusev
dangusev deleted the feat/opus-config branch September 22, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant