Help With Replaygain Plugin

Hi,
Trying to use the replaygain plugin but i’m getting this message evertime

Could not calculate album gain for

I have metaflac.exe in the plugins folder (not sure this is correct) and have let plugin setting to default with no luck.
Also tried the full path C:\Users\myuser\AppData\Local\MusicBrainz\Picard\plugins\metaflac but getting the same result.

What am I doing wrong?

1 Like

is it doing that for just one album or more then one? have you tried reinstalling the pug-in or closed and reopened picard after installing it?

thats all i can do to help for now as im hitting the sack and have work in the morning.

Tried reinstalling the plugin with restarts of picard and still no luck.
Yes does it for every album

start picard with -d and this is the output

D: 15:53:32,954 ui.mainwindow.set_statusbar_message:340: Calculating album gain for Test"…
E: 15:53:32,955 util.thread.run:56: Traceback (most recent call last):
File “picard\util\thread.py”, line 52, in run
File “C:\Users\myuser\AppData\Local\MusicBrainz\Picard\plugins\replaygain.zip\replaygain_init_.py”, line 120, in calculate_albumgain
calculate_replay_gain_for_files(files, format
, self.tagger)
File “C:\Users\myuser\AppData\Local\MusicBrainz\Picard\plugins\replaygain.zip\replaygain_init_.py”, line 43, in calculate_replay_gain_for_files
decode_filename(b’ '.join(file_list)))
TypeError: sequence item 0: expected a bytes-like object, str found

D: 15:53:32,959 ui.mainwindow.set_statusbar_message:340: Could not calculate album gain for “Test”.

Am i correct that the metaflac.exe (and mp3gain etc) must be in the plugin folder?

yes if you installed it from the settings menu it will be in the correct place if you did not give that a go and see if it helps.

it looks like it is a problem with the coding (im not a coder tho so i may be wrong) im just making sure your running the newest vershon and that everything is in the correct place (it looks like it is but im just being on the safe side). so if you did install it from there then you will have to wait and see if someone with more knolage of code can help you.

Thanks for the reply, plugins i always install that way to make sure they work, but replaygain won’t work

Tried it with flac files (metaflac.exe) with mp3’s (mp3gain.exe) and with ogg files (vorbisgain.exe) al give the same message

1 Like

On Linux, the tools simply need to be in the user’s PATH, maybe this is the same for Windows?

Apart from that, I’d set up a workflow where cleaning up and replaygaining files is done before dragging the files into Picard and saving them to their final destinations. Doing ReplayGain within Picard is still something to get used to (you’d have to do it after saving, if I remember correctly), and the tools used all use the older ReplayGain algorithm, not the newer (and better) ReplayGain v2.

Shameless plug: You might want to check out loudgain and its accompanying script rgbpm for replaygaining your files. Uses ReplayGain 2 (EBU R128) and supports much more filetypes. Plus, Picard natively supports all RG tags generated by loudgain.