New ReplayGain 2.0 Plugin Released

Here’s a simple operational question. Regarding Replay gain vs. Replay Gain 2.0. Why are there two? I’m confused. What is the function of both of these? WHich one do you run first? Or do you only run one of them? What exactly do these plugin do?

1 Like

The new ReplayGain 2.0 is the new implementation and will replace the old plugin, which eventually will get removed. The main difference is that the old plugin used multiple different tools, which are mostly obsolete, for different file formats, while the new plugin used the single regain tool. The second important difference is that the new plugin used the improved ReplayGain 2.0 specification.

But see also the first post in this thread for details

They allow you to calculate the ReplayGain for your files.

3 Likes

OK, now I’m officially confused. DO I need to install both Replay gain and Replay Gain 2.0 in order to get the function to work? Or do I just install the new one (Replay Gain 2.0" thus the 2.0 moniker self-describes itself as the next generation “2.0”. Do you see where normal people not familiar could get confused here? Or better yet, if both are require why package both together in an install program and call it Replay Gain 3.0?

You just use the newer one. You can uninstall the old “ReplayGain” plugin, just keep the new “ReplayGain 2.0”.

1 Like

A small update for Linux users: If you install Picard using either the Flatpak or Snap package the rsgain utility is now bundled if you are using at least the 2.8.4 release. That means the ReplayGain 2.0 plugin can be used in these installs.

2 Likes

Asked a question here, found out I have to use the plugin in the release tab.

  1. Upon completion of calculation, there was no window that popped up prompting me to save.
    This is what happened:
    Before

    After (Clicked calculate)
  2. I do not want to save the information the “release” view adds on. Can I use this plugin by itself? As in saving the new replay gain values alone.
  1. This is by design. A message will display in the status bar to inform the user that the scanning has completed.
  2. The only way I’m aware would be to manually delete the tags you don’t want before saving.

Thank you for this response. Perhaps a “Replay Gain Tags Only Script” would make it easier.

What does the option “Use true peak” do if you check it in Replay Gain 2.0?

“True peak” is an alternate method to calculate the peak. If you select true peak in the settings, the calculated peak values will be higher, but the gain values will remain the same. Using true peak will also increase the amount of time required to scan the files because it is more computationally intensive.

You can search “true peak” online and there is plenty of information available about how it works.

1 Like

Does it make the music sounder better? THat’s all I care about.

The peak values are used by the player to predict if the audio will clip during playback. The true peak is more conservative and makes the files less likely to clip, however, if you don’t notice your files clipping currently I recommend sticking with the default peak calculations. I don’t use the true peak setting for my library.

3 Likes

So this plugin uses now EBU R128, right? That’s what I get from the wiki.

Not by default, but you can normalize to the EBU R 128 standard by changing the following plugin settings:

  • Enable “Use true peak”
  • Set “Target Loudness” to -23 LUFS
  • Set “Max Peak” to -1 dB
4 Likes

Is there a way to automatically run this when saving tagged music files?

Also does this automatically calculate bpm?

Currently the plugin does not provide the ability to run on save, although this could be added.

BPM calculation is something different and is not part of the ReplayGain plugin.

2 Likes

deleted previous comment because I figured it out

Most of the time the addon work but some albums don’t work. Album is https://musicbrainz.org/release/979327a1-030a-3ed5-9e19-5880a5d11be5. Here is the Error Message:

E: 19:03:55,547 /usr/lib/python3.11/site-packages/picard/util/thread.run:66: Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/picard/util/thread.py", line 63, in run
    result = self.func()
             ^^^^^^^^^^^
  File "/home/user/.config/MusicBrainz/Picard/plugins/replaygain2.zip/replaygain2/__init__.py", line 231, in calculate_replaygain
    raise Exception(f"ReplayGain 2.0: Unexpected output from rsgain: {lines}")
Exception: ReplayGain 2.0: Unexpected output from rsgain: ['Filename\tLoudness (LUFS)\tGain (dB)\tPeak\t Peak (dB)\tPeak Type\tClipping Adjustment?', '01 Ready Lets Go.flac\t-21.05\t3.05\t0.292328\t-10.68\tSample\tN', '02 Music Is Math.flac\t-12.66\t-5.34\t0.988525\t-0.10\tSample\tN', '03 Beware the Friendly Stranger.flac\t-26.29\t8.29\t0.324341\t-9.78\tSample\tN', '04 Gyroscope.flac\t-11.68\t-6.32\t0.982361\t-0.15\tSample\tN', '05 Dandelion.flac\t-22.79\t4.79\t0.311981\t-10.12\tSample\tN', '06 Sunshine Recorder.flac\t-12.41\t-5.59\t0.999054\t-0.01\tSample\tN', '07 In the Annexe.flac\t-21.41\t3.41\t0.356781\t-8.95\tSample\tN', '08 Julie and Candy.flac\t-11.10\t-6.90\t0.975098\t-0.22\tSample\tN', '09 The Smallest Weird Number.flac\t-18.81\t0.81\t0.456482\t-6.81\tSample\tN', '10 1969.flac\t-11.10\t-6.90\t0.988525\t-0.10\tSample\tN', '11 Energy Warning.flac\t-19.33\t1.33\t0.630249\t-4.01\tSample\tN', '12 The Beach at Redpoint.flac\t-12.31\t-5.69\t0.998932\t-0.01\tSample\tN', '13 Opening the Mouth.flac\t-21.56\t3.56\t0.420502\t-7.52\tSample\tN', '14 Alpha and Omega.flac\t-11.64\t-6.36\t0.981201\t-0.16\tSample\tN', '15 I Saw Drones.flac\t-22.19\t4.19\t0.449127\t-6.95\tSample\tN', '16 The Devil Is in the Details.flac\t-15.00\t-3.00\t0.968567\t-0.28\tSample\tN', '17 A Is to B as B Is to C.flac\t-20.90\t2.90\t0.591492\t-4.56\tSample\tN', '18 Over the Horizon Radar.flac\t-18.38\t0.38\t0.533051\t-5.46\tSample\tN', '19 Dawn Chorus.flac\t-10.09\t-7.91\t0.865265\t-1.26\tSample\tN', '20 Diving Station.flac\t-21.73\t2.22\t0.774658\t-2.22\tSample\tY', '21 You Could Feel the Sky.flac\t-13.38\t-4.62\t0.989502\t-0.09\tSample\tN', '22 Corsair.flac\t-17.23\t-0.77\t0.617126\t-4.19\tSample\tN', 'Album\t-12.61\t-5.39\t0.999054\t-0.01\tSample\tN']

I’m using Picard version 2.8.5. My python version is: Python 3.11.3. Plugin Options are only “Calculate album gain/peak” “LUFS -18” “Clipping Protection: Enabled for positive gain values only” “Max Peak: 0” “Write standard ReplayGain tags”. rsgain is latest version from git.

i try also

it’s same error.

@floridaklaus Can you confirm that the 23rd track of that album is completely silent?

indeed it’s silent. not ripping fault. youtube say its normal. Boards of Canada - Magic Window (silence) - YouTube

i check all files but all of them don’t got replay gain info cause of the error of the silent track.