this post was submitted on 02 Mar 2026
49 points (98.0% liked)

Linux

63406 readers
869 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

As someone who downloads or buys their music to listen to via VLC, it's quite annoying when the volume level between files aren't consistent. Especially when I'm unable to easily to change the volume like when I'm doing physical labor as an example. So it can go from a perfectly reasonable volume, to damaging my ears, and then to where I can barely hear. I was thinking of going in and manually editing them myself to be consistent amongst each other at some point, but then it got me thinking. Is there an application that will equalize the volume on your audio files for you? If not, would anyone else have a use for one besides me? I'd love to know either way.

top 24 comments
sorted by: hot top controversial new old
[–] lost_faith@lemmy.ca 1 points 4 minutes ago

If playing through VLC, why not use the built in normalizer? Or you can go the more painful route of re-encoding each file to a normalized audio, something I haven't done since 2k, for use on other devices

I know you are looking into editing the files, but you can probably also do this with live filters with something like easyeffects.

[–] hades@feddit.uk 6 points 4 hours ago

Go to Preferences -> Audio -> Replay Gain mode and set it to "Album" (if you're listening to whole albums) or "Track" (if you're mixing it up). This will let VLC read the ReplayGain[1] tags in your files and adjust playback volume accordingly. Chances are high that a lot of your collection already has these tags, and you won't have to do anything else. If some of your files don't have these tags, just run a tool (https://github.com/complexlogic/rsgain for example) to generate them.

[–] Quibblekrust@thelemmy.club 13 points 8 hours ago* (last edited 8 hours ago)

I use QMP3Gain. It actually changes the bits in the file so the files work with every app and player without needing to rely on tags. However, It also adds tags to the file which let you undo the changes later, if needed (it's lossless).

It has two modes. You can modify all the files in an album equally so that they play at the same relative volume. I guess the loudest song is set to your target volume and then the rest are adjusted relative to that. It's great because it doesn't ruin the flow of albums whose tracks connect seamlessly. Or you can modify tracks irrespective of other tracks, which is good for random singles you own.

The result is, songs in your entire library all sound more or less the same volume. The exception being that quiet tracks from certain albums will still be quiet.

You can drag every full album you own into the UI, and do them all at once in album mode. It works based on tags. Then do the same with all singles you own in track mode.

It defaults to 89.0 dB, but I prefer to use 95 dB because some devices just don't have enough volume. A tiny bit of clipping is imperceptible because decoders account for it. Many of your current MP3s already have clipping, and I'm sure you haven't noticed. So don't worry if you see red "Y"s in the clipping column.

It uses the ReplayGain algorithm. Once in a while there's a track that it just doesn't get right. A certain single will just come out too loud or quiet and needs a different dB value than everything else. Out of the thousands of MP3s I have maybe five files have been like this.

[–] dr_jekell@lemmy.world 14 points 9 hours ago (1 children)

You will want to use something like Foobar2000 to scan the files then write replaygain metadata to each file.

Then you enable replaygain in VLC and it should work as you want.

[–] Scipitie@lemmy.dbzer0.com 3 points 6 hours ago (1 children)

I might have a mistake in my thoughts/knowledge:

This would be a playback tool dependent solution though, right? Because then it works be not something at least I'd want.

Am I overlooking something? (Except the obvious "keep the original" aspect)

[–] dr_jekell@lemmy.world 6 points 4 hours ago (1 children)

Replaygain doesn't change the file itself.

It is a measurement of the files audio volume against a set level. Then the file gets a tag (metadata) for the volume adjustment.

To put it simply: ReplayGain turns up the volume an appropriate amount when playing a relatively quieter song/album and turns down the volume an appropriate amount when playing a relatively louder song/album.

Pretty much any music player should support replaygain including VLC.

https://www.reddit.com/r/headphones/comments/962a0c/replaygain_the_solution_to_constantly_changing/

[–] Scipitie@lemmy.dbzer0.com 2 points 3 hours ago (1 children)

Ah but this means if I can't control the client (i.e. because I've setup a streaming server) then it's not a solution for me - but I'd I do then this is the cleaner one because it doesn't reencode the files.

Understood, thank you!

[–] dr_jekell@lemmy.world 2 points 3 hours ago

I can't say that I haven't thought about audio volume correction for streaming audio.

There must be a way of doing it as Spotify and other services have a version of replay gain.

[–] RotatingParts@lemmy.ml 18 points 10 hours ago

ffmpeg can do it. I haven't used it in a while, but here is a good start How can I normalize audio using ffmpeg?

[–] tordenflesk@lemmy.world 9 points 10 hours ago (1 children)
[–] cmnybo@discuss.tchncs.de 3 points 9 hours ago (1 children)

That's the best way. It just adds a ReplayGain tag to the files instead of reencoding them at a different volume.

[–] Quibblekrust@thelemmy.club 3 points 8 hours ago

That's funny, I prefer the opposite (actually changing bits) because then it works with every player and device.

[–] brickfrog@lemmy.dbzer0.com 5 points 9 hours ago* (last edited 9 hours ago)

Look into audio normalisation.. for playback purposes scanning/applying Replay Gain on the files should help a bit. Most audio playback software has support for that.

There is also EBU R 128, a slightly different type of loudness normalisation, it uses a different algorithm vs traditional Replay Gain. For my own usage I found it works better keeping the loudness at the same level when playing through a bunch of different audio tracks. No idea about VLC but the Strawberry application does support it so it could be worth a look if you want to try other audio playback software.

[–] UnspecificGravity@piefed.social 4 points 9 hours ago* (last edited 9 hours ago)

Replaygain 2.0 plugin for Musicbrainz Picard. Fix volume while getting your tags in order.

This doesn't re-encode the files but tags them with information that tells your player how to adjust playback.

[–] FilthyHands@sh.itjust.works 4 points 9 hours ago* (last edited 9 hours ago) (1 children)

in vlc, right click>tools>effects and filters>compressor. adjust threshold to your liking, you don't really need to mess with the other sliders.

edit: you can also go to preferences>audio>normalize volume to: (set what you like)

[–] Yoddel_Hickory@piefed.ca 7 points 9 hours ago (1 children)

Compressor is bad, normalise is good

[–] FilthyHands@sh.itjust.works 1 points 9 hours ago (1 children)

yep, it took me a second to find the real setting but compressor can work in a pinch.

[–] Cyber@feddit.uk 1 points 5 hours ago

And under Settings->Extra Settings->Audio on Android version of VLC

[–] 69420@lemmy.world 4 points 10 hours ago (1 children)

If you need a GUI, Audacity is a popular audio editor that has many features, one of which is normalizing levels. If you need to automate via CLI, ffmpeg is probably the tool for the job, as others have mentioned.

[–] pirate2377@lemmy.zip 1 points 8 hours ago

There's also Tenacity, which is a fork of Audacity after it was bought by some company iirc. I was actually considering to use it to manually adjust the audio of each file. I didn't know it had a normalize feature already though, guess it can just do the work for me then

[–] solrize@lemmy.ml 1 points 10 hours ago
[–] Noodles4dinner@hexbear.net 1 points 10 hours ago

i looked into this awhile back.. i think it was either vlc itself or maybe audacity