Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

Audio format guide: MP3, M4A, AAC, FLAC, and more
Android Authority ^ | 28 July 2022 | Zak Khan

Posted on 07/29/2022 11:03:20 AM PDT by ShadowAce

When the MP3 player took off in the late 1990s, the format itself entered the public consciousness in a way not many others have — with perhaps the Word document being an exception. But what is an audio format, anyway, and why should you care?

This guide will cover some of the most popular formats used by audio streaming services today and explain their differences.

What is an audio file format?

A chart depicting a sign wave and the corresponding PCM representation of that wave below it.

A digital audio file is how recorded content gets saved on a computer, media player, smartphone, or other device. Digital audio is, at its most basic level, a series of numbers that a device can use to recreate sound waves. There are various ways to accomplish this and then compress (or not) the resulting data. We know that by sampling a sound wave in the process from analog to digital conversion with at least 16-bits at 44.1kHz that we can perfectly reproduce the captured signal again later on. This is thanks to some math called the Nyquist-Shannon sampling theorem. We can achieve higher bitrates and frequency ranges, but whether anyone can hear a difference — even though the best headphones — is debatable at best.

If we just save that data as is (known as pulse code modulation or PCM), the file takes a large amount of space. That’s why both lossy and lossless forms of audio compression have been developed. Lossy audio throws out audio frequencies that our ears cannot hear while lossless preserves them all. Lossy audio formats can also use other tricks to compress audio even further, which we’ll cover a little later.

Because most people these days access their music via streaming services, compressed, lossy file formats are the predominant way content gets distributed. That’s fine if you’re casually listening, but some people demand the utmost in quality. As a result, an increasing number of high-quality and even lossless streaming options are now available. But there’s no getting around the fact that lossy formats take up less space and eat up less mobile data, as the chart below makes clear.

Stereo file sizes (16-bit 44.1kHZ)WAVAIFFFLAC (typical)MP3 (320Kbps)MP3 (192Kbps)
Stereo file sizes (16-bit 44.1kHZ)
1 min
WAV
10.6 MB
AIFF
10.6 MB
FLAC (typical)
6.4 MB
MP3 (320Kbps)
2.4 MB
MP3 (192Kbps)
1.4 MB
Stereo file sizes (16-bit 44.1kHZ)
4 mins
WAV
41.6 MB
AIFF
41.6 MB
FLAC (typical)
24.9 MB
MP3 (320Kbps)
9.6 MB
MP3 (192Kbps)
5.6 MB
Stereo file sizes (16-bit 44.1kHZ)
1 hour
WAV
635 MB
AIFF
635 MB
FLAC (typical)
381 MB
MP3 (320Kbps)
144 MB
MP3 (192Kbps)
84 MB

MP3

best mp3 player cover image

The MP3 audio file format once reigned supreme when it came to downloading music. In fact, the format is so synonymous with mobile music solutions that “MP3 player” is now generic for an audio playing device. However, these days it’s less prominent for a variety of reasons. It’s still hanging on, though. Understanding MP3 files can help us understand other formats more easily as well, so we’ll start here.

An MP3 file is a lossy audio file, meaning it discards data our ears cannot hear. Almost every human has a hearing range somewhere in the range of 2oHz to 20kHz. The upper limit actually decreases with age, but in general that’s the range within every noise you’ll ever hear lies. Because we know other frequencies are therefore superfluous, MP3 discards all frequencies outside this range.

In order to further save some space, MP3 files use even more tricks. Audio engineers use noise shaping algorithms based on psychoacoustic effects of the human ear and brain to remove parts of music that we shouldn’t be able to hear. For example, the brain can’t differentiate between two frequencies that are right next to each other. Furthermore, the adult human ear struggles to identify the direction of high frequency sounds. It also begins to lose sensitivity above 16kHz. Plus, loud sounds can mask quieter ones. All these can be removed with little to no noticeable difference to the end listener.

Basically, MP3 files remove frequencies we cannot hear and frequencies we could hear in isolation, but cannot because of the way they're combined in a particular song.

An MP3 splits up a track up into 576 sample frames, and Fast Fourier Transforms (FFT) are used to obtain frequency data from these frames. The frequency data is then analyzed to see if any opportunities exist to apply the compression rules based on human hearing as described above. If so, these portions are rounded down (quantized) to lower bitrates, which helps save space. Data regarding how to restore each frame to its full sound wave representation gets saved to a 32-bit header.

The bitrate determines the maximum allowed file size for each frame. The more aggressive the compression, the more likely the algorithm is to remove something that is audible. Furthermore, this type of filtering and cutting isn’t perfect and the quantization can leave behind artifacts that some people can hear. This lossy psychoacoustic compression is then followed up by a lossless Huffman coding compression that is similar to .zip file to save more space.

If that sounds too complicated, the takeaway is that MP3 files remove frequencies we cannot hear and ones we theoretically could hear in isolation, but cannot in a particular song due to auditory masking. This can lead to quite small file sizes. If it is done too aggressively or with a bitrate that is too low, though, quality can suffer. As a result, MP3 isn’t all too popular anymore for streaming.

AAC, M4A, and OGG Vorbis audio formats

A screenshot of the macOS Apple Music app.

Audio compression can take many forms, and other formats have been developed. These use slightly different algorithms and techniques to accomplish the task, so we can’t compare them based on bitrate alone.

OGG Vorbis is an open-source alternative to MP3. It still uses FFT and similar methods to analyze and quantize mask-able frequency information but employs a different algorithm. Vorbis also takes the noise floor into account to improve low bitrate performance. Spotify uses this format at 320kbps.

There’s also AAC, which is used by Apple Music, Tidal, Pandora, and YouTube Music. It’s an evolution of the MPEG (MP3) format and allows for higher sample rates up to 96kHz. Plus, it can dynamically switch frame lengths between 1024/960 or 128/120 samples for better resolution when required. It performs better at lower file sizes than MP3s, to boot.

Another file type you might encounter is the M4A file. These files are encoded using the AAC format, and then stored in an MPEG-4 container, hence the file extension .m4a. Apple created this type as a response to MP3. While not quite as universally supported, it isn’t rare by any means.

For these reasons, you can’t directly compare bitrates and claim a higher bitrate would be a better-sounding file between AAC and MP3, for instance. Lower bitrate AAC and M4A files can still sound good while taking up less space.

That makes formats like OGG Vorbis and AAC appealing for streaming services. They can deliver higher-quality sound while consuming less of your mobile data.

FLAC

Deezer Android app

If you don’t want to throw out any frequencies but still want a file that’s smaller than raw data, that’s where FLAC comes in. FLAC does not discard any part of a recording, and therefore it’s called lossless. Apple’s version of a lossless codec is called ALAC. Both of these codecs function rather like a .zip file. If you’ve ever zipped and then unzipped a collection of files, you’ll understand the basic idea. Nothing gets removed, the FLAC file just looks for ways to consolidate repeating patterns and data and those are then reconstructed upon playback.

Still, FLAC files will never be as small as MP3 or AAC files. But as bandwidth gets cheaper and more accessible, an increasing number of streaming services offer the ability to stream using FLAC. These are often “HD,” “Ultra HD,” or “HiFi” subscriptions. Amazon Music Unlimited, Tidal HiFi and HiFi Plus, Deezer Premium, and Qobuz all offer FLAC streaming.

Be aware that FLAC files are larger than lossy formats and can eat up a lot of your data. If you save them to a device, they’ll also start taking up storage space pretty quickly.

WAV and AIFF audio formats

Trimming Audio on Audacity 2

Audio recordings can be just pure PCM saved to a device, which is essentially what WAV (on Windows) and AIFF (on Mac) are. They represent some of the earliest forms of storing digital music. These files have no compression or anything else applied to them. In fact, you can find out their file size pretty easily with the following equation:

PCM Size = sample rate X (bits per sample /8) X time in seconds X number of channels

As a result, these formats can lead to incredibly large file sizes. That means they’re rather rare for streaming and downloading, although services like HDtracks do offer them. What these files are really useful for is in audio mixing and editing. Because no conversion, compression, or anything else has taken place, it’s easy and quick to edit tracks, save them, and then edit them again as required.



TOPICS: Computers/Internet
KEYWORDS: audio; computers; digital; mp3; music
Navigation: use the links below to view more comments.
first 1-2021-29 next last

1 posted on 07/29/2022 11:03:20 AM PDT by ShadowAce
[ Post Reply | Private Reply | View Replies]

To: rdb3; JosephW; martin_fierro; Still Thinking; zeugma; Vinnie; ironman; Egon; raybbr; AFreeBird; ...

2 posted on 07/29/2022 11:03:32 AM PDT by ShadowAce (Linux - The Ultimate Windows Service Pack )
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

Holy big pics batman.


3 posted on 07/29/2022 11:05:36 AM PDT by Pollard (If there's a question mark in the headline, the answer should always be No.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

flac and vinyl rule


4 posted on 07/29/2022 11:08:55 AM PDT by mylife (And I would have gotten away with it too, if it weren't for you meddling kids...)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Pollard

Yeah—sorry. The part that contains the img link was embedded so far into a textwall that I really didn’t want to wade through it to find it and edit it.


5 posted on 07/29/2022 11:09:19 AM PDT by ShadowAce (Linux - The Ultimate Windows Service Pack )
[ Post Reply | Private Reply | To 3 | View Replies]

To: ShadowAce

Enjoyable post. I record mostly in MIDI (Logic Pro X) except for vocals and never knew this helpful info.

Passing on to a few musician friends

Thx


6 posted on 07/29/2022 11:13:07 AM PDT by jcon40 (Machinery is only as good as its design and quality of parts. A citizen is only as good as...)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

Not mentioned ...

Just like FM broadcasts, stereo audio is converted to Left+Right and Left-Right signals.

An MP3 process stores the L+R signal with more data and saves on the data for the L-R, difference channel.


7 posted on 07/29/2022 11:17:44 AM PDT by George from New England
[ Post Reply | Private Reply | To 2 | View Replies]

To: ShadowAce

DIGITAL SUCKS!


8 posted on 07/29/2022 11:22:53 AM PDT by RobertoinAL
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce
For example, the brain can’t differentiate between two frequencies that are right next to each other. Furthermore, the adult human ear struggles to identify the direction of high frequency sounds. It also begins to lose sensitivity above 16kHz. Plus, loud sounds can mask quieter ones.

And for the psychoacoustic trick that blows everyone's mind, a louder tone can mask a quiet tone that's near its frequency, even if the quiet tone started before the loud tone. That confused me entirely when I wrote a paper on it in my college class "ripping CDs for a grade".

9 posted on 07/29/2022 11:45:02 AM PDT by KarlInOhio (If Hitler invaded Hell, I would make at least a favourable reference of the Devil...-Churchill)
[ Post Reply | Private Reply | To 1 | View Replies]

To: RobertoinAL

“DIGITAL SUCKS!”

DIGITAL RULES!


10 posted on 07/29/2022 11:49:40 AM PDT by TexasGator (UF)
[ Post Reply | Private Reply | To 8 | View Replies]

To: George from New England

“Just like FM broadcasts, stereo audio is converted to Left+Right and Left-Right signals.”

The L+R becomes the mono carrier for backwards compatibility and the L-R is used to derive the L and R channels from the L+R signal.


11 posted on 07/29/2022 11:59:46 AM PDT by TexasGator (UF)
[ Post Reply | Private Reply | To 7 | View Replies]

To: ShadowAce

PCM is not purely a digital format because the pulse width varies continuously (non-discretely, or non-digitally) between its limits.


12 posted on 07/29/2022 12:04:28 PM PDT by cymbeline
[ Post Reply | Private Reply | To 1 | View Replies]

To: George from New England

“An MP3 process stores the L+R signal with more data and saves on the data for the L-R, difference channel.”

Because most of the data is centered left and right are similar so L-R is very small.


13 posted on 07/29/2022 12:06:05 PM PDT by TexasGator (UF)
[ Post Reply | Private Reply | To 7 | View Replies]

To: cymbeline

“PCM is not purely a digital format because the pulse width varies continuously (non-discretely, or non-digitally) between its limits.”.

PCM is pulse-code modulation, not pulse-width modulation.


14 posted on 07/29/2022 12:12:12 PM PDT by TexasGator (UF)
[ Post Reply | Private Reply | To 12 | View Replies]

To: ShadowAce

I record live symphonic music on a Sony PCM D100 to a .wav file. The device also allows me to simultaneously record the same music to an MP3 file. While there is a huge difference in file size, a 32 G card will hold a season’s music in both formats anyway. Without question, and even to my age-degraded hearing, the .wav recordings are superior to the MP3 files. They are brighter, with a somehow deeper, sharper, and quicker rendering of the same music.


15 posted on 07/29/2022 12:21:21 PM PDT by PUGACHEV
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

I The walkman they have pictured at the top of the article is what I use primarily for music when mobile. Like it a lot. Sadly, I still rip most of my stuff as MP3s, though I use a stupid bitrate, mostly because any device on the planet can play them. I also have programs that let me edit the tags easily, including adding artwork


16 posted on 07/29/2022 12:35:19 PM PDT by zeugma (Stop deluding yourself that America is still a free country.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

While I like many aspects of the wide world of Apple, I am not enamored with iTunes and do not use the Apple Music streaming.

I have been trying to add some music to my iPhone and iTunes simply will not move it to the phone.

I have purchased LPs, cassettes and CDs of my favorite artists, have saved the files to my system and now want my music on my phone.

Can’t move it over. Just can’t. Just upgraded to IOS 15.6 on an iPhone 12.

Is the likely culprit that I am not using AAC format, or could there still be some DRM issues lurking under the covers?

Or should I dump Apples music system and look at an independent player?

I have another long drive coming up and would like to intersperse some Rich Mullins amongst all the podcasts that I will be listening to.

Opinions welcome.


17 posted on 07/29/2022 1:06:38 PM PDT by texas booster (Join FreeRepublic's Folding@Home team (Team # 36120) Cure Alzheimer's!)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce
MP3s are fine for my phone...WAV (CD) is all I'll accept for my home collection.
18 posted on 07/29/2022 1:13:50 PM PDT by Gay State Conservative (Covid Is All About Mail In Ballots)
[ Post Reply | Private Reply | To 1 | View Replies]

To: texas booster
Interesting.

I have an Android with a microSD card that I save all my music to. Just copy it from my computer, and slip the SD into the phone, and I have all my music.

19 posted on 07/29/2022 1:36:12 PM PDT by ShadowAce (Linux - The Ultimate Windows Service Pack )
[ Post Reply | Private Reply | To 17 | View Replies]

To: RobertoinAL

DIGITAL SUCKS!
The MoFi scandal says otherwise. They’ve been cutting vinyl from digital files and charging 130 bucks a record and the vinyl snob purists couldn’t even tell the difference. I’m lovin it. DSD rocks. Vinyl sucks.


20 posted on 07/29/2022 1:43:44 PM PDT by sunny bonobo
[ Post Reply | Private Reply | To 8 | View Replies]


Navigation: use the links below to view more comments.
first 1-2021-29 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson