This is the problem that was designed to solve. But when ReplayGain metadata is missing, incorrect, or incompatible with your player, you face the dreaded "FLAC gain inconsistency." The search for a "FLAC gain fix" is one of the most common technical deep-dives for audiophiles and music server owners.
The standard target is -18 LUFS (or 89 dB SPL). Most modern software defaults to this.
Maintaining bit-perfect files while achieving consistent playback volume. Step-by-step (foobar2000): Drag your FLAC files into foobar2000. Select all files, right-click, and choose ReplayGain Scan as a single album (or by track). Review the calculated gain and click Update File Tags Ensure your player's settings have "ReplayGain" enabled. Method 2: Peak Normalization (Permanent Change) flac gain fix
Here are the best ways to tag your FLAC files and solve the loudness war once and for all.
Method 3: MediaHuman Audio Converter (Mac & Windows) — Simple GUI This is the problem that was designed to solve
FLAC (Free Lossless Audio Codec) is the gold standard for audiophiles because it preserves audio data exactly as it appears on the source media. However, this preservation comes with a side effect:
For a full library on a Linux-based system, you can use a powerful find command to process hundreds of files efficiently. This script finds all FLAC files, uses the -add-replay-gain command to process them, and leverages your computer's multi-core processor to do so in parallel: Most modern software defaults to this
Ensure that ReplayGain is explicitly enabled in your media player's settings menu. In VLC, go to Preferences > Audio > and look for the "ReplayGain mode" dropdown. Set it to "Track" or "Album." The audio sounds distorted or crackly after fixing.
This process permanently alters the actual audio samples to reach a target loudness.
Wait for the analysis to complete. A results window will appear showing the suggested volume tweaks.
Depending on your operating system and preferred software, here is how you can quickly batch-fix your library: 1. Foobar2000 (Windows)