HydrogenAudio

Lossless Audio Compression => FLAC => Topic started by: rbz on 2011-12-03 12:15:40

Title: Applying ReplayGain to existing FLACs
Post by: rbz on 2011-12-03 12:15:40
Hi,

my first post here after a long time of lurking.

I ripped a lot of my CDs to FLAC, one file per track. Encoding was done either with EAC + FLAC or with FLAC frontend. I did not use ReplayGain (RG) on that occasion, but want to add RG now. Maybe I missed something obvious, but I can't find a way to add RG to existing FLAC files at all.

N.B.: The reason for not using RG in the first encoding was that I couldn't find a way to adjust the gain volume level from the standard 89 dB to, say, 92 dB SPL. FLAC frontend only has a switch to apply RG without additional adjustments (unlike e.g. WaveGain, which I used on another occasion). From what I read about FLAC's command line switches, it doesn't have an option for additional gain. But due to the miserable state of portable DAPs' output volumes (esp. in Europe), I need to adjust the values for louder output.

How could I accomplish this?

TIA
rbz

P.S.: I already thought about transcoding FLAC -> FLAC, but that way, I would lose my tags/comments/cover art into which I put a lot of work, wouldn't I? And I still couldn't alter the SPL.
Title: Applying ReplayGain to existing FLACs
Post by: Nick.C on 2011-12-03 12:47:00
Install foobar2000.

Import FLAC library.

Select All

Right click > replaygain > scan tracks as albums by tags.

Apply scanned values.
Title: Applying ReplayGain to existing FLACs
Post by: rbz on 2011-12-03 13:44:49
Thanks,

but will fb2k let me add an additional 2-3 dB gain? While still applying clipping prevention, of course (the way that WaveGain does it)?

rbz
Title: Applying ReplayGain to existing FLACs
Post by: [JAZ] on 2011-12-03 15:12:14
When you use WaveGain or MP3Gain, you are allowed to set the target gain because that's sort of a "final" state.

On the other hand, replaygain is a tag, and the tag is defined to be at a specific gain (the spec originally said 83, but soon it became 89).

Most players that support replaygain, allow to apply an extra gain to adjust to the user preferences.

In foobar2000, this is in "File->Preferences -> Playback", and adjusting the "with RG info".
In Winamp, this is in "Options->Preferences -> Playback -> Replaygain adjustments tab" and adjusting the "Replaygain preamp gain".
Other players might have the option as well.
Title: Applying ReplayGain to existing FLACs
Post by: rbz on 2011-12-03 15:47:48

When you use WaveGain or MP3Gain, you are allowed to set the target gain because that's sort of a "final" state.

On the other hand, replaygain is a tag, and the tag is defined to be at a specific gain (the spec originally said 83, but soon it became 89).

Most players that support replaygain, allow to apply an extra gain to adjust to the user preferences.

In foobar2000, this is in "File->Preferences -> Playback", and adjusting the "with RG info".
In Winamp, this is in "Options->Preferences -> Playback -> Replaygain adjustments tab" and adjusting the "Replaygain preamp gain".
Other players might have the option as well.

So this is a playback only setting (apart from WaveGain/MP3Gain)?
Pity.
I don't quite understand how this can work on playback while still having clipping prevention. Do those programs parse the entire file and recalculate the gain before playing the track to prevent clipping or do they reduce the volume once clipping occurs?
In both cases I can't see how true album gain can work (unless the programs parse a complete set of files in advance as an 'album').
Title: Applying ReplayGain to existing FLACs
Post by: evereux on 2011-12-03 18:05:36
Have you read the FAQ? http://wiki.hydrogenaudio.org/index.php?ti...ayGain#Clipping (http://wiki.hydrogenaudio.org/index.php?title=ReplayGain#Clipping)

Foobar2000 can prevent clipping on playback.