Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 5 of 5
  1. #1

    Replay Gain Advice

    Hi

    Looking for some advice for the best tool (and method) to add replaygain tags to my local flac and mp3 files.

    I was initially looking at this script here, https://www.bobulous.org.uk/misc/Rep...ating-metaflac, that uses metaflac, but then cam across this github request, https://github.com/xiph/flac/issues/96, suggesting that metaflac is using outdated algorithms for calculating track volumes.

    I am aware of Foobar2000 but didn't know if it was the best tool to use.

    Ideally I would like a script I can use to point at an album directory and add track and album replaygain tags automatically.

    What are people's preferred method of adding replaygain tags to both flac and mp3 files?

    Thanks!

  2. #2
    Senior Member
    Join Date
    Nov 2012
    Posts
    273
    Quote Originally Posted by bobcoupee View Post
    What are people's preferred method of adding replaygain tags to both flac and mp3 files?

    Thanks!
    i used winamp, but if i was going to do it again or from scratch i would use something like foobar, which supports the r128 standard.
    Using: Win10 64 + LMS 8 & Duet & ipads w/the logitech app, and ipeng on an ipod
    http://wiki.slimdevices.com/index.ph..._Artists_logic & http://wiki.slimdevices.com/index.php/Compilations

  3. #3
    Senior Member
    Join Date
    May 2008
    Location
    United States, Florida
    Posts
    12,794
    foobar2000 does an excellent job of adding RG tags in a bulk manner. Highly recommended. I use dbpoweramp for adding when ripping, but foobar2000 for after the fact adding RG tags.
    Home: Pi4B-8GB/pCP8.x/4TB>LMS 8.2.x>Transporter, Touch, Boom, Radio (all ethernet)
    Cottage: rPi4B-4GB/pCP8.x/4TB>LMS 8.2.x>Touch>Benchmark DAC I, Boom, Radio w/Battery (Radio WIFI)
    Office: Win10(64)>foobar2000
    The Wild: rPi3B+/pCP7.x/4TB>LMS 8.1.x>hifiberry Dac+Pro (LMS & Squeezelite)
    Controllers: iPhone11 & iPadAir3 (iPeng), CONTROLLER, Material Skin, or SqueezePlay 7.8 on Win10(64)
    Files: Ripping: dBpoweramp > FLAC; Post-rip: mp3tag, PerfectTunes, TuneFusion; Streaming: Spotify

  4. #4
    Senior Member
    Join Date
    Jun 2017
    Posts
    786
    I use a command line tool, loudgain, which was recommended by someone in these forums. The github page includes directions for building and installing.

    Once installed, this command adds track and album gain tags to all mp3 files in the current folder:

    Code:
    loudgain -I3 -S -L -a -k -s e *mp3 | tee -a gain.txt
    And this does the same for all flac files in the current folder:

    Code:
    loudgain -k -a -s e *.flac | tee -a gain.txt
    In each case, it is assumed that all files in the current folder are part of the same album.

    The part of the command following the bar is optional, It simply creates a text file in the folder containing all the gain settings that have been applied.
    Usually running latest beta LMS nightly on Raspberry Pi OS with virtual players (Squeezelite and Airplay bridge). Occasionally using SB Radio, Boom or Classic.

  5. #5
    Senior Member
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    180
    loudgain seems intersting.
    I use metaflac, vorbisgain and mp3gain, but loudgain seems to be the best of both worlds.
    For opus, I used foobar2000 on linux with wine. It works fine except that it seems that resulting sound volume is lower than with mp3 or flac and replay gain is not showed in LMS.
    I use foobar for replaygain only for opus files, so I don't know if it's the case with other file types.
    I have a little script that scans all the library and keeps a time stamp of the last time the script has runned, in order not to recalculate all the replaygains!
    I'll try loudgain
    LMS 8.x.x
    on Linux Mageia 8 and RPI 3
    1 SB3, 2 radio, 1 touch, 1 transporter SE, 1 chromecast audio
    Plugins : Trackstat, Smartmix, MusicIP, ...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •