Guides

FLAC, MP3 or OPUS for Audio?

FLAC, MP3 320 or OPUS for audio saved from YouTube? The source is already lossy, so here is what each format really gives you and when to choose it.

The source is already lossy

Every comparison of audio formats for downloads has to start with a fact that many of them skip: YouTube does not serve lossless audio. Whatever the uploader sent, the site stores and streams the sound in two lossy codecs, AAC and Opus. On most videos the AAC track is around 128 kbps and the best Opus track is around 160 kbps or a little under.

Lossy means that part of the original signal was discarded to make the file small, and that part cannot be brought back. No format you choose afterwards can add it. The best any download can be is a faithful copy of the stream YouTube holds.

So the real question is not which format sounds best. It is which format carries that stream to the device you will play it on with the least further damage, at a size you can live with. You can see what a particular video offers by listing its formats: the audio-only rows show the codec and bitrate.

See the audio tracks a video offers
yt-dlp -F "URL"

What FLAC and WAV really give you

FLAC and WAV are lossless formats: what goes in comes out bit for bit. That is true here as well, but what goes in is the decoded Opus or AAC stream. The result is a lossless container around a lossy source. It sounds the same as the stream it was made from, and not better. A FLAC made from a YouTube video is not CD quality, whatever a converter site promises.

They are still useful. A lossless file can be opened, cut, mixed and saved again without any further loss, which matters if the audio is headed into an editor, a sampler or a project where it will be processed several times. Some hardware and software also accepts WAV and little else.

The cost is size. WAV is uncompressed and takes roughly 10 MB for each minute of stereo sound. FLAC compresses without loss and often comes out near half of that. Either is several times larger than the stream it was decoded from.

MP3 at 320 kbps

MP3 is the format everything plays: car stereos, old phones, DJ software, cheap players, any operating system. That reach is the whole argument for it, and it is a good one.

Understand what the 320 means, though. Converting a 128 or 160 kbps stream to a 320 kbps MP3 does not raise the quality. It is a second round of lossy compression on top of the first, and the high bitrate is there to make that second round as gentle as possible. At 320 kbps the added loss is small enough that few people could pick it out. The file is about 2.4 MB a minute, around twice the size of the source.

Choose MP3 320 when the file has to play somewhere you do not control. If everything you own plays Opus or AAC, converting to MP3 only costs space.

OPUS: closest to the source

Opus is the more modern codec, and at the same bitrate it holds up better than MP3. For YouTube it has a second advantage: it is usually the best track the site has. Saving Opus therefore means no conversion at all. yt-dlp copies the stream into a file and what you hear is exactly what YouTube holds, at a little over 1 MB a minute.

The weakness is support. Current browsers, Android, VLC, mpv and most desktop players handle Opus without trouble. Older car stereos, some portable players and a fair amount of DJ and editing software do not. Check the device before you fill a memory stick.

Keeping the original stream

With yt-dlp, -x extracts the audio. Used alone, it takes the best audio track and keeps it in its original codec; nothing is re-encoded. Ask for a format with --audio-format and one of two things happens. If the track is already in that codec, it is copied. If not, FFmpeg converts it, and for MP3 the --audio-quality option sets the bitrate.

That gives a simple order of preference. Keep the original when your player can read it. Convert to MP3 for compatibility. Convert to FLAC or WAV only when the file is going to be edited.

Best audio, original codec, no re-encoding
yt-dlp -x "URL"
OPUS (a straight copy when the source is Opus)
yt-dlp -x --audio-format opus "URL"
MP3 at a fixed 320 kbps
yt-dlp -x --audio-format mp3 --audio-quality 320K "URL"
FLAC, for editing
yt-dlp -x --audio-format flac "URL"
WAV, for editing
yt-dlp -x --audio-format wav "URL"

File sizes in practice

For a four-minute song, the numbers come out roughly as follows. They are approximate, because bitrates vary from video to video and FLAC’s compression depends on the material.

  • OPUS, as served — about 4 to 5 MB.
  • MP3 at 320 kbps — about 10 MB.
  • FLAC — commonly 20 to 30 MB.
  • WAV — about 40 to 45 MB.

Which one to pick

  • Listening on a PC, an Android phone or anything with a modern player — OPUS. Smallest file, no conversion.
  • A car stereo, an older player, DJ software, or a file you are sending to someone — MP3 at 320 kbps.
  • Editing, sampling or processing the audio further — FLAC, or WAV if the software insists on it.
  • Archiving — keep the original stream. A FLAC copy preserves nothing extra and takes several times the space.
  • Music you care about hearing at its best — buy or download it from a source that sells lossless files. No conversion of a streamed track gets you there.

In the app

GetVideosLocally, the Windows app this site is about, offers four audio formats in its Format menu: FLAC, WAV, MP3 at 320 kbps and OPUS. Paste the link, choose one and press Download Now; the bundled yt-dlp and FFmpeg do the extraction and any conversion. Playlists are saved into a folder with numbered file names.

I included FLAC and WAV for people who edit, not as a promise of better sound, and everything on this page applies to the app exactly as it does to the command line. Whichever you use, download only what you are allowed to save: your own uploads, public-domain and Creative Commons material, and content you have permission for.

FAQ

Is FLAC from YouTube really lossless?

The file is lossless, the audio is not. YouTube serves AAC and Opus, both lossy. A FLAC made from them is an exact copy of that lossy stream in a much larger file, and sounds the same as the source.

Is MP3 320 kbps better than OPUS?

Not for audio saved from YouTube. The Opus track is usually the original stream, so keeping it involves no extra loss. An MP3 at 320 kbps is a conversion of that stream: larger and very slightly further from the source, but playable everywhere.

What bitrate is YouTube audio?

Typically around 128 kbps for the AAC track and up to about 160 kbps for Opus. It varies by video; yt-dlp -F lists the exact tracks and bitrates a video offers.

Should I choose WAV or FLAC?

FLAC, unless a program or device only accepts WAV. Both hold identical audio. FLAC is compressed without loss, so it is smaller, and it can carry tags such as title and artist.

Does converting to a higher bitrate improve quality?

No. Quality is capped by the source. A higher bitrate only reduces how much the conversion itself takes away.

Download GetVideosLocally for Windows. Free and open source.

Home · Guides · Changelog · Privacy · GitHub · Donate