MP4 Audio Too Quiet? Measure and Normalize It with FFmpeg

Use two-pass loudnorm on a selected stereo MP4 audio track, copy the video, and remeasure the encoded result. Includes a tested example and its limits.

If an MP4 recording is consistently too quiet, FFmpeg can measure the selected audio track, normalize its loudness and save a new copy. The audio is re-encoded; the video can be copied without re-encoding. A player’s volume slider changes playback, so check that and the selected audio track before processing the file.

This guide uses a stereo track in footage you own or have permission to process. Keep the original archive copy. The export below keeps only one video and one audio stream: other audio tracks, separate subtitles and data streams are omitted. If you need them, first plan which tracks to retain.

Identify the recording you actually want to change

Confirm that ffmpeg -version and ffprobe -version run. Inspect the input:

ffprobe -v error -show_entries stream=index,codec_type,codec_name,channels,channel_layout,sample_rate:stream_tags=language,title:stream_disposition=attached_pic -of json "input.mp4"

The examples use 0:a:0, the first audio stream, and 0:v:0, the first video stream. These are positions within each type, not necessarily the absolute index shown by ffprobe. Check that the video is the moving picture, not attached cover art, and listen to the chosen track. A commentary track or the wrong language will still be wrong after normalization.

For a different audio position, change the map in both passes. This example does not cover surround downmixing or mono playback assumptions. If speech is quiet only against loud music, increasing the whole mix also affects that music; this is not dialogue separation.

First pass: measure the selected track

Here, −16 LUFS integrated loudness, −1.5 dBTP maximum true peak and LRA 11 are demonstration targets, not a universal MP4 or platform specification. Use the receiving service’s actual requirements when applicable, keeping the same targets in both passes.

ffmpeg -hide_banner -i "input.mp4" -map 0:a:0 -af "loudnorm=I=-16:TP=-1.5:LRA=11:print_format=json" -f null -

Read the JSON printed near the end of the terminal output. This pass discards its processed audio; it does not save a normalized MP4. Copy these five values:

First-pass JSON field Second-pass option
input_i measured_I
input_tp measured_TP
input_lra measured_LRA
input_thresh measured_thresh
target_offset offset

If a required value is -inf, inf or otherwise invalid, stop. Check the selected track for silence or a failed measurement instead of inventing a replacement number. Our silent test file produced input_i=-inf and target_offset=inf.

Second pass: write a separate MP4

The five measured numbers below belong to our synthetic tone sample. Replace all five with your own first-pass results before running this command. Do not reuse them for another file, audio track or target.

ffmpeg -hide_banner -n -i "input.mp4" -map 0:v:0 -map 0:a:0 -c:v copy -af "loudnorm=I=-16:TP=-1.5:LRA=11:measured_I=-43.75:measured_TP=-42.11:measured_LRA=0.00:measured_thresh=-53.75:offset=-0.04:linear=true:print_format=json" -c:a aac -b:a 192k -ar 48000 "normalized.mp4"

-n refuses an existing output filename. -c:v copy preserves the selected compressed video stream, while AAC at 192 kbit/s and 48 kHz is this example’s audio output choice. It is not a complete track-preserving archive export. You cannot combine loudness filtering with -c:a copy; see audio extraction without re-encoding if you only need a separate unchanged audio track.

Check normalization_type in the second-pass report. linear=true is a request, not proof of linear processing. The loudnorm documentation describes its conditions and dynamic fallback. Our installed build reported dynamic for this sample. The explicit -ar 48000 also avoids leaving the output sample rate to the filter’s dynamic-mode upsampling.

Measure the actual encoded file, then listen

Run the measurement against the finished file:

ffmpeg -hide_banner -i "normalized.mp4" -map 0:a:0 -af "loudnorm=I=-16:TP=-1.5:LRA=11:print_format=json" -f null -

Read input_i and input_tp this time: the input to this run is your finished AAC file. Its output_* fields describe another normalization pass, not the loudness already stored in the file. Compare the encoded result with your intended loudness and peak limit; do not assume the encoder delivered an exact target.

Check the resulting streams as well:

ffprobe -v error -show_entries stream=index,codec_type,codec_name,sample_rate,channels -of json "normalized.mp4"

Expect the selected video and one stereo AAC track at 48 kHz for this example. Listen to a quiet passage, a loud event, and the beginning and end on the intended player. Start at a modest playback volume. Check for distortion, pumping, unwanted noise and missing dialogue. Loudness normalization does not recover clipped or missing sound, remove background noise, or prove acceptable playback on a particular device.

If the problem is sound arriving early or late, use the audio/video synchronization guide; increasing loudness does not correct timing.

What the synthetic check established

Our 12-second generated MP4 contained H.264 video and two stereo AAC tone tracks. With FFmpeg N-100410-gcd821c18dc, a 2020 build, selecting the first audio track produced:

Check Observed result
Source integrated loudness −43.75 LUFS
Encoded output integrated loudness −16.05 LUFS
Encoded output true peak −14.41 dBTP
Second-pass mode Dynamic
Selected video packet payloads All 300 matched in order
Output streams One H.264 video; one stereo AAC track at 48 kHz
Original file and overwrite protection Source SHA-256 unchanged; existing output rejected and unchanged
Full output decode Completed without a reported error

These measurements establish behavior for the generated files and commands. They do not establish voice quality, camera-file compatibility or hardware performance. Matching video packet payloads does not mean the whole MP4 is byte-identical.

For the underlying mechanisms, see FFmpeg streamcopy and filtering and ffprobe stream inspection and packet hashing. Keep the original and the verified sharing copy separately.