Reference · Audio codecs

What is Opus?

Opus is a modern lossy audio codec designed to handle everything from speech and real-time communication to high-quality music.

Opus is: an audio codec. Opus is not: the same thing as the Ogg container.

Opus technical specifications

PropertyOpusWhat that means
Bitrate6–510 kbpsOne codec spans narrowband speech through high-quality stereo music.
Effective sample rates8, 12, 16, 24 or 48 kHzOpus is fundamentally bandwidth-oriented and internally works up to 48 kHz.
Audio bandwidthUp to 20 kHzFullband Opus intentionally does not code ultrasonic content above about 20 kHz.
ChannelsMono/stereo per elementary stream; up to 255 channels with Opus multistream mappingsNormal music and calls use one or two channels; multichannel Opus is possible.
Frame duration2.5–60 ms in standard Opus operationShort frames help real-time voice and low-latency applications.
PCM bit depthNot a preserved codec propertyOpus encodes audio perceptually rather than storing PCM words at a fixed bit depth.

Why Opus is unusual

Opus was designed to cover a very wide range of bitrates and audio types. It can switch efficiently between speech-oriented and music-oriented coding behaviour and is well suited to low-latency communication.

Where Opus is used

  • Voice and video calls
  • WebRTC and browser communication
  • Streaming and web audio
  • Discord-like real-time applications
  • Music playback at efficient bitrates

Opus vs Ogg

Opus is the codec. Ogg is a container format that can carry Opus audio. An .opus file commonly uses an Ogg-based container structure specifically for Opus.

Opus vs AAC and MP3

MP3 remains strongest for legacy compatibility. AAC is deeply established in MP4, Apple and many streaming workflows. Opus is especially strong for real-time communication and efficient low-to-medium bitrate audio.

See Opus vs AAC for a direct comparison.

Common confusion

Opus and Ogg are not synonyms.

Opus describes the audio encoding. Ogg describes a container family that can carry Opus and other codecs.

“Ogg audio” does not identify one codec.

An Ogg file may contain Vorbis, Opus or another compatible stream.

Codec vs container: where Opus fits

The most common beginner mistake is treating .opus, Ogg, and Opus as the same thing. They are related, but they are different layers.

Term What it is Beginner translation
Opus Audio codec The compression method that turns audio into smaller data and back again.
Ogg Container format The wrapper that can hold Opus audio and related metadata.
.opus File extension A specific extension commonly used for Ogg files that contain Opus audio.
WebM Container format A web video container that commonly uses Opus for audio.

So when someone says “an Opus file,” they usually mean Opus-encoded audio stored in an Ogg container with the .opus extension.

Opus, Ogg, Vorbis, and Theora

Opus often comes up when people are learning about Ogg Vorbis, because both are part of the same broader open media ecosystem. But they are not the same format.

Vorbis

Vorbis is an older lossy audio codec often found in .ogg files. It was commonly used in games, open-source software, and some web audio workflows.

Opus

Opus is newer and more flexible. It is usually the better choice for modern internet audio, especially speech, calls, low-latency audio, and efficient streaming.

Theora

Theora is a video codec that was also used with Ogg. It is historically important but much less common today than H.264, H.265, AV1, or VP9.

The extension can tell you what the file probably contains, but it does not always tell the whole story. Opus is most strongly associated with .opus and WebM audio tracks.

Extension Usually means Notes
.opus Ogg Opus audio The specific modern extension for audio-only Opus in an Ogg container.
.ogg Often Ogg Vorbis, sometimes other Ogg audio Less specific. Some older software may recognize it more easily.
.oga Ogg audio A general audio-only Ogg extension.
.webm WebM video or audio Often uses Opus audio with VP9 or AV1 video.
.mka Matroska audio Can contain Opus, but support depends on the player.

Opus vs MP3, AAC, and Vorbis

Format Strength Trade-off
MP3 Maximum compatibility with old players, cars, stereos, and software. Older and usually less efficient than Opus or AAC.
AAC Strong consumer compatibility, especially in M4A, MP4, Apple devices, phones, and streaming. Less focused on very low-latency interactive audio than Opus.
Vorbis Open audio codec often used in Ogg files and games. Older than Opus and generally less compelling for new internet-audio workflows.
Opus Excellent flexibility across speech, music, streaming, and low-latency communication. Not as universally supported as MP3 or AAC in older consumer devices.

Why Opus is good at low latency

Latency means delay. In a music file, a small delay before playback usually does not matter. In a conversation, delay matters a lot. If the audio arrives too late, people talk over each other.

Opus was designed with real-time communication in mind, so it can use short frames and work well in situations where the encoder and decoder cannot wait very long before sending or playing audio.

That is why Opus is common in voice chat, video conferencing, browser-based communication, and game audio systems.

Should you use Opus?

Situation Good choice? Why
Voice chat, calls, meetings, or game chat Yes Opus is one of the best general choices for real-time speech.
WebM video Yes Opus is a natural audio partner for WebM workflows.
Personal audio files where your apps support it Often yes Opus can produce compact, good-sounding files.
Maximum compatibility with old devices Usually no MP3 or AAC is usually safer.
Professional editing/archive workflow No Use WAV, AIFF, FLAC, ALAC, or production formats instead.

Common mistakes

Calling Opus a container

Opus is the codec. Ogg, WebM, Matroska, and other formats are containers that can store Opus audio.

Assuming .ogg and .opus are identical

A .ogg file might contain Vorbis, Opus, Speex, FLAC, or other streams. A .opus file is more specific.

Using Opus for every music library

Opus can be excellent, but MP3 and AAC are often safer when you need broad compatibility with cars, TVs, and older players.

Converting MP3 to Opus expecting restored quality

Opus cannot recover detail that was already removed by MP3. Re-encoding a lossy file can add another generation of loss.

Frequently asked questions

What does Opus stand for?

Opus is not usually treated as an acronym. It is the name of a modern audio codec standardized by the IETF.

What is Opus used for?

Opus is used for voice chat, video calls, game chat, streaming, podcasts, music, and other audio where good quality and low delay are important.

Is Opus a codec or a container?

Opus is an audio codec. Opus audio is commonly stored in an Ogg container with the .opus extension, but Opus itself is not the container.

How is Opus related to Ogg?

Opus is often encapsulated in the Ogg container for audio-only files. That is why many .opus files are technically Ogg Opus files.

Is Opus better than MP3?

Opus is usually more efficient than MP3, especially at low and medium bitrates, but MP3 still has broader compatibility with older devices and software.

Is Opus better than AAC?

Opus is especially strong for low-latency speech and internet audio. AAC is still very common for music, mobile devices, M4A files, MP4 video, and broad consumer compatibility.

Should I use .opus or .ogg for Opus audio?

For audio-only Opus files in an Ogg container, .opus is the modern, specific extension. Some older software may recognize .ogg more easily, but .ogg is less specific.

Can MP4 contain Opus audio?

Opus is most commonly seen in Ogg and WebM workflows, but it can also appear in other containers. Compatibility depends on the player, device, and software.

Is Opus good for music?

Yes. Opus can handle music well, especially at moderate bitrates, but it is best known for being flexible enough to handle both speech and music.

Is Opus lossless?

No. Opus is a lossy audio codec. It reduces file size by removing or simplifying audio information that is less likely to be noticed.

Opus storage and transport

Opus elementary stream packaged into Ogg, WebM, or RTP for different uses.
Container and transport support must be checked separately from Opus decoding.

See RFC 6716 for the codec and RFC 7845 for Ogg encapsulation. Low codec frame duration does not guarantee low end-to-end latency; network jitter buffers and application processing also matter.