Skip to content

True peak bites after encoding

A master can read -0.1 dBFS and still clip on a phone. Why the wave between samples and the lossy encode both peak higher, and which ceiling to set.

Updated · 6 min read Lesson 40 of 44 in Mixing & Mastering

In short

  1. A sample-peak meter reads the samples, but the speaker plays the continuous wave between them, which can crest higher.
  2. Lossy encoding changes the waveform again, so the decoded file can peak above a master that looked clean.
  3. Set the final limiter in true-peak mode at -1 dBTP, or -2 dBTP for Spotify masters louder than -14 LUFS, and meter an encoded copy.
In this lesson (8)

Clean in the session, crackling on the phone

You bounce a master and the peak meter reads -0.1 . It sounds clean on your monitors. Weeks later, on a phone, the hi-hats fizz and the loudest snare hits carry a faint crackle. Nothing in your session changed.

Between your bounce and that phone, the file was turned back into a continuous wave and passed through a lossy codec. Both steps can create peaks your meter never showed you.

Why it matters

The meter reads samples, the speaker plays a wave

An ordinary peak meter reports the largest sample value. A digital file is a list of samples, but what reaches the speaker is the continuous wave those samples describe, rebuilt by the reconstruction filter in a converter. That wave can crest between two samples, higher than either of them. These are .

How far off a sample meter is depends on where the samples happen to fall. ITU-R BS.1770 gives the textbook case: a tone at a quarter of the , sampled 45 degrees away from its crests, reads 3 dB low. For short with a lot of high-frequency content, the standard says the under-read can commonly be several decibels.

Figure 1. The same tone at a quarter of the sample rate, sampled twice. When the samples land on the crests, the highest sample is the true peak. Shift the timing by 45 degrees and every sample sits at 0.707 of the crest, so a sample-peak meter reads 3 dB low.

A dense, heavily limited master is the worst case. Many samples sit right at the ceiling, so the rebuilt wave gets many chances to rise above it. Anything above full scale clips in whatever stage has to hold the signal within a fixed range: a digital-to-analog converter, a sample rate converter, or a decoder that writes fixed-point audio. EBU Tech 3343 lists exactly those places.

The science

True peak and what encoding adds

A meter estimates the continuous wave by . BS.1770 describes the reference method: raise a 48 kHz signal four times, to 192 kHz, with an interpolating , then take the largest absolute value. The result is reported in dBTP. Even this meter can miss a little, and the standard gives the worst case:

Δmax⁡=20log⁡10(cos⁡πfnormn)\Delta_{\max} = 20 \log_{10}\left( \cos \frac{\pi f_{\text{norm}}}{n} \right)

Here nn is the oversampling ratio and fnormf_{\text{norm}} the highest frequency as a fraction of the sample rate. With n=4n = 4 and fnorm=0.5f_{\text{norm}} = 0.5, that is about -0.69 dB. EBU R 128 therefore sets the production ceiling at -1 dBTP rather than 0: its guidelines explain that 1 dB of covers the possible under-read of a 4x meter.

Lossy encoding adds a second problem. An MP3, AAC or Ogg Vorbis encoder does not store your waveform. It stores an approximation that should sound the same, and the decoded wave is a different wave, which can peak higher than the original. EBU Tech 3343 names lossy coding as a cause of peaks above the sample level, and Apple's mastering guide warns that "levels that don't show overs on PCM can still cause when encoded" (Apple, 2021).

That is why ceilings for encoded delivery are lower. The EBU recommends -2 dBTP for the broadcast codecs MPEG-1 Layer 2 and Dolby AC-3. Spotify recommends below -1 dBTP in general and below -2 dBTP for masters louder than -14 , because louder tracks are more likely to distort when they are transcoded.

Figure 2. True-peak ceilings from the documents that set them. EBU R 128 allows -1 dBTP for PCM in production and its guidelines suggest -2 dBTP for some codecs. Spotify asks for -1 dBTP, and -2 dBTP once a master is louder than -14 LUFS.

Try it

Meter the encoded file

0 of 6 steps done

On a loud master the encoded file often reads higher than the WAV, and on a dense chorus it can pass 0 dBTP when the WAV did not. With the lower true-peak ceiling, the encoded copy should stay below 0. On a Mac, Apple's AURoundTripAAC plugin compares your audio with its AAC encode and flags clipping in real time.

Common mistake

Trusting the sample meter

Setting the to 0 or -0.1 dB in sample-peak mode leaves no room for reconstruction or the codec. Your DAW still looks clean, because the overs appear later, in a converter or decoder you do not control.

The second mistake is expecting a lower ceiling to rescue an over-limited master. -1 dBTP gives the codec room. It does not restore the flattened transients. Spotify asks louder masters for the extra decibel because they are more prone to distortion when they are encoded.

Takeaway

Set the ceiling in true peak

Turn on true-peak detection in your final limiter and set the ceiling to -1 dBTP, or -2 dBTP for masters louder than -14 LUFS going to Spotify. Then check an encoded copy as well as the WAV, because the encoded file is the one your listener hears. The rest of the delivery chain is covered in the lesson on delivery specs.

3 questions

Check yourself

  1. Why can a file whose highest sample is -0.1 dBFS still clip on playback?
  2. A tone at a quarter of the sample rate is sampled 45 degrees off its crests. How far does a sample-peak meter under-read?
  3. Your master measures -9 LUFS and goes to Spotify. Which true-peak ceiling does Spotify recommend?

Sources

Show all 5

Next lesson · 41 of 44

Mastering should translate the songMastering works on the whole stereo file, so it cannot move one instrument. What it can do is make the song hold together on every system it meets.

Previous: Clipping can work. It can also cost you

Portrait of Virzy Guns

Written by Virzy Guns

Songwriter and producer, founder of Virzy Guns Production. Now building HealingWave.