How to check your master for clipping after AAC encoding
Last updated 3 min readTags:ReleaseDelivery
Make an AAC copy of your final WAV, compare the two and check true peak before you upload, so your master does not clip after streaming conversion.
A WAV can sound clean and still distort when a streaming service converts it to AAC. The conversion can make some peaks higher. Before you upload, make an AAC copy of your final WAV and compare the two.
1. Check the true peak of your WAV
A sample-peak meter reads the points stored in the file. A true-peak meter also estimates how high the waveform gets between those points. It reports the result in dBTP. A reading of −1 dBTP means the highest peak is 1 dB below full scale.
Spotify recommends keeping the WAV below −1 dBTP, or below −2 dBTP if the track is louder than −14 LUFS integrated. Integrated LUFS is the loudness measured across the whole track. Use that reading to choose a ceiling for the master you already have. Spotify’s mastering guidance
If you use a limiter, turn on true-peak mode and set its ceiling to leave that room. Measure the exported WAV too, since export settings such as normalisation can change the peak level.
2. Make an AAC test copy
Use the exact WAV you plan to upload. If your mastering plug-in has an AAC preview, you can use it to compare how the two versions sound. On a Mac, Apple’s Digital Masters tools can make a test copy with Apple’s AAC encoder.
For a free command-line option, open a terminal in the folder with your WAV. With FFmpeg installed, replace master.wav with your filename and run:
ffmpeg -i "master.wav" -c:a aac -b:a 256k "master_aac.m4a"
This tests one AAC encoder at 256 kbps. Other formats, encoders and bitrates can give different results.
3. Measure both files and listen
Use a true-peak meter on both files. With FFmpeg, run these commands and look for True peak near the end of each summary. The Peak value in that section is the true-peak reading even though FFmpeg may label it dBFS.
ffmpeg -i "master.wav" -af ebur128=peak=true -f null -
ffmpeg -i "master_aac.m4a" -af ebur128=peak=true -f null -
If the WAV reads −1.3 dBTP and the AAC copy reads −0.4 dBTP, the peaks have risen but still have room below full scale. If the AAC copy reads +0.2 dBTP, it can clip during playback. If the reading is right around 0 dBTP, give it a little more room and test again.
Play the same loud chorus or drop in both versions at about the same volume. Listen for new crackle on kick or snare hits, or a rough sound on loud vocals. Cymbals that turn swishy can also be a side effect of AAC, even when the peaks stay below 0 dBTP. How lossy codecs affect your master
If the AAC copy clips
Turn the finished master down by about 0.5 dB, export a fresh WAV and repeat the AAC test. If you hear the same crackle in the WAV, check for clipping earlier in the project or try turning down the gain going into the limiter.
When the WAV meets your delivery guidance and the AAC copy stays below full scale and sounds clean, upload the WAV to your distributor.
Where Sonalix fits
The Sonalix export check compares the highest true peak of the file you submit with −1 dBTP. To see how AAC changes the peaks, measure your test copy as well. How Sonalix reports true peak
Related: how loud to master for streaming and export settings for distributors.