Tool

When a Video Is Too Quiet: Measure LUFS and Build volume and loudnorm Commands

To boost a quiet video, you need to know how much to raise it and whether raising it will distort the sound. Pick a file and this browser reads the audio, measures integrated loudness (LUFS) and true peak, judges whether volume=dB is enough or loudnorm is needed, and builds an ffmpeg command that copies the video unchanged (-c:v copy). The file is read only inside this browser.

The target loudness values are just options, not the “right answer.” Platform policies change, so check the current guidelines of wherever you upload. The true peak limit is headroom for the peak change after lossy encoding.

How does it measure and decide?

  1. Decoding: The browser's Web Audio unpacks the audio to PCM and reads it at 48kHz. Only the first audio track is read, and codecs the browser cannot open (AC3, DTS, etc.) cannot be read.
  2. Loudness calculation: This follows ITU-R BS.1770. The signal goes through a K-weighting filter that imitates the sensitivity of the ear and is split into 400ms blocks (moving in 100ms steps), and the energy is averaged. Blocks quieter than -70 LUFS and blocks more than 10 LU quieter than that average are dropped, and the average of what remains is the integrated loudness. The concept is covered in the LUFS and loudnorm lesson.
  3. Loudness range (LRA): The loudness of 3-second sections is collected, a -20 LU relative gate is applied, and the result is the difference between the 10th and 95th percentiles. loudnorm's linear (two-pass) mode needs the target LRA to be at least the input LRA, so the LRA in the command is at least 7 and the measured value rounded up.
  4. True peak: Peaks that occur between samples are estimated with 4x oversampling (8-tap windowed-sinc interpolation). For speed, sections far below the peak found so far skip the interpolation. This is an approximation, not the same filter as a formal meter.
  5. Verdict: Gain needed = target loudness − integrated loudness. If the expected true peak after the gain (true peak + gain) is at or below the limit, the tool says volume; if it is over, it says loudnorm is needed. If the gain differs by less than 0.5 dB, it is left as ‘no need to touch it.’ This threshold is a rule set by this site.

Should I use volume or loudnorm?

  • volume=dB: Applies the same gain to every sound. The difference between loud and quiet parts (dynamics) is preserved. In exchange, if a peak goes over 0 dBFS, that part is cut off and distorted (clipping). That is why this tool recommends volume when the expected true peak is within the limit.
  • loudnorm two-pass (linear): It first measures the whole file, then applies a fixed gain using that measurement. The gain is constant, like volume, but it hits the target loudness for you. However, it is known to fall back to dynamic mode if the peak after correction exceeds the limit or the LRA condition is not met (Chapter 12 of the course).
  • loudnorm one-pass (dynamic): It finishes in one go with no measurement, but the gain changes from section to section, so the sound can seem to rise and fall. That is why we suggest measuring first and checking whether volume solves it.
  • Both re-encode the audio (because they use filters). The video is left untouched with -c:v copy, so the picture quality does not change and it takes little time. For choosing the audio codec and bitrate, see the audio bitrate picker.

Steps for using the commands

  1. Pick a file and set the target loudness and true peak limit. Check the current guidelines of where you will upload (YouTube, broadcast, internal sharing) first.
  2. If the verdict is ‘volume is enough,’ use command ① as is. If your file name is different, change the name in the command.
  3. If the verdict is ‘true peak exceeds the limit,’ either lower the target to a reachable value and use volume, or raise the level with loudnorm by squashing the peaks. Squashing the peaks can change the character of loud sounds, so listen to the result.
  4. For accuracy, run the ‘measure with ffmpeg’ command and put the JSON values it prints into command ②. You can also check there whether this browser's estimate matches ffmpeg's values.
  5. Measure the file you made again with the ‘check the output file’ command to see whether the integrated loudness and true peak match the target. With lossy codecs such as AAC and Opus, the peak can change slightly after encoding.

If you get a No such filter: loudnorm error, the ffmpeg build you are using does not have that filter. Check whether loudnorm appears in the output of ffmpeg -filters. For other errors, paste them into the ffmpeg error log explainer.

Limitations worth knowing

  • The error against ffmpeg's values was not verified. This measurement is this site's own implementation of BS.1770, and there is no measurement comparing it with values from ffmpeg's ebur128 and loudnorm on the same file. We do not know how large the error is. That is why the measured_ values in ② are labeled ‘estimates’ and a command to measure with ffmpeg yourself is attached.
  • There is not yet a table that applies volume, loudnorm one-pass and two-pass to the same clip and compares the resulting LUFS and peaks. This page does not say in numbers which method is more accurate by how many dB.
  • Audio is read at 48kHz. If the source has a different sample rate, the browser converts it, so the values may change very slightly. Six-channel audio is read as L R C LFE Ls Rs with the LFE left out. For any other channel count, all channels are summed with the same weight.
  • For a video with several audio tracks, only the first track is measured. The commands also follow ffmpeg's default selection (one video, one audio), so other tracks and subtitles may not end up in the result. To keep everything, write -map yourself.
  • Files larger than 500MB are not read. A long video uses a lot of memory, so one option is to extract just the audio (audio extraction tool) and measure that.
  • Matching loudness does not make the sound cleaner. If a recording is noisy, raising the level raises the noise too.
  • The file is not sent to a server, and this tool does not modify or save the file. It only builds the commands; you have to run the encoding yourself.