
Episode 10. Opus: The Open Codec That Ate WebRTC
5:48
3 сезон 10 выпуск
Press "join call" in a browser — a telemedicine visit, an online class, a game lobby — and the voice leaving the microphone is almost certainly Opus, the codec behind nearly every WebRTC call. It earns that spot by being a speech codec and a music codec wearing one coat. This episode opens it up: how it switches engines, why frame size is a trade between delay and header overhead, and what it does when packets vanish or nobody is talking.
In this episode:
— two engines under one hood: SILK from Skype predicts speech by linear prediction, CELT codes the full audible range via a frequency transform, hybrid mode runs both
— frame size as the latency dial: Opus frames go down to 2.5 ms while an AAC-LC frame is fixed at about 21.3 ms — the reason Opus owns live two-way audio
— the header tax: every packet carries about 40 bytes of network envelope, so at 2.5 ms frames the headers outweigh the speech fourfold and 20 ms stays the default
— in-band FEC: on a lossy network a low-quality copy of the previous packet rides inside the current one, so a lost packet is rebuilt from the next
— DTX and comfort noise: Opus stops sending during pauses, and the far end fills the silence with a faint hiss so nobody thinks the call has dropped
— the rule of thumb — Opus for live two-way conversation, AAC for one-way playback — and the neural tools Deep PLC and DRED that rebuild audio lost on a bad connection
Decoded is a podcast by Fora Soft, based on The Fora Soft Video Engineering Handbook book series. Season three is about audio and follows the book Audio for Video.
Read the full chapter in Audio for Video, Volume 1 — Kindle and paperback on Amazon: https://www.amazon.com/dp/B0HH6PRZH1
All seven books of the series: https://www.amazon.com/dp/B0HF4R78DN
Since 2005 Fora Soft has built video products, real-time communication, and AI systems: 50 in-house engineers, 250+ delivered projects, live streaming with 0.4–0.5-second glass-to-glass latency for 10,000 simultaneous viewers, and solutions used by NBC, CBS, and Red Bull. If you're building a product with video or online calls, come talk to us: https://www.forasoft.com/

Нет комментариев
Пока никто ничего не написал.
Будьте первым 🙌