Using the search means you accept our Terms of Use.

Search
YouTube conversion

YouTube Opus vs AAC: How the Two Audio Streams Differ

YouTube keeps an Opus copy and an AAC copy of most soundtracks. They differ in age, efficiency and device support, and far less in sound than the names suggest.

5 min read · Published · Updated

Published by MP3Juice under our editorial policy.

Headline "Opus vs AAC" beside two glowing audio capsules, one teal and one violet, with headphones between them
Contents
  1. Where the two codecs come from
  2. YouTube Opus vs AAC side by side
  3. Which stream your device plays
  4. How they compare by ear
  5. What the source codec means for an MP3
  6. What it means for MP4 files and other players
  7. What to take from this

Most YouTube videos have their soundtrack stored twice, once as Opus and once as AAC. The player picks one to suit the device, and a conversion service does the same when it prepares a file. In the YouTube Opus vs AAC comparison you rarely get to choose, so the useful question is what each one means for the file you end up with.

Both are lossy codecs, both are more efficient than MP3, and at the bitrates YouTube uses both sound good. They differ in origin, in the devices that play them and in how they fit into MP3 and MP4 files.

Where the two codecs come from

Opus

Opus is an open, royalty-free codec published by the Internet Engineering Task Force as RFC 6716 in 2012. It merges two earlier designs: SILK, built for speech in Skype, and CELT, built for music with very low delay. One codec therefore covers everything from a narrow voice call to full-range stereo music, at bitrates from 6 to 510 kbps. For music it runs at a sample rate of 48 kHz. It is also a required audio codec for WebRTC, the technology behind voice and video calls in browsers. YouTube stores it in the WebM container.

AAC

AAC, short for Advanced Audio Coding, was standardised by MPEG in 1997 as the successor to MP3. It is a family of profiles. The one YouTube uses for normal playback is AAC-LC, the Low Complexity profile, which browsers label mp4a.40.2. AAC is patent-licensed. It is the usual audio format of the MP4 container and of Apple devices, and a low-bitrate variant, HE-AAC, is used by DAB+ digital radio.

YouTube Opus vs AAC side by side

The table compares Opus and AAC on six points.

FeatureOpusAAC
Published2012, IETF RFC 67161997, ISO/IEC MPEG
LicenceRoyalty-freePatent-licensed
Container on YouTubeWebMMP4
Typical YouTube bitrateUp to about 160 kbps, variableAbout 128 kbps
Sample rate on YouTube48 kHzUsually 44.1 kHz
Plays onCurrent browsers, Android, players such as VLCNearly every phone, computer and television

The bitrates are YouTube's choices, not limits of the codecs. Both can run far higher. The sample rates have a history of their own: 44.1 kHz comes from the CD and 48 kHz from video production. Both are high enough for the full range of hearing.

Which stream your device plays

YouTube decides per device. Browsers that support WebM, such as Chrome and Firefox on a computer, are normally sent Opus. Devices and apps built around MP4 are sent AAC. To see which one you have in a desktop browser, right-click the video, choose Stats for nerds and read the Codecs line. After the video codec it shows either opus or mp4a.40.2. The number in brackets is YouTube's own code for the stream: 251 is the main Opus version and 140 the main AAC version.

A conversion service makes its own selection from the same streams. You do not choose the source codec on MP3Juice, and the label on a download option describes the output file, not the stream behind it. The step in which both versions are created is described in how YouTube compresses audio.

How they compare by ear

Opus is the more efficient design. In public listening tests at low bitrates it has generally come out ahead of AAC. As the bitrate rises the gap closes. At the 128 to 160 kbps YouTube uses for music, most listeners cannot reliably tell either stream from the upload it was made from, let alone tell the two apart.

What you do hear on YouTube is the upload. A soundtrack that was clipped, recorded on a phone or copied from another lossy file sounds poor in both codecs. Comparing two different uploads of a song tells you about the uploads, not about Opus and AAC.

What the source codec means for an MP3

Neither stream can be placed in an .mp3 file as it is. The service decodes the Opus or AAC audio to raw samples and encodes those as MP3, so the file contains MP3 data only and has been through lossy compression twice. Each stage is set out in the five stages of a video to MP3 conversion.

Because the two sources are of similar quality, the choice between them barely affects the finished MP3. The MP3 bitrate matters a little more. MP3 is the least efficient of the three codecs, so a file at 192 kbps holds the sound of a 128 to 160 kbps stream more safely than a file at 128 kbps. Going to 320 kbps adds size without adding detail. Our comparison of MP3 vs AAC covers those two formats in detail.

What it means for MP4 files and other players

MP4 files pair naturally with AAC. A service can join an H.264 video stream and the AAC audio stream without re-encoding either, which is why the sound in an MP4 download is normally AAC. Opus inside MP4 is permitted by the format but poorly supported outside browsers.

Compatibility is where AAC wins outright. A file with AAC audio plays on iPhones, Android phones, Windows, macOS and most televisions. Opus plays in current browsers and on Android, but car stereos and older portable players often reject it. MP3 is still the format the widest range of hardware accepts, which is the practical reason converters offer it despite the extra encode. The audio format comparison sets Opus beside MP3, AAC, WAV and FLAC.

The original streams are rarely seen as files, but their names are easy to recognise. AAC audio is usually saved as .m4a, an MP4 container holding sound only. Opus is saved as .webm or .opus. The download buttons on MP3Juice are for MP3 and MP4, so you will not normally meet either there.

What to take from this

Four points sum up the comparison:

  • You cannot pick the source codec, and you do not need to. At YouTube's bitrates both are good.
  • Judge the upload, not the codec. The Play button on a result lets you listen first.
  • For audio, a moderate MP3 bitrate is enough. A bigger number recovers nothing.
  • For video, an MP4 with AAC audio is the safest choice for playback on other devices.

The whole route from stream to file, for both formats, is in YouTube audio and video conversion.