Jump to content

apply gain to "normalize"


Brit

Recommended Posts

I have seen a few threads on this subject, but I am still confused.

I have "apply gain" selected in the Replay Gain setting. Yet many of my new songs in a playlist will come in at quite dramatic volume differences - which of course can be quite annoying if away from the volume dial.

I tired Mp3gain which is time consuming when working on different files (and I have thousands)... and it doesn't work on m4a (AAC) files. Audacity reprocesses the files with audio match and is time consuming as well. Any ideas? 

Link to comment
Share on other sites

23 minutes ago, Brit said:

I have "apply gain" selected in the Replay Gain setting. Yet many of my new songs in a playlist will come in at quite dramatic volume differences - which of course can be quite annoying if away from the volume dial.

I tired Mp3gain which is time consuming when working on different files (and I have thousands)... and it doesn't work on m4a (AAC) files. Audacity reprocesses the files with audio match and is time consuming as well. Any ideas? 

So do your files currently have the replaygain already tagged? If not this feature won’t work. If you have 1000’s of files, it may take some time to process them all, but this is only required to be done once. Then the benefit will exist for all players.

Link to comment
Share on other sites

ReplayGain depends on small packets of data stored inside each audio file which tell the player the maximum levels that will be found within the file, and what adjustments need to be made to normalise the gain setting.

To check if a file contains this data, start a song playing in PA and long-press on the artwork area and select 'Info/Tags' and you should see the Track, Album and Peaks values. If they are not present, you'll need to add them yourself, externally to Poweramp.

I use foobar2000 on a computer to do this, you can drag your whole music collection folder onto it, select all, and use the right-click menu option ReplayGain > "Scan as Albums (by tags)". Once it has worked out all the values, click "Update File Tags" to write the data back to all the selected files. Each stage of this process could take a while with large numbers of files (could even be several hours for big collections) so just leave it to run.

M4A is an Apple-centric format for which tag standards have never been formally published, but the details were reverse-engineered ages ago and ReplayGain should work fine with it.

Andre

Link to comment
Share on other sites

There are two different gains, one for album and one for tracks.

  •  Track gain sets all the tracks to an equal loudness.
  •  Album gain keeps the loudness relative to other other unchanged, but the average album loudness is normalized.

If you listen to albums you obviously want to use track gain but if you listen to playlists consisting of individual tracks, then you want to use track gain. You have a setting for this and it's called source and can be found under the RG settings.

There is an old feature request for having Poweramp setting the source based on if a "album" is being played or individual tracks. But as it's now you need to set it according to your own listening preferences.

If you only have individual tracks, then you could apply track gain across the bulk of tracks, but if you have albums, then you should add the gain album by album in order to not loose the intended loudness differences between the tracks.

Some people find it easier to reach for the volume dial than to go through the hazzle of normalizing. It's a pain to go back and re-do a library, I have done it a couple of times before I got to what works for me.

Link to comment
Share on other sites

I have a bit of OCD when it comes to my music library... 10k tracks across 800 CD's... The cleanups of tags/naming/normalization/... has always started with a innocent "I will fix the ones that I listen to", and it always ends up that i trudge through the bulk of it...
End-result is a library organized in "Artist\Album" folder hierarchy, so it's relatively easy to apply something across all tracks in a album, so I ran the normalization on a folder at a time.

Link to comment
Share on other sites

I tend to leave it on Track Gain, as I rarely listen to whole albums in their entirely - and even when I do I prefer each track to be level-matched anyway. The only time I would find it useful is for concept albums or other gapless material.

But yes @6b6561 , I did the same as you and spent a few days adjusting all of my tags to tidy up after years of mess. Multiple-Artist tags now all tidily semicoloned, Album Artist tags are all correctly set, Artist names tidied up so they are consistent (for case, usage of "The", etc). Then I threw everything into foobar2000 and cleared all existing ReplayGain tags and re-built them all. Some (such as my Singles folder) I removed the Album Gain tags completely, as they are pointless in that situation.

Andre

Link to comment
Share on other sites

4 hours ago, andrewilley said:

I tend to leave it on Track Gain, as I rarely listen to whole albums in their entirely - and even when I do I prefer each track to be level-matched anyway. The only time I would find it useful is for concept albums or other gapless material.

But yes @6b6561 , I did the same as you and spent a few days adjusting all of my tags to tidy up after years of mess. Multiple-Artist tags now all tidily semicoloned, Album Artist tags are all correctly set, Artist names tidied up so they are consistent (for case, usage of "The", etc). Then I threw everything into foobar2000 and cleared all existing ReplayGain tags and re-built them all. Some (such as my Singles folder) I removed the Album Gain tags completely, as they are pointless in that situation.

Andre

Ah the joys of an OCD music fan🥴

I have used dbPoweramp (no relation here) for a very long time for ripping my CD collection, and it can be used to also calculate Track and Album Replaygain settings. It is also very good at completing the initial metadata tag settings. But I use mp3tag to do all of my batch editing and clean up for anything after that.

Link to comment
Share on other sites

Thanks so much for the thorough and intelligent answers. I downloaded foobar2000. I did the scan by track method on my most recent purchases (since I predominantly use playlists). Easy and quick. I'll test them when I can.

Link to comment
Share on other sites

@Brit Even if you use the Album scanning mode, foobar will still add Track Gain values too, so you get both options in the player later. I only use pure 'Track-only' scanning for singles, or other items that have no real concept of an Album status (such as random song Collections).

As @6b6561 mentioned, it would be handy if PA had an extra Reply Gain setting where 'Album' gain settings are only used when you are playing in album-oriented modes, otherwise 'Track' gain is used (for All Songs, folders, Playlists, etc).

Andre

Link to comment
Share on other sites

  • 2 years later...
On 9/20/2021 at 3:02 AM, andrewilley said:

I use foobar2000 on a computer to do this, you can drag your whole music collection folder onto it, select all, and use the right-click menu option ReplayGain > "Scan as Albums (by tags)". Once it has worked out all the values, click "Update File Tags" to write the data back to all the selected files. Each stage of this process could take a while with large numbers of files (could even be several hours for big collections) so just leave it to run.

so doing this makes all the music sound at the same volume?

Link to comment
Share on other sites

7 minutes ago, ihaspei said:

so doing this makes all the music sound at the same volume?

It sets the PEAK level of each track to the same volume, so the loudest part of every song will be raised or lowered to the desired level. That gain adjustment is applied to the whole track. 

Note: it does not change parts "on the fly" so louder bits get quieter and quieter bit get louder.

Andre

Link to comment
Share on other sites

i just scan all my library with foobar as you said. i'm gonna try it and see how it sounds.

it's just a tag that foobar provides to the files so Poweramp can read it and do the replay gain right? just in case if i don't like it so i can just disable that option.

Link to comment
Share on other sites

2 hours ago, ihaspei said:

i just scan all my library with foobar as you said. i'm gonna try it and see how it sounds.

it's just a tag that foobar provides to the files so Poweramp can read it and do the replay gain right? just in case if i don't like it so i can just disable that option.

It's just a tag field. There IS a way (that you don't want) to hard code these adjustments in to the files permanently. So just avoid that!

Link to comment
Share on other sites

2 hours ago, ihaspei said:

i just scan all my library with foobar as you said. i'm gonna try it and see how it sounds.

it's just a tag that foobar provides to the files so Poweramp can read it and do the replay gain right? just in case if i don't like it so i can just disable that option.

http://eolindel.free.fr/foobar0.9/Replaygain.php

This page details a fair bit.

Link to comment
Share on other sites

@ihaspei Yes, it's purely tags. There are two tags for tracks, and two tags for overall albums (if your music contains album-name tags), which can be removed, or ignored, just as easily. See the Guide which I linked earlier for the difference between Track RG and Album RG tags.

Just drag all your required songs/folders into foobar2000 on a computer, make sure all the songs are selected, and right-click and choose Replay Gain > Scan as Albums by tags (or just Per-track).

image.png

When the scan is complete you'll see all the values it has calculated, and at the point you should click on 'Update File tags'.

The RG spec says the target peak level should be about 14dB below digital maximum to provide headroom for further processing, so in most cases the values calculated will be negative - i.e. those tracks will become quieter when RG is enabled. But you can adjust the playback target level within PA's Replay Gain menu if you do not use a lot of EQ boosting, or you are in the "goes up to 11" camp :)

Andre

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...