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: Who has the best replaygain calculations? (Read 2107 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Who has the best replaygain calculations?

It would be nice if replaygain calculations were similar for MPC,Vorbis and MP3. Sure, if you tweak MP3's globabl gain, the adjustment can't be so precise, but MPC and Vorbis replaygains should be similar. Obviously all use 89db as default.

I tested only few louder tracks with MPC and Vorbis replaygain (title gain), the difference wasn't very big, but audible: about 1dB. Vorbisgain reduced the loudness about 1dB more than MPC's replaygain.

MPC replaygain's source is here, don't know about vorbisgain source.
Hopefully the code which has the most accurate replaygain calculation would be used for all replaygain programs.
Juha Laaksonheimo

Who has the best replaygain calculations?

Reply #1
Quote
Originally posted by JohnV
It would be nice if replaygain calculations were similar for MPC,Vorbis and MP3. Sure, if you tweak MP3's globabl gain, the adjustment can't be so precise, but MPC and Vorbis replaygains should be similar. Obviously all use 89db as default.

I tested only few louder tracks with MPC and Vorbis replaygain (title gain), the difference wasn't very big, but audible: about 1dB. Vorbisgain reduced the loudness about 1dB more than MPC's replaygain.

MPC replaygain's source is here, don't know about vorbisgain source. 
Hopefully the code which has the most accurate replaygain calculation would be used for all replaygain programs.


The latest VorbisGain source is included with the daily vorbis files (from RareWares). It uses the same replaygain code as MP3Gain (and as specified at replaygain.org), so that part can be found here

MPC replaygain uses slightly different code. It calculates the RMS over shorter blocks, 10 ms rather than 50 ms, and to compensate for that, it "averages" the value over time. This would explain the difference.

But that doesn't answer the question which is better. AFAIK there are cases the "standard" replaygain code doesn't handle quite right, but I don't know if the MPC version is any different. However, you can easily make the MPC replaygain behave the same as VorbisGain. Just remove the "#define KLEMM" row in gain_analysis.c and recompile. Or change the "#define" to "#undef".