Why does my master clip after upload?
A master whose samples never exceed 0 dBFS can still clip, because the analogue waveform between the samples goes higher than the samples do: a limited drum loop with a sample peak of −0.1 dBFS measured a true peak of +0.54 dBTP, and after AAC encoding at 128 kbit/s its decoded peak was +0.91 dBFS. ITU-R BS.1770 defines the true-peak meter that catches this, and Spotify, the AES and the EBU all set the ceiling at −1 dBTP.
Where the peak between the samples comes from
Digital audio stores the waveform's value at each sample instant. The converter that plays it back rebuilds the continuous waveform through those points, and that waveform is free to pass above the highest sample. BS.1770-5, Annex 2, gives the simplest case: a pure tone at a quarter of the sampling frequency, with an unlucky phase, reads 3 dB low on a sample-peak meter.
Tytonic reproduced it. An 11025 Hz sine (a quarter of 44.1 kHz) with its phase set so the samples fall at 45°:
| Signal | Sample peak | True peak (16× oversampled) |
|---|---|---|
| Sine at fs/4, phase 0° | 0.00 dBFS | +0.13 dBTP (true value 0.00 dBTP; the 0.13 dB is the 4× oversampling meter's own filter error) |
| Sine at fs/4, phase 45° | −3.01 dBFS | +0.11 dBTP |
| Same 45° sine scaled so its sample peak is 0.00 dBFS | 0.00 dBFS | +3.12 dBTP |
The last row is a file that no sample-peak meter would flag, playing back 3.1 dB over full scale. Real music is not a single tone at fs/4, so the usual case is smaller than 3 dB, but the same mechanism is at work at every transient. BS.1770-5 says it directly: for individual transients the under-read is not concealed by averaging, and "under-reading of these can commonly be several dBs".
Limiting and clipping make it worse, because flattening the top of a waveform adds high-frequency content, and a sharp corner between samples is exactly what the reconstruction overshoots. A synthetic drum loop hard-clipped at 0 dBFS:
| Gain into the clipper | Samples clipped | Sample peak | True peak |
|---|---|---|---|
| +3 dB | 0.01% | 0.00 dBFS | +0.24 dBTP |
| +6 dB | 0.20% | 0.00 dBFS | +0.75 dBTP |
The same loop through a lookahead peak limiter with its ceiling at −0.1 dBFS came out at a sample peak of −0.10 dBFS and a true peak of +0.54 dBTP. The limiter kept the samples under the ceiling, as designed; the waveform between them went 0.64 dB over.
How a true-peak meter works
BS.1770 (Annex 2) specifies the measurement: attenuate by 12.04 dB (for integer headroom), oversample by 4× (48 kHz to 192 kHz), low-pass filter, take the absolute value, convert to dB and compensate the attenuation. The result is written dBTP. The oversampled signal is a closer estimate of the continuous waveform, so its peak is a closer estimate of the real peak.
4× is the minimum the standard recommends, not an exact answer. Its own table gives the worst-case under-read of a 4× meter as 0.554 dB for a tone at 0.45 of the sampling frequency and 0.688 dB at 0.5; an 8× meter is within 0.169 dB and 16× within 0.042 dB. Different meters therefore disagree by a few tenths of a dB on the same file, and a reading of −0.3 dBTP on one meter can be −0.1 dBTP on another. That is one of the reasons the ceiling is set 1 dB down rather than at 0.
What the codec adds
Streaming services do not play the WAV. They encode it (AAC, Ogg Vorbis, Opus, MP3) and the decoded waveform is not identical to the input: the codec's own filter bank and quantisation produce new peaks. AES TD1008 states that peak overshoot increases as the bit rate decreases and that codec and sample-rate-conversion overshoots can be additive.
Tytonic encoded the limited drum loop above through ffmpeg's encoders and measured the decoded files:
| Master (sample peak) | Codec | Decoded sample peak | Decoded true peak |
|---|---|---|---|
| −0.10 dBFS | MP3 128 kbit/s | +0.14 dBFS | +0.52 dBTP |
| −0.10 dBFS | MP3 320 kbit/s | +0.04 dBFS | +0.62 dBTP |
| −0.10 dBFS | AAC 128 kbit/s | +0.91 dBFS | +1.04 dBTP |
| −0.10 dBFS | AAC 256 kbit/s | +0.01 dBFS | +0.25 dBTP |
| −0.10 dBFS | Ogg Vorbis q5 (about 160 kbit/s) | +1.20 dBFS | +1.20 dBTP |
| −0.10 dBFS | Opus 96 kbit/s | +1.04 dBFS | +1.35 dBTP |
| −1.00 dBFS (same file, 0.9 dB lower) | MP3 128 kbit/s | −0.72 dBFS | −0.25 dBTP |
| −1.00 dBFS | MP3 320 kbit/s | −0.81 dBFS | −0.30 dBTP |
| −1.00 dBFS | AAC 128 kbit/s | −0.18 dBFS | −0.01 dBTP |
| −1.00 dBFS | AAC 256 kbit/s | −0.73 dBFS | −0.41 dBTP |
| −1.00 dBFS | Ogg Vorbis q5 | +0.03 dBFS | +0.14 dBTP |
| −1.00 dBFS | Opus 96 kbit/s | +0.43 dBFS | +0.69 dBTP |
Every encoder pushed the −0.1 dBFS master over full scale in the decoded samples themselves, by up to 1.2 dB. Whether that becomes audible distortion depends on the player: a decoder working in floating point with a volume control after it may pass the overs through; a fixed-point path or a player that converts to integer at full scale clips them. The 0.9 dB lower version stays under 0 dBFS in sample peak for MP3 and AAC, while Ogg Vorbis and Opus still cross it (by 0.03 and 0.43 dB), and its true peak stays near or under 0 dBTP for MP3 and AAC. The lower the bit rate, the more headroom the file needs, which is what TD1008 says.
These are one loop and one set of encoders at one date. A different master and a different encoder give different numbers; the direction and the order of magnitude are what to take from the table.
Why the ceiling is −1 dBTP
Three organisations publish the same number from three directions:
- Spotify (artists' help page): keep the true peak below −1 dBTP, and below −2 dBTP if the master is louder than −14 LUFS, "to avoid extra distortion" in transcoding to Ogg Vorbis and AAC. Spotify also leaves 1 dB of headroom when it lifts quiet tracks, for the same reason.
- AES TD1008: maximum true peak not exceeding −1 dBTP at the codec input, with a note that lower-bit-rate streams may need it reduced further.
- EBU R 128: the true peak of a programme shall not exceed −1 dBTP in production, measured with a BS.1770-compliant meter, measurement tolerance ±0.3 dB; permitted maximum levels may be lower for different distribution systems and data-reduction rates.
The 1 dB covers the meter's own under-read (up to 0.69 dB at 4×), a part of the codec's overshoot, and the sample-rate conversion a service may apply. Spotify's extra 1 dB for loud masters reflects the measurement above: heavy limiting raises the overshoot, so the louder the master, the more headroom the codec needs.
What to do with a master
- Meter true peak, not sample peak. Any BS.1770 true-peak meter. The free automated analysis at tytonic.org reports the true peak of an uploaded bounce next to its loudness and crest factor.
- Set the limiter's ceiling by true peak, or set a sample ceiling 1 dB lower than the true-peak target if the limiter has no true-peak mode. The limited loop above needed its sample ceiling at about −1 dBFS to land near −0.4 dBTP.
- Do not fix it with normalisation after the fact. Turning the finished master down by 1 dB fixes the ceiling and leaves the limiting. It is the right emergency fix and the wrong workflow.
- Check the decoded file if it matters. Encode a copy to AAC at the service's bit rate, decode it, meter it. That is the test Tytonic ran above and anyone can run.
Tytonic's hand-mixing service delivers masters at or below −1 dBTP and reports the sample peak, true peak and loudness with the files.
What Tytonic measured
- Test tone: 1 s, 11025 Hz sine at 44.1 kHz, phase 0° and 45°. True peak by polyphase resampling at 4× and 16× (Kaiser window, β = 14) and taking the absolute maximum; the 16× value is reported unless stated.
- Drum loop: 10 s synthesised 100 BPM loop (kick, snare, ghost snares, hats), normalised to a sample peak of 0 dBFS, then gained and hard-clipped at ±1.0.
- Limiter: 8 dB of gain into a lookahead peak limiter (1.5 ms lookahead, 80 ms release), ceiling −0.1 dBFS sample peak; the "−1.00 dBFS" version is the same output attenuated 0.9 dB.
- Codecs: ffmpeg (build 2024-11-13) encoders libmp3lame, native aac, libvorbis and libopus at the stated settings, decoded back to 32-bit float by ffmpeg, channels averaged. Decoded sample peak is the largest absolute decoded sample in dBFS; decoded true peak uses the same 16× method.
- The 4× meter under-read figures (0.554 dB, 0.688 dB, 0.169 dB, 0.042 dB) are from the table in BS.1770-5, Annex 2.
FAQ
My limiter says −0.1 dB and my DAW shows no clipping. Is the master clipping? Possibly, between the samples and after the codec. In the measurement above a −0.1 dBFS sample peak became +0.54 dBTP and +0.91 dBFS after AAC encoding at 128 kbit/s. Only a true-peak meter, or a decoded-file check, can tell you.
Is −1 dBTP enough? It is the published ceiling from Spotify, AES and EBU. For loud masters Spotify says −2 dBTP, and Ogg Vorbis and Opus measured above still overshot slightly at a −1 dBFS sample ceiling. For very loud, heavily limited material, −2 dBTP is the safer figure.
Why do two true-peak meters disagree? Oversampling ratio. A 4× meter can read up to 0.69 dB low on the worst-case tone by the standard's own table; a 16× meter is within 0.04 dB. Filter design adds a little more variation.
Does a lossless service have the problem? The codec part goes away. The intersample part does not: the reconstruction overshoot exists in any PCM playback, and the meter under-read exists in any 4× meter. The −1 dBTP ceiling still applies, which is why EBU R 128 states it for linear audio in production.
Will the service turn my track down anyway? On a normalised service, yes, by its loudness and not by its peak. That gain is applied at playback, after decoding, so it does not undo clipping that happened in the encode or in a fixed-point decoder.
Sources
- ITU-R BS.1770-5 (11/2023), Algorithms to measure audio programme loudness and true-peak audio level, Annex 2 "Guidelines for accurate measurement of 'true-peak' level". International Telecommunication Union. https://www.itu.int/rec/R-REC-BS.1770
- EBU R 128-2023, Loudness normalisation and permitted maximum level of audio signals. European Broadcasting Union, Geneva, November 2023. https://tech.ebu.ch/docs/r/r128.pdf
- AES TD1008.1.21-9 (2021), Recommendations for Loudness of Internet Audio Streaming and On-Demand Distribution. Audio Engineering Society. https://aes.org/community/technical-council/technical-document-aestd1008/
- Spotify for Artists, "Loudness normalization on Spotify." https://support.spotify.com/artists/article/loudness-normalization/
- Apple, Apple Digital Masters technology brief (headroom recommendation of at least 1 dB against clipping). https://www.apple.com/apple-music/apple-digital-masters/docs/apple-digital-masters.pdf
- Measurements: Tytonic's analysis code and ffmpeg, run on 2026-10-15.