A master that peaks safely below full scale as a WAV can peak above it once a streaming service has encoded it. You can find out before you upload: encode the file yourself, decode it again and measure the result. The whole check takes three commands and a few minutes, and it tells you whether to lower the limiter ceiling and by how much.
This page is the procedure. The reasons peaks move, and a larger experiment on eight test signals, are in the reference guide on what AAC, Ogg Vorbis and Opus do to a master's peaks.
What you need
- Your master as a WAV file, at the sample rate and bit depth you intend to deliver.
- FFmpeg, a free command-line program for Windows, macOS and Linux. Most builds include an AAC encoder and the Opus encoder libopus.
- A terminal opened in the folder that holds the master.
The procedure
1. Measure the master
ffmpeg -nostats -i master.wav -af ebur128=peak=true -f null -
At the end of the output, under “Summary”, note the integrated loudness in LUFS and the true peak, which FFmpeg labels Peak and gives in dBFS. This is the reference.
2. Encode
ffmpeg -i master.wav -c:a aac -b:a 256k test-aac256.m4a
ffmpeg -i master.wav -c:a aac -b:a 128k test-aac128.m4a
ffmpeg -i master.wav -c:a libopus -b:a 128k test-opus128.opus
Three encodes cover a high and a low AAC bitrate and Opus. Measure all three: which of them moves the peaks most depends on the material, and it is not safe to assume in advance.
3. Decode to floating point
ffmpeg -i test-aac256.m4a -c:a pcm_f32le dec-aac256.wav
ffmpeg -i test-aac128.m4a -c:a pcm_f32le dec-aac128.wav
ffmpeg -i test-opus128.opus -c:a pcm_f32le dec-opus128.wav
The format matters. A decoder that writes 16-bit or 24-bit integers clips anything above full scale, and a clipped file measures as exactly 0 dBFS, which hides the problem you are looking for. 32-bit floating point keeps values above full scale as they are.
4. Measure each decoded file
ffmpeg -nostats -i dec-aac128.wav -af ebur128=peak=true -f null -
Repeat for the other two and note the Peak value of each.
5. Fill in the sheet
| File | True peak | Change from master | Above 0? |
|---|---|---|---|
| Master (WAV) | ___ dBTP | — | — |
| AAC 256 kbit/s, decoded | ___ dBTP | ___ dB | yes / no |
| AAC 128 kbit/s, decoded | ___ dBTP | ___ dB | yes / no |
| Opus 128 kbit/s, decoded | ___ dBTP | ___ dB | yes / no |
How to read the result
- Every decoded peak is below 0 dBTP: the master passes this test. No change is needed on account of encoding.
- A decoded peak is above 0 dBTP: a player that converts to fixed-point audio without lowering the level first will clip those peaks. Lower the limiter ceiling by the amount of the excess plus a margin of about half a decibel, export again and repeat the check. Do not simply subtract the excess: the experiment below shows that the rise is not the same at every level.
- The decoded peak rose but stayed below 0: nothing is wrong. Note the size of the rise; it tells you how much margin this particular master uses up.
- Compare loudness as a sanity check. In the test run below, integrated loudness after decoding differed from the source by 0.2 LU at most. A much larger difference on your file is worth a second look, for example for a dropped channel or a wrong input file.
A lower ceiling costs loudness only on services that do not normalize. Where playback is normalized, a master louder than the target is turned down anyway. To see what a given service would do with your figures, enter the loudness and true peak from step 1 in the loudness and headroom calculator.
Measured experiment
The procedure run on a synthetic test master at three ceilings
Run on: November 11, 2026, by script, for this guide.
Input: a 20-second synthetic test master built from a kick, a bass line, sawtooth chords, noise hi-hats and a lead tone at 120 BPM, driven into a soft clipper so that it is as dense as a loud master (crest factor 7.5 dB). It contains no recorded music. The same signal was scaled to true-peak ceilings of −0.1, −1.0 and −2.0 dBTP. 44.1 kHz, stereo with identical channels, 32-bit float.
Software and settings: FFmpeg 6.1.1; native AAC encoder (AAC-LC) at 256 and 128 kbit/s; libopus 1.4 at 128 kbit/s; default settings otherwise. Decoded to 32-bit float.
Measurement: true peak by 4× oversampling with a 257-tap windowed-sinc interpolator, ignoring the first and last 0.5 s. As a cross-check, FFmpeg's ebur128 filter was run on the same nine decoded files. It prints true peak to one decimal place, and its readings differed from the values below by 0.05 dB at most, which is within that rounding. This shows that two implementations of the same method agree on these files. It is not a statement of measurement accuracy.
| Source ceiling | Source loudness | AAC 256k | AAC 128k | Opus 128k |
|---|---|---|---|---|
| −0.10 | −6.5 LUFS | −0.12 (−0.02) | +0.53 (+0.63) | +0.45 (+0.55) |
| −1.00 | −7.4 LUFS | −0.75 (+0.25) | −0.46 (+0.54) | −0.59 (+0.41) |
| −2.00 | −8.4 LUFS | −1.87 (+0.13) | −1.57 (+0.43) | −1.45 (+0.55) |
Result: with the ceiling at −0.1 dBTP, the two 128 kbit/s files decoded above full scale: 22 samples of the AAC file and 233 samples of the Opus file exceeded it. With the ceiling at −1.0 or −2.0 dBTP, no decoded file reached 0 dBTP. Across the nine encodes the true peak changed by between −0.02 and +0.63 dB, and the change for one codec was not the same at each ceiling. The 256 kbit/s AAC file changed least at all three ceilings. Of the two 128 kbit/s files, AAC rose more at −0.1 and −1.0 dBTP and Opus rose more at −2.0 dBTP. Integrated loudness after decoding was within 0.2 LU of the source in every case.
Scope: one synthetic signal, these encoder versions and these settings. Nine encodes are too few to rank codecs or bitrates. A streaming service uses its own encoder, and real music has different peaks, so your figures will differ; that is the reason to run the check on your own file. Retained: the generating script and the raw results are kept by SUNO.click and are available on request through the contact page.
Practical notes
- Test the whole song, or at least its loudest section. The largest overshoot is not always where the meter was highest in the DAW.
- Use the delivery file. Check the exact WAV you will upload, after dither and sample-rate conversion, not an earlier bounce.
- Opus decodes at 48 kHz. The decoded file will have a different sample rate from a 44.1 kHz master. That is expected and does not affect the reading.
- The test encoder is not the service's encoder. Treat a pass with little margin as a narrow pass. Spotify's published advice, to keep masters below −1 dBTP and louder masters below −2 dBTP, exists for this reason.
- Do not judge sound quality from this test. It measures peaks. Whether an encode sounds acceptable is a listening question.
If you prefer not to use a terminal
The same check can be done in a DAW: export the master as AAC or Opus if the DAW offers those formats, import the encoded file into a new project that runs in 32-bit float, and read a true-peak meter on it. Two cautions apply. Make sure the import path does not convert to integer audio on the way in, and note which encoder the DAW uses, since it may differ from both FFmpeg's and the service's.
Primary technical references
- ITU-R, Recommendation BS.1770: Algorithms to measure audio programme loudness and true-peak audio level. Defines the loudness and true-peak measurements used here.
- FFmpeg, Codecs documentation and Filters documentation. The encoders and the
ebur128filter in the commands above. - J.-M. Valin, K. Vos and T. Terriberry, RFC 6716: Definition of the Opus Audio Codec, Internet Engineering Task Force, 2012. Opus operates internally at 48 kHz.
- Spotify for Artists, Loudness normalization. Source of the −1 and −2 dBTP advice (checked November 10, 2026).