New ReplayGain 2.0 Plugin Released

A new plugin “ReplayGain 2.0” has been released to the official Picard plugins repository. This plugin is the successor to the original ReplayGain plugin, which has been deprecated and is planned for removal from the plugins repository in the future.

The ReplayGain 2.0 plugin uses the command line utility rsgain as its backend. Here is a summary of the improvements over the original ReplayGain plugin

  • More Accurate: The new plugin is named for its implementation of the ReplayGain 2.0 Specification, which details a new loudness normalization algorithm that is more accurate than the ReplayGain 1.0 specification implemented by the old plugin
  • Single Backend: The new plugin requires only one backend, unlike the original plugin which required users to install separate backends for each file format they wanted support for. Having a single backend means less setup and maintenance, and it provides consistent results across file formats
  • Expanded Format Support: Several new file formats are supported that weren’t supported in the old plugin, including Opus, M4A, and WAV.
  • Better Integrated: The new plugin calculates the ReplayGain information and stores the values into Picard’s internal metadata structure, enabling Picard to tag the files. This is in contrast to the old plugin in which the backend tagged the files outside of Picard, and consequently the user was required to manually reload the files in Picard in order to view the tags.
  • More Configurable: There are several useful configuration options for advanced users. The user can specify a target loudness value, e.g. -23 LUFS if they want to normalize to the EBU R 128 recommendations. Other options include: album tags, true peak calculations for peak tags, reference loudness tags, clipping protection, and Opus file handling.
  • First Class Windows Support: The old plugin ran on Windows, but with limitations. The new plugin can properly handle file paths with Unicode characters when run on Windows 10 and later, and it does not open an empty console window when scanning. It provides a similar user experience across all of the supported platforms.

Users of the original ReplayGain plugin are encouraged to upgrade. To those of you who haven’t explored ReplayGain yet: I highly recommend you check it out. This plugin makes it very simple, and ReplayGain will greatly enhance your music listening experience.

Special thanks to @outsidecontext and @Sophist for creating the original ReplayGain plugin, and providing technical support.

13 Likes

I can’t get ReplayGain 2.0 to work. It says it can’t find rsgain but I can’t find rsgain in the available download plugin section. Please advise as I’d like to install your recommended plug-in

You need to download it from the GitHub page, and make sure its path is set in the plugin settings (“Path to rsgain”). Which platform are you using (Windows/Mac/Linux)?

2 Likes

currently I’m running Win 10 PC. I don’t understand any of this path stuff. I’m not a coder. I need this to be dumbed down for me. Is that possible? Is it possible to click an .exe file and just have it install? That’s the level I need.

You can download rsgain.exe from the rsgain release pages. The current latest version is 3.1, which you can download from Release v3.1 · complexlogic/rsgain · GitHub

You need to get the rsgain-3.1-win64.zip from there. This is a ZIP archive that contains rsgain.exe. extract that file from the ZIP and put it whereever you like. You could put it e.g. in your users folder.

The inside of Picard first make sure you have downloaded and enabled the ReplayGain 2.0 plugin. Save the options, the open the options again and go to Plugins > ReplayGain 2.0.

There in the ReplayGain 2.0 settings is a field “Path to rsgain” where you need to specify the location of the rsgain.exe file. E.g. if you put it into your home folder the path might be something like “C:\Users\YourWindowsUserName\rsgain.exe”

4 Likes

Two small updates:

  1. I have added a “Browse…” button next to the “Path to rsgain” field. This can make it easier to set the proper rsgain.exe, as you can use the file chooser dialog to select the proper file.

    This is available in version 1.1 of the plugin. Check Options > Plugins for an update.

  2. I have added the rsgain utility to the Picard Snap package for Linux. This is currently only available in the edge channel, but will be included in the next stable release.

6 Likes

When I select all and right click and select Plugins>Calculate replay gain or Calculate Album gain every result fails. Please advise.

“Calculate album gain” is not an option in the ReplayGain 2.0 plugin. It sounds to me like you are using the original ReplayGain plugin. I recommend uninstalling that so you don’t confuse it with the new ReplayGain 2.0 plugin.

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.