
A viewer sets a comfortable volume during the first lesson, then reaches for the controls when the next one starts. If both lessons already have a finished mix, you can use FFmpeg to bring their overall loudness closer together. Measure each export, make a delivery copy using that file’s measurements, and check the encoded file the viewer will actually hear.
In our example, two short mono narration clips started 10.28 loudness units apart. After processing, their MP3 delivery copies measured 0.01 LU apart. That tells the editor where to start listening. A loud intro, a quiet first sentence, or a jump between speakers can still make the handoff uncomfortable.
Integrated loudness, measured in LUFS, describes loudness across the program. True peak, measured in dBTP, estimates the highest reconstructed signal level. Two lessons can share a peak value and still sound quite different in overall level. For this worked example, our editorial target for the mono delivery files is −19 LUFS integrated with a true-peak ceiling of −1.5 dBTP. Use the targets and tolerances specified by whoever accepts your files.
Keep the original mix and work from a named revision. The commands below assume FFmpeg is installed and the first audio stream is the intended mono narration. If an export contains multiple languages or a commentary track, identify the intended stream first. Keep the channel layout consistent between measurement and delivery. For a video lesson, these commands produce a separate audio file. Replacing the track in a finished video requires its own sync and playback review.
Here the quieter input is lesson-b.wav. Run each command as a single line. The first pass reads the whole track and prints a JSON summary at the end of the FFmpeg log.
ffmpeg -hide_banner -nostats -i lesson-b.wav -map 0:a:0 -af "loudnorm=I=-19:TP=-1.5:LRA=7:print_format=json" -f null -
Our first pass returned input_i=-33.36 LUFS and input_tp=-16.21 dBTP. It also returned input_lra=0.80, input_thresh=-43.85, and target_offset=-0.22. Keep all five values with that source revision. If the recording is silent or a measurement is nonfinite, hold it for review before rendering.
Use the first pass’s input measurements in the matching measured_ fields and its target_offset as offset. These numbers belong to lesson B. Measure lesson A separately before producing its delivery copy.
ffmpeg -hide_banner -nostats -n -i lesson-b.wav -map 0:a:0 -af "loudnorm=I=-19:TP=-1.5:LRA=7:measured_I=-33.36:measured_TP=-16.21:measured_LRA=0.80:measured_thresh=-43.85:offset=-0.22:linear=true:print_format=json" -ar 48000 -c:a libmp3lame -b:a 96k lesson-b-delivery.mp3
This creates a 48 kHz, 96 kb/s MP3 under a new name. The -n flag protects an existing file. The filter requests linear gain, which applies the same gain across the track. FFmpeg can fall back to dynamic processing if linear gain would exceed the true-peak ceiling or the requested loudness range is smaller than the source range. Check normalization_type in the render log. Both renders here reported linear. The FFmpeg loudnorm reference describes the settings and fallback conditions.
Run the analysis again, this time on the encoded MP3. Read input_i and input_tp from this check: the input is now the delivery file. The first pass’s predicted output values describe a different stage.
ffmpeg -hide_banner -nostats -i lesson-b-delivery.mp3 -map 0:a:0 -af "loudnorm=I=-19:TP=-1.5:LRA=7:print_format=json" -f null -
Both files finished within half a loudness unit of the example target and below the chosen peak ceiling. For your release decision, play the last sentence of A and the first sentence of B at one fixed playback volume. Listen for a jump in voice level, strained peaks, and background noise that becomes distracting after gain is applied. If a single speaker or music cue is the problem, return to that part of the mix. Keep the listening note with the measured values and source revision. For video delivery, follow the transcoding guide’s playback and synchronization checks on the final export.
A producer with a few files can run these passes locally. A CPU VM becomes useful when deliveries arrive unattended, several editors share the same inputs, or a batch needs to finish before a handoff. Count total audio minutes and allow for the measurement, render and final verification passes. Keep originals, temporary files and delivery copies in separate locations, and record failures so a stale file cannot stand in for a new revision. Time a representative delivery before using the CPU buying guide to choose capacity.
What we checked. We ran FFmpeg 7.1 locally on Windows with two short mono synthetic speech clips and measured both encoded MP3s. The listening check above is for the editor to perform. This example supplies no listening-panel result, stereo or multitrack test, cloud deployment, or batch throughput measurement.
Pick one AI, compute, or storage workload and see the difference for yourself. Spin it up in minutes, or let our team map your fastest path to production.