Skip to content

How to Play and Convert .webm and .opus Audio Files

Published

Why your audio ends in .webm or .opus

YouTube stores audio in two families: AAC inside M4A files, and Opus inside WebM files. If you saved the Opus stream, you have a WebM audio file. Some tools save the same audio with an .opus ending instead. The sound is the same, and only the wrapper around it differs. Our guide to YouTube audio quality explains how Opus compares with AAC.

Opus is an efficient, modern codec, so these files are usually small for their quality. The catch is compatibility: older apps, car stereos and some phones don't include an Opus decoder, so they refuse the file or play silence.

Try a player that opens everything first

Before converting anything, try a free player such as VLC or mpv. Both play WebM and Opus audio on Windows, macOS and Linux. Chrome, Firefox and Edge also typically play the file if you drag it into a browser tab. Support in built-in players depends on the app and the version of the operating system, so if one refuses the file, that isn't proof the file is broken.

Converting without making things worse

Every conversion has a cost you should know about. Turning Opus into MP3 or AAC means compressing already compressed audio a second time. It can't bring back detail that was discarded earlier, and it can add small artifacts, so a larger bitrate setting only produces a larger file. See why in what bitrate really means.

Option 1: change the wrapper only (no quality change). This copies the audio as it is into an .opus file. It helps with an app that accepts .opus but not .webm. It won't help with a device that can't decode Opus at all.

ffmpeg -i input.webm -vn -c:a copy output.opus

Option 2: convert to MP3 for old hardware. The quality setting below is a high variable bitrate. Expect a small extra loss.

ffmpeg -i input.webm -vn -c:a libmp3lame -q:a 2 output.mp3

Option 3: convert to M4A (AAC).

ffmpeg -i input.webm -vn -c:a aac -b:a 192k output.m4a

The easier route: pick the format you need up front

If your device wants M4A or MP3, converting afterwards is the slow way. Our audio downloader lists the audio streams YouTube stores for each video and saves the one you choose as it is. Choosing the M4A (AAC) row gives you a file that most devices open, with no conversion step at all. If you do want WebM, the WebM page lists those rows.

Quick guide

  • Plays everywhere, no fuss: choose the M4A (AAC) row.
  • Best quality for the file size, and your player handles it: choose Opus.
  • Already have a .webm file that won't open: try VLC first.
  • Need an MP3 for old hardware: convert from the best source you have, and expect no quality gain.

FAQ

Questions about this article

Is a .webm audio file the same as an .opus file?
They can contain the same Opus audio. WebM and Ogg (.opus) are different wrappers around it. You can often switch between them without re-encoding, using ffmpeg’s copy mode.
Does changing .webm to .opus reduce quality?
Not if you copy the audio without re-encoding, because the sound data isn’t touched. Converting to MP3 or AAC does compress it a second time.
Which free player opens WebM and Opus files?
VLC and mpv both do, on Windows, macOS and Linux.
Can an iPhone play these files?
It depends on the iOS version and the app. If your player refuses the file, try VLC or choose the M4A (AAC) row, which Apple devices handle well.