Skip to main content

Topic: need tool for replaygain on flac files (Read 425 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
need tool for replaygain on flac files
Hi,

i am looking for a tool that analyzes a flac file (whole album) and returns values for REPLAYGAIN_ALBUM_GAIN, REPLAYGAIN_ALBUM_PEAK and REPLAYGAIN_ALBUM_SCALE (scale is optional). I have only the flac, i dont have the wav anymore.

I tried a few different things and either it doesnt support flac or applys it directly to the flac. I just need those values as return to further proccess them.

Any ideas? :)

Thanks in advance!

  • adamOLC
  • [*]
Re: need tool for replaygain on flac files
Reply #1
Foobar can read replay gain if I recall correctly.  You can even apply replay gain with foobar too.  I'd provide some more info, but I'm at work and don't have it in front of me.

  • Zarggg
  • [*][*][*][*][*]
Re: need tool for replaygain on flac files
Reply #2
To clarify, foobar2000 can scan and write ReplayGain tags (metadata), but it cannot adjust the gain of FLAC files directly. Any decent player should be capable of reading them and adjusting playback volume accordingly, however.
  • Last Edit: 06 December, 2017, 02:01:44 PM by Zarggg

  • smok3
  • [*][*][*][*][*]
  • Moderator
Re: need tool for replaygain on flac files
Reply #3
Code: [Select]
man metaflac 
looks promising. You probably want
Code: [Select]
metaflac --scan-replay-gain *.flac
  • Last Edit: 06 December, 2017, 03:51:43 PM by smok3
PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung

Re: need tool for replaygain on flac files
Reply #4
To add replaygain tags, right click on a group of files in foobar2000's playlist and choose the desired scan as tracks or as an album.  This will add new tags.  The process doesn't change the FLAC file itself.  This is useful for all applications that support reading of ReplayGain tags.

To apply Replaygain directly to a brand new FLAC file in foobar2000 involves using the converter.  Your files will need to have ReplayGain tags otherwise it won't work.  Replaygain is under "processing".  Keep in mind this process is not reversible.  This will create a new file.  Be sure to keep the original file, just in case.  Click on any set of files in the playlist and choose ",,," under convert.  This is useful for portable players that don't support ReplayGain but can play FLACs.
  • Last Edit: 06 December, 2017, 04:07:58 PM by Chibisteven

  • lithopsian
  • [*][*][*][*]
Re: need tool for replaygain on flac files
Reply #5
Deadbeef will do it, but you'll need the latest development version which probably means you'll have to compile your own.  Replaygain scanning is just an operation on any track or group of tracks, then tags are written to the file if you like the results.

Re: need tool for replaygain on flac files
Reply #6
Thanks for the replys! :)

To clarify, foobar2000 can scan and write ReplayGain tags (metadata), but it cannot adjust the gain of FLAC files directly. Any decent player should be capable of reading them and adjusting playback volume accordingly, however.

That is correct, i should have been more precise: i need the values, and foobar doesnt return what i need (at least not what i can see). I want to add it in cuesheets, as i already have many CDs ripped that way and dont want to change the result.

Code: [Select]
man metaflac 
looks promising. You probably want
Code: [Select]
metaflac --scan-replay-gain *.flac

That does it, thanks!