What is Opus?
Opus is a modern, open-source audio codec developed by the Xiph.Org Foundation (the team behind Ogg Vorbis and FLAC) and Mozilla, standardized by the IETF as RFC 6716 in 2012.
It's designed specifically for real-time audio transmission — voice calls, video conferencing, and streaming — but works equally well for music.
The killer feature: Opus achieves better audio quality than MP3 at less than half the bitrate.
Opus vs MP3 vs AAC
| Format | 64 kbps quality | 128 kbps quality | Open standard | Patent-free |
|---|---|---|---|---|
| Opus | Excellent | Excellent | ✅ | ✅ |
| AAC | Good | Excellent | No | No |
| MP3 | Poor | Good | No | No (expired) |
| Ogg Vorbis | Good | Good | ✅ | ✅ |
Practical example: Opus at 64 kbps sounds better than MP3 at 128 kbps. For voice, Opus at 24-32 kbps is indistinguishable from the original.
Key Technical Features
Variable Bitrate Range
Opus operates from 6 kbps to 510 kbps — making it effective for everything from compressed voice (6 kbps) to high-fidelity music (256+ kbps).
Dual-Mode Design
Opus internally switches between two codecs:
- SILK: optimized for voice (low bitrate, 8-24 kHz)
- CELT: optimized for music and full-bandwidth audio (up to 48 kHz)
This switching happens frame-by-frame, allowing Opus to handle mixed audio (music + voice) better than codecs designed for one or the other.
Ultra-Low Latency
Opus achieves as little as 5ms algorithmic delay — critical for real-time communication where echo cancellation and synchronization depend on minimal latency.
Where Opus is Already Used
- Discord: all voice and video calls use Opus.
- WhatsApp: voice messages and calls.
- Zoom and Google Meet: for audio transmission.
- Spotify: uses Ogg Vorbis, but experimenting with Opus.
- YouTube: uses Opus for WebM video files.
- WebRTC: the browser standard for real-time communication uses Opus by default.
Browser and Platform Support
| Platform | Opus Support |
|---|---|
| Chrome | ✅ Full |
| Firefox | ✅ Full |
| Edge | ✅ Full |
| Safari | ✅ (Safari 14+, iOS 14+) |
| Android | ✅ Native |
| iOS | ✅ (via browser) |
| Windows Media Player | ❌ |
| iTunes/Apple Music | ❌ |
| Most hardware players | ❌ |
When to Use Opus
Optimal use cases:
- WebRTC and real-time communication applications.
- Podcast streaming where low bitrate matters.
- Audio for WebM video files on the web.
- Open-source projects where patent-free codecs are required.
- Low-bandwidth streaming environments.
When to use something else:
- Podcast episode downloads — MP3 for maximum hardware compatibility.
- Apple ecosystem — AAC is better supported.
- Hardware audio players — almost none support Opus.
- Distribution on platforms that don't support it (most music stores).
Using Opus in WebM Video
YouTube uses Opus for audio in WebM files:
<video controls>
<source src="video.webm" type="video/webm; codecs=vp9,opus">
<source src="video.mp4" type="video/mp4">
</video>
Creating a WebM with Opus audio using FFmpeg:
ffmpeg -i input.mp4 \
-c:v libvpx-vp9 -crf 33 -b:v 0 \
-c:a libopus -b:a 128k \
output.webm
Converting Opus Files
Opus files typically use the .opus extension in an Ogg container:
- OGG to MP3 — for hardware player compatibility
- OGG to AAC — for Apple devices
- MP3 to OGG — for open-source projects
Related conversions
Common video conversions that pair well with this guide: