Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: need tool for replaygain on flac files (Read 11585 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!

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.

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.

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
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.

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!