I wrote a loudness meter that runs in the browser and measures a video file's integrated loudness, true peak and loudness range. This post walks through what the measurement actually does, then through one worked example that shows why turning a quiet file up with plain gain can break a true-peak ceiling.
Disclosure: the tool is mine. It is free, open source under the MIT licence, and the file is never uploaded. Loudness Check · source on GitHub
Integrated loudness in four steps
The method is ITU-R BS.1770-4.
- Each channel goes through the two K-weighting filters defined in the standard, so the signal is weighted towards how the ear hears it.
- The weighted signal is squared and averaged in 400 ms blocks that overlap by 75 percent.
- Blocks quieter than -70 LUFS are dropped (the absolute gate).
- The average of what is left sets a second gate 10 LU below it. Blocks under that gate are dropped too, and the average of the remainder is the integrated loudness.
Because of the two gates, a long silence at the start or end of a file does not drag the number down. Loudness range follows EBU Tech 3342.
True peak is a different measurement
A sample peak only looks at the stored samples. The true peak estimates the level of the sound between samples by oversampling four times. That matters because converting to MP3 or AAC can push a peak above 0 and cause distortion, even when no stored sample was over.
A worked gain example
Say the meter reads -18.4 LUFS integrated and -3.0 dBTP true peak, and you are aiming for -14 LUFS with a -1 dBTP ceiling.
- The gap is -14 - (-18.4) = +4.4 dB of gain.
- Add that to the peak: -3.0 + 4.4 = +1.4 dBTP. That is 2.4 dB over the ceiling, so a plain gain change would clip.
- The level has to come up and the peaks have to be held back, which is a limiter's job. ffmpeg's
loudnormfilter does that:
ffmpeg -i input.mp4 -c:v copy -af "loudnorm=I=-14:TP=-1:LRA=11" -ar 48000 output.mp4 The video stream is copied untouched. A single loudnorm pass is an approximation. For a precise result, use the two-pass form, or adjust in your editor and measure again.
Rule of thumb that falls out of this: plain gain is only safe when peak + gain stays under the ceiling. If it does not, use a limiter and re-measure.
Reference levels (widely quoted, not official)
- YouTube, Spotify, Amazon Music: about -14 LUFS
- Apple Music: -16 LUFS
- EBU R128 broadcast: -23 LUFS with a -1 dBTP limit
- ATSC A/85 broadcast: -24 LKFS with a -2 dBTP limit
I took the streaming figures from secondary sources on 26 November 2026 and platforms change them. Instagram, Facebook and TikTok do not publish a figure I could verify, so the tool does not guess one.
What I have and have not checked
- On four generated test signals it matched ffmpeg's
ebur128meter within 0.1 LU for integrated loudness and 0.35 dB for true peak. - I have not compared it with every hardware or plugin meter.
- Only mono and stereo were tested.
- The whole file is decoded into memory, so very long files can be slow.
The longer plain-English version, with a short FAQ, is on my site. I am a freelance video editor and motion designer in Rajkot, India, and I built the tool for my own delivery checks.
