Skip to Content
MP3: The Definitive Guide
book

MP3: The Definitive Guide

by Scot Hacker
March 2000
Intermediate to advanced
400 pages
12h 59m
English
O'Reilly Media, Inc.
Content preview from MP3: The Definitive Guide

Chapter 2. How MP3 Works: Inside the Codec

So what’s the trick? How does the MP3 format accomplish its radical feats of compression and decompression, while still managing to maintain an acceptable level of fidelity to the original source material? The process may seem like magic, but it isn’t. The entire MP3 phenomenon is made possible by the confluence of several distinct but interrelated elements: A few simple insights into the nature of human psychoacoustics, a whole lot of number crunching, and conformance to a tightly specified format for encoding and decoding audio into compact bitstreams. In this chapter, we’ll take a look at these elements in detail in order to understand exactly what’s going on behind the scenes of MP3 encoding and decoding software, as well as some of the chicanery that takes place between your ears.

Note that this chapter goes fairly deeply behind the scenes of MP3, and is somewhat technical in nature. You can skip this chapter if you’re not interested in learning how MP3 works. If you just want to get started creating and playing MP3 audio, you can skip ahead to Chapter 3, Chapter 4, and Chapter 5.

A “Perceptual” Codec

Well-encoded MP3 files can sound pretty darn good, considering how small they are. As mentioned in Chapter 1, your typical MP3 file is around one-tenth the size of the corresponding uncompressed audio source. How is this accomplished? That’s a somewhat complex topic, so we’ve devoted this entire chapter to explaining the process.

MPEG ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Mixing Audio, 3rd Edition

Mixing Audio, 3rd Edition

Roey Izhaki
Audio Effects

Audio Effects

Joshua D. Reiss, Andrew McPherson

Publisher Resources

ISBN: 1565926617Catalog PageErrata