Headroom Before MP3: Why High-Frequency Peaks Explode
What a lossy encoder does to transients, why true peaks climb after conversion, and where the headroom has to be created.
A master that measures perfectly can come back from conversion sounding harsher than the file you sent. Nothing in the sequence was turned up; the encoder rebuilt the top end from a compressed description of it, and every peak you left sitting at the ceiling got a chance to ring on the way through.
This is the part most people learn after a release has gone out. The waveform in your editor is the version before reconstruction, and the version the listener decodes is not the same shape.
What the encoder does with your peaks
Lossy formats describe the signal in blocks and then throw away the detail the model predicts you will not hear. Sharp transients are exactly the kind of detail that gets simplified, because the energy around them is briefly masked by the hit itself. When the mask ends, the reconstruction smears what was left across a few milliseconds.
That smear shows up as a soft spike just after a hard edge, and on a bright mix it reads as grit. The second effect is that a signal sitting at full scale has nowhere to go; the encoder's arithmetic can push the reconstructed waveform above the level you delivered, and the playback chain clips it after your file is long gone.
Why the top end gets harsher after conversion
Two things stack. Inter-sample peaks climb above zero on reconstruction, so a file that never shows a clipped sample can still clip in the conversion to analog. Meanwhile the energy that lived in a clean transient is spread over a slightly longer window, which the ear hears as brightness without detail.
The more aggressive the bitrate, the more visible this becomes. Listeners on earbuds are the least forgiving group, because they already hear a narrow band and every extra edge lands in it.
Where headroom has to be created
Inside the mastering chain, at the limiter — not as an afterthought on the export. Set the limiter's true-peak ceiling to land one to one and a half decibels below full scale, run the whole mix through it, and let that ceiling be the loudest the file ever gets. A true peak meter is the right instrument afterwards, because it estimates what happens between samples rather than what the samples say.
Measure after the final processing chain, not before it. If your chain ends with any stage that can add energy in the top, the number you measured ten minutes earlier no longer describes the file you are about to export.
The distinction that resolves most confusion: headroom is a property of the master, set where the peaks are shaped. A gain trim applied to an already-finished, already-maximised file is not the same move, because it cannot undo overs that already happened inside the limiter's arithmetic, and any later stage that normalises on import puts the file straight back to the ceiling.
A two-minute A-B that shows the damage
Export two versions of the same chorus: one mastered to a -1.5 dBTP ceiling and one mastered to zero, then trimmed down after the fact. Convert both to the format you intend to distribute, then play them back at the same volume and switch between them without looking at the screen.
Listen for the edge on sibilance and on cymbal hits rather than for loudness. The version mastered with the ceiling in place will sound very slightly quieter and noticeably cleaner on exactly those moments, which is the trade you are actually making.
Mistakes that put the edge back
- Mastering flat to zero and only adding space at export. The overs from the limiting stage are already baked in; the trim changes the number, not the damage.
- Normalising an already loud file before conversion, which changes nothing except the number in the tag.
- Turning a lossy file into another lossy format, which asks a second encoder to interpret the guesses of the first.
- Measuring sample peak instead of true peak, then wondering why the decode clips anyway.
The final check before you upload
Convert a reference track to the delivery format, play it on the worst device you own, and listen to the first chorus and the quietest passage. If the top has gone from present to pointed, go back and lower the ceiling in the master rather than trimming the export.
Do that once per release and the pattern becomes obvious fast: clean highs after conversion come from space the limiter left before it.
— Nam Hoai (Nam Hoài Đất Mỏ)