HydrogenAudio

Hydrogenaudio Forum => General Audio => Topic started by: greynol on 2009-01-02 03:18:52

Title: Looking for something like mp3gain for flac files
Post by: greynol on 2009-01-02 03:18:52
When I started, I didn't find anything (and still haven't) called FLACgain or something that would equalize the volume of FLACs.

...

I love Winamp.

Sure there's something to equalize the volume of your flacs.  It's called Replaygain and Winamp's in_flac.dll supports it.
Title: Looking for something like mp3gain for flac files
Post by: mattdm11 on 2009-01-02 03:47:35
True, but I like adjusting the files myself, not having winamp guess at it.  For example, I have several CDs that, in order to have the same perceived volume as other CDs, should be reduced by 9dB, but if I let Replaygain automatically adjust it, it would only adjust it 6dB.  Does that make sense?

Unless I'm not understanding something and Replaygain is an actual utility like MP3gain?

Moderation: Removed quotation.
Title: Looking for something like mp3gain for flac files
Post by: greynol on 2009-01-02 03:55:45
If you have a problem with RG, then you must certainly have a problem with mp3gain as well since it uses the RG algorithm (as does aacgain, as does wavegain, as does vorbisgain).  What's worse, mp3gain only works in 1.5dB steps.
Title: Looking for something like mp3gain for flac files
Post by: mattdm11 on 2009-01-02 04:05:34
I have a problem with it when I blindly adjust according to standard reductions.  A lot of albums I reduce by 6 dB, but not all.  Some get reduced only by 4.5, some by 9.0.  That's why I do it by hand - by listening to it myself, I adjust a few dB here and there to fine tune it.

And yes, I hate that it only works in 1.5dB steps.

Moderation: Removed quotation.
Title: Looking for something like mp3gain for flac files
Post by: greynol on 2009-01-02 04:11:32
So then manually adjust the replaygain values just as you would do by manually adjusting the volume with mp3gain.  Problem solved.

EDIT: If you're still not satisfied, wavegain allows manual adjustment with the -g switch.  Sox and foobar2000 can do this also.

My apologies to the OP for continuing this off-topic conversation.  @mattdm11, if you want to discuss this further I will be more than happy to split the thread, though there isn't much more to say on the matter.  The next step is for you to research the options I have given you.
Title: Looking for something like mp3gain for flac files
Post by: mattdm11 on 2009-01-02 04:45:30
If you feel the need, go ahead.

I'm going to sound like a complete idiot here, but I did do some research, it's just that I've always used mp3gain.  Where can I dl Replaygain, or is it already in Winamp?  It's just a plugin, right?

Until today I thought they were both programs.  I think I found the site for it but it comes in a RAR file and inside the RAR file all I see are folders, no files.

Moderation: Removed quotation.  Now that the thread is split there should be absolutely no need to quote the entire previous post when responding to it.
Title: Looking for something like mp3gain for flac files
Post by: greynol on 2009-01-02 05:20:11
RG is not a program that you download.  It's something that is incorporated into your player (foobar2000 and Winamp can both calculate RG, though I don't think Winamp will let you manually edit the values).  Some codecs have the ability to calculate RG values when encoding such as flac, wavpack and lame, though lame stores the information in the header for which there is little support.
Title: Looking for something like mp3gain for flac files
Post by: Moonbase on 2009-01-02 10:25:43
foobar does a good job for RG.

If you’re more like me and insist in doing everything manually, the combination of Mp3tag (a tagging software) and the commandline utilities metaflac, metamp3 and vorbisgain is also worth looking into. (There are more, like aacgain and wavegain but I only use FLAC, OGG and MP3.)

All above use the Replay Gain algorithms, so consistent results could be expected. Mp3tag could be used to manually edit RG values in tags, but I’d strongly advise against doing that.

Good players (like foobar, SqueezeCenter/SqueezeBox(es) for example) support the RG tags. Winamp also does. iTunes/iPod(s) use their own variant, called »SoundCheck« I believe (which could be calculated from RG values but Apple apparently don’t like to officially document the SC tags).
Title: Looking for something like mp3gain for flac files
Post by: halb27 on 2009-01-02 12:57:29
Maybe the misunderstanding comes from this:

While replay gain value can be computed and stored in the music file with many tools (for instance with foobar), and the RG value can be modified manually if wanted so, mp3gain (and its variant aacgain) has the AFAIK unique feature that the audio content of a music file is modified in such a way that RG's loudness modification works with any player. This is an important feature for the majority of mobile DAPs.
Only disdavantage is mp3gain's accuracy of +/-0.75 db which however is sufficient in practice. Moreover with a RG featured player RG value is taken care of exactly. Important: when lowering volume (which is usually done when applying RG) mp3gain's modification of the audio content is a lossless process.

As for manual RG value modification: according to my experience automatic RG computation usually gives the right answer. If not the result is usable though not optimal most of the time. It happens though that modification of the computed RG value is a must do.

EDITED: Very personal experience removed which may have been mistaken as a general advice.
Title: Looking for something like mp3gain for flac files
Post by: greynol on 2009-01-02 17:26:39
It happens though that modification of the computed RG value is a must do, most of the time when track's loudness is to be lower than 'normal'. To tackle this Album gain usually is not a good solution for a sequence of tracks originating from various albums even if album gain was used on the original album tracks.
I strongly disagree.  If a track is intended to be quiet in the context of an album, I feel is should be quiet in the context of a compilation.  Sure there are exceptions because the algorithm isn't perfectly omniscient, but I know that I'm not alone in my reasoning.
Title: Looking for something like mp3gain for flac files
Post by: halb27 on 2009-01-02 21:57:11
... If a track is intended to be quiet in the context of an album, I feel is should be quiet in the context of a compilation.  ....

Sure, but the adequate degree of quietness of a track is not totally independent of the context.
I do not want to open another discussion album vs. track gain. I think everybody using RG has made his own experience and uses the mode most appropriate to his needs.
... Sure there are exceptions because the algorithm isn't perfectly omniscient, ....

That's why modifying the RG value can be helpful on occasion.
Title: Looking for something like mp3gain for flac files
Post by: Nick.C on 2009-01-02 22:17:29
I strongly disagree.  If a track is intended to be quiet in the context of an album, I feel is should be quiet in the context of a compilation.
Would this not be a case for looking at the relativity between the Track Gain and the Album Gain and retaining this when compiling the compilation, although how it would be dealt with in practice is as yet indeterminate, i.e how would one deal with:

From Album A: Track 1: TG: -4.5dB; AG: -3.0dB;
From Album B: Track 2: TG: -6.0dB; AG: -6.0dB.

One possible interpretation would be that Album A: Track 1 should be 1.5dB "louder" than Album B: Track 2 on the compilation, having first normalised both tracks using the album gain.
Title: Looking for something like mp3gain for flac files
Post by: mattdm11 on 2009-12-10 01:38:40
sorry to resurrect the thread, but while I know there is no "program" for FLACs like MP3gain, is there a way to manually adjust the actual volume of an album through Replaygain to my liking?  For example, if Replaygain says they are going to adjust an album -10dB, is there something I can do so Winamp/Foobar knows that I really only want to adjust this album, say, -9dB, or maybe -11dB?  And it remembers this setting every time I play the album?

Basically, I am looking for some flexibility in RG.  To these ears, RG doesn't do a good of a job as I can do with MP3gain.  As it stands, either I keep all my music as MP3s with more volume adjustment flexibility, or I upgrade to FLAC and hit the volume button more.
Title: Looking for something like mp3gain for flac files
Post by: shakey_snake on 2009-12-10 01:48:59
Well, I don't know why no one has mentioned it, but you can apply gain to FLAC files in fb2k using the converter, in the processing tab.

It is obviously a permanent, lossy operation, however.
Also with fb2k, you can adjust the values.

To these ears, RG doesn't do a good of a job as I can do with MP3gain.

Weird, because they use the exact same algorithm, as documented on HA's hosted site: here (http://replaygain.hydrogenaudio.org/calculating_rg.html).

It's likely your ears are lying to you.  See our Terms of Service #8.
Title: Looking for something like mp3gain for flac files
Post by: mattdm11 on 2009-12-10 01:51:53
Well, I don't know why no one has mentioned it, but you can apply gain to FLAC files in fb2k using the converter, in the processing tab.

It is obviously a permanent, lossy operation, however.



hmmm...not looking for anything permanent
Title: Looking for something like mp3gain for flac files
Post by: mattdm11 on 2009-12-10 01:58:08
Well, I don't know why no one has mentioned it, but you can apply gain to FLAC files in fb2k using the converter, in the processing tab.

It is obviously a permanent, lossy operation, however.
Also with fb2k, you can adjust the values.

To these ears, RG doesn't do a good of a job as I can do with MP3gain.

Weird, because they use the exact same algorithm, as documented on HA's hosted site: here (http://replaygain.hydrogenaudio.org/calculating_rg.html).

It's likely your ears are lying to you.


I knew someone was going to say this immediately.  I completely disagree.  Excuse me while I talk in mp3gain terms here, but...for example...a song with a "volume" of 91.0dB with max no-clip gain of 0.0 is louder to my ears than a song with a "volume" of 91.0 dB with max no-clip gain of 4.5 or 6.0.  There's more dynamic range in the first song, and to my ears, that makes the song louder.  When I adjust my mp3s in MP3gain, I don't look at the volume, I look at the max no-clip gain.  I usually adjust it for all songs to be at 4.5 (but, based on the reason for this thread, sometimes I make it 3.0, or 6.0).  Again, to my ears, that's the most pleasing way for me to enjoy music at the same volume.

Let's just agree to disagree.  I'm just looking to see if RG will let me adjust the volume after it calculates a RG value.
Title: Looking for something like mp3gain for flac files
Post by: Nick.C on 2009-12-10 06:26:48
MP3Gain / Replay Gain do not change dynamic range - at all. If you "hear" that it is most likely to be a placebo effect.
Title: Looking for something like mp3gain for flac files
Post by: mattdm11 on 2009-12-10 08:06:12
MP3Gain / Replay Gain do not change dynamic range - at all. If you "hear" that it is most likely to be a placebo effect.


I never said it changes the dynamic range - I'm saying a song with a volume of 91.0 dB with 0.0 max no-clip gain has more dynamic range than 91.0 with a max no-clip gain of 4.5.

Again, I'll concede I'm wrong.  I really don't care.  I am just looking to see if this is possible.
Title: Looking for something like mp3gain for flac files
Post by: 2Bdecided on 2009-12-10 09:57:34
Come on guys - why are you trying to confuse this person?!

Mattdm11 - it's simple - if you don't like the value ReplayGain automatically calculates for you, just edit it. It's only a value, and all players that support ReplayGain will read your edited value and use it.

foobar2k lets you edit ReplayGain values by right clicking on the track and selecting the option from the context menu*. Type in a new value, and click "update tags". That's it!

Problem solved, I hope!

Cheers,
David.

P.S. * - IIRC in the latest versions of fb2k the "edit ReplayGain" option is hidden by default - you have to unhide it in a preferences menu somewhere.
Title: Looking for something like mp3gain for flac files
Post by: [JAZ] on 2009-12-10 16:03:21
@Matdm11: Do you really mean that you want to modify the replaygain value to your likings, file by file, or you mean that you want to increase/decrease for all flac files that you replaygain?

I.e. I am interested if you are looking for the Reference gain box of MP3Gain for flacs.

If it is, then:
Foobar2000:  Menu: File->Preferences, Playback, and change the sliders of the preamp section. The first one changes the gain for those with replaygain information, and the second does so, for the ones without replaygain.

Winamp: Menu: Options-Preferences, General preferences->Playback,  Replaygain tab and change the slider of preamp. Here you will reduce the volume for non-replaygained files, and you can use the one in the equalizer to increase both (replaygained and non-replaygained).

You can read more in this post of mine:
http://www.hydrogenaudio.org/forums/index....st&p=670222 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=75743&view=findpost&p=670222)
Title: Looking for something like mp3gain for flac files
Post by: mattdm11 on 2009-12-10 23:26:28
thanks to 2Bdecided and JAZ....but maybe I am not fully understanding what you are saying, or I am not explaining myself correctly.

I don't want to adjust every single FLAC I have by hand.  What I'm saying is that if I have an album that has an album gain of -10dB according to RG, sometimes I am happy with RG's adjustment; other times I am not.  For example - Radiohead's "In Rainbows" still seems louder to me when adjusted through RG, so instead of lowering the volume 10dB, maybe I want to lower the whole album 12dB.  Is there a way to tell RG that when "In Rainbows" plays, to automatically lower the volume by 12dB instead of 10dB?  The same goes for another album I have - RG lowers the volume 5dB, but I think that's too quiet, so I want to only lower it 3dB.

It seems like you would almost have to tag the files like you do with an mp3 through MP3gain.

I read both of your suggestions, and like I said, maybe I'm not understanding, but I don't think either of your suggestions apply to what I'm looking for.  This may not even be possible.  I'm not trying to be a pain, I swear....
Title: Looking for something like mp3gain for flac files
Post by: mattdm11 on 2009-12-10 23:33:41
Come on guys - why are you trying to confuse this person?!

Mattdm11 - it's simple - if you don't like the value ReplayGain automatically calculates for you, just edit it. It's only a value, and all players that support ReplayGain will read your edited value and use it.

foobar2k lets you edit ReplayGain values by right clicking on the track and selecting the option from the context menu*. Type in a new value, and click "update tags". That's it!

Problem solved, I hope!

Cheers,
David.

P.S. * - IIRC in the latest versions of fb2k the "edit ReplayGain" option is hidden by default - you have to unhide it in a preferences menu somewhere.


re-reading this, this may be what I need, except at the album level, not the individual file level.  Plus, I'm a newbie to Foobar (I use Winamp mostly) and can't find that setting in preferences
Title: Looking for something like mp3gain for flac files
Post by: shakey_snake on 2009-12-10 23:43:58
It's not in the preferences.

Using the new 1.0 betas:
1. Highlight the files in an album
2. Hold Shift and right-click to bring up the context menu (you'll notice this brings up more items than a usual right-click)
3. ReplayGain->Edit ReplayGain Info
Title: Looking for something like mp3gain for flac files
Post by: mattdm11 on 2009-12-11 05:22:37
yes!  that's what I was looking for.  Thank you!

I'd love to get it on the normal right click menu, if possible, instead of hitting shift every time.
Title: Looking for something like mp3gain for flac files
Post by: trout on 2009-12-11 06:41:46
I'd love to get it on the normal right click menu

Preferences > Display > Context Menu . . . . items with checkmark appear without Shift
Title: Looking for something like mp3gain for flac files
Post by: mattdm11 on 2009-12-11 23:21:46
I'd love to get it on the normal right click menu

Preferences > Display > Context Menu . . . . items with checkmark appear without Shift


thank you 
Title: Looking for something like mp3gain for flac files
Post by: MinusZero on 2010-12-31 00:52:11
Have there been any further developments in the past year regarding this? I would like to have an MP3Gain tool for FLAC files, but doesn't seem it's possible. ReplayGain only works on playback, not while burning to CDs or for use with Acid Pro (unlike MP3Gain).

Is my best option if I want to make a mix just convert the FLACs to v0 mp3 and use MP3Gain? I'd prefer to hear the FLAC files on my burnt CD.
Title: Looking for something like mp3gain for flac files
Post by: saratoga on 2010-12-31 00:58:01
Have there been any further developments in the past year regarding this? I would like to have an MP3Gain tool for FLAC files, but doesn't seem it's possible.


Yes, foobar2000 can do this easily.  See this post earlier in the thread:

http://www.hydrogenaudio.org/forums/index....st&p=672442 (http://www.hydrogenaudio.org/forums/index.php?showtopic=68353&view=findpost&p=672442)

Title: Looking for something like mp3gain for flac files
Post by: mattdm11 on 2010-12-31 02:52:54
Have there been any further developments in the past year regarding this? I would like to have an MP3Gain tool for FLAC files, but doesn't seem it's possible. ReplayGain only works on playback, not while burning to CDs or for use with Acid Pro (unlike MP3Gain).

Is my best option if I want to make a mix just convert the FLACs to v0 mp3 and use MP3Gain? I'd prefer to hear the FLAC files on my burnt CD.


you brought my thread back from the dead!

I *think* most burning programs ask you if you want to use RG tags when burning the album, so you might be able to do it that way.  I had the same question just a few weeks ago.  I don't burn a lot of CDs, so I finally did and wondered how to equalize volume now that the files are FLAC and are not adjusted in the same way MP3gain adjusts in terms of storing volume.  But I looked in my burning program and an option was to apply RG tags when burning a CD.

CDBurnerXP is the program I used, I believe.

I am very happy I went to RG instead of using MP3gain, especially since I have gone through the task of re-ripping to FLAC.  Yes, probably pointless from being able to hear a difference, but I feel better about it.  I like the RG lets you edit the value to whatever you want it to be vs. the 1.5 dB increments of MP3gain.
Title: Looking for something like mp3gain for flac files
Post by: greynol on 2010-12-31 03:37:36
Have there been any further developments in the past year regarding this?
There will probably never be any developments enabling a volume change applied directly to flac data like there is for mp3 data.

I *think* most burning programs ask you if you want to use RG tags when burning the album, so you might be able to do it that way.
How many burning programs offer RG?  I think only a tiny few.  The one I'm most familiar with, Burrrn will always scan the audio even if the RG data is present.

I like the RG lets you edit the value to whatever you want it to be vs. the 1.5 dB increments of MP3gain.
If you were comparing the volume between the same track I could see this as more of an issue, but we don't use RG this way.  RG is intended to make different tracks (or albums) have the same volume.  As such you are no longer comparing apples to apples.  FWIW, I too moved away from MP3Gain because I now have my collection as lossless with RG tags which I can use to scale the volume prior to conversion to mp3.  The main benefit for me is speed.  MP3Gain is quite slow, especially when compared to the speed at which foobar2000 performs the same task (which is still not as fast as not doing it at all).
Title: Looking for something like mp3gain for flac files
Post by: MinusZero on 2011-01-08 01:35:33
For this CD I'm burning I have a mixture of mp3's and FLACs.

Because there is no manual adjustment on ReplayGain in foobar, are all RG files set to 89dB by default? If so, I was thinking I could apply RG to the FLAC files, and apply MP3Gain of 89dB to my mp3's and they'd end up sounding similar in volume. Then I could re-encode the FLACs with this RG information, and all files would be ready for burning in Nero.

Does this sound feasible?
Title: Looking for something like mp3gain for flac files
Post by: MinusZero on 2011-01-09 03:51:07
OK, I applied ReplayGain to a FLAC file in foobar, made a copy of it, and decoded that to a wav using FLAC frontend, but the wav doesn't show the applied RG difference in volume, even though I ticked the ReplayGain box 

Anyone know why this didn't work?
Title: Looking for something like mp3gain for flac files
Post by: 2Bdecided on 2011-01-10 12:25:46
made a copy of it, and decoded that to a wav using FLAC frontend
You don't need to make a copy of it, but you do need to do the FLAC>WAV conversion in foobar2k with ReplayGain enabled in the converter dialogue (not just for playback - that's a separate option).

Cheers,
David.

Title: Looking for something like mp3gain for flac files
Post by: saratoga on 2011-01-10 16:35:22
OK, I applied ReplayGain to a FLAC file in foobar, made a copy of it, and decoded that to a wav using FLAC frontend, but the wav doesn't show the applied RG difference in volume, even though I ticked the ReplayGain box 

Anyone know why this didn't work?


You should probably read that post I linked above.  Its pretty clear how to make this work.