Page 11 of 12

Re: ReplayGain

Posted: Mon Aug 19, 2019 11:20 am
by steve
AndroYD wrote:
Mon Aug 19, 2019 9:44 am
I need to apply ReplayGain to wave files that are minimum 4 hours long and maximum 33 hours long
I'd suggest that you play those tracks in a media player that supports ReplayGain meta-data tags (or "Sound Check" if you use iTunes).
The excellent audio player foobar 2000 (https://www.foobar2000.org/) supports ReplayGain tags, and can scan very long tracks and create the tags.

Nyquist is 32-bit, so it can't address more than 4GB of data.

Re: ReplayGain

Posted: Mon Aug 19, 2019 2:51 pm
by DJDemon
AndroYD wrote:
Mon Aug 19, 2019 9:44 am
… when applying the effect I see the progress bar filling up and everything seems to be working fine, but it will fail midway at some % point and not apply the effect at all,
I suggest to start with analyzing the track only. Next, apply the required gain change manually using the "Amplify" menu item. Does this work for you, as long as the tracks fits into Audacity at all?

Re: ReplayGain

Posted: Sat Feb 22, 2020 9:32 am
by ranila
Hi Steve,

it looks to me that ReplayGain doesn't work with tracks with sample rate of 32000Hz.
If I resample my track up to 44100Hz --> ReplayGain just works fine.

Regards Ralf

Re: ReplayGain

Posted: Sat Feb 22, 2020 12:40 pm
by steve
ranila wrote:
Sat Feb 22, 2020 9:32 am
it looks to me that ReplayGain doesn't work with tracks with sample rate of 32000Hz.
That's correct. The "Equal Loudness Curve" requires filtering up to nearly 20 kHz, which requires the sample rate to be at least double that.

Here's an updated version which throws an error if the sample rate is too low. I've set the limit to 44100, which is the first "standard" audio sample rate to support 20 kHz audio.
ReplayGain.ny
(3.12 KiB) Downloaded 2769 times

Re: ReplayGain

Posted: Sat Feb 22, 2020 4:15 pm
by ranila
Thanx for clarification Steve!

Regards Ralf

Re: ReplayGain

Posted: Thu Mar 12, 2020 12:49 pm
by Simon_W
Hi Steve,
Would it be possible to add the option for stereo tracks to do it for each channel independently?

Re: ReplayGain

Posted: Thu Mar 12, 2020 1:31 pm
by steve
Simon_W wrote:
Thu Mar 12, 2020 12:49 pm
Would it be possible to add the option for stereo tracks to do it for each channel independently?
What problem are you wanting to solve?

Re: ReplayGain

Posted: Thu Mar 12, 2020 7:54 pm
by Simon_W
Hi Steve, I recorded a concert and had to put the microphones too close to the grand piano (because the public was sitting rather close to the pianist in a small church). So now my Philip Glass recording is louder on the left channel than on the right channel (although recording levels were the same). I noticed in Audacity you can normalize a file and ask to treat each channel independently in a stereo file (setting). So I was wondering if this was usefull to implement in the Replaygain plugin as well.

Re: ReplayGain

Posted: Thu Mar 12, 2020 8:29 pm
by steve
Simon_W wrote:
Thu Mar 12, 2020 7:54 pm
So I was wondering if this was usefull to implement in the Replaygain plugin as well.
Not really. The Replay algorithm has a special way of handling stereo tracks so that it can estimate the overall loudness of both channels combined. If the channels are process separately, then the result does not match the stereo replay gain loudness.

For your particular case, I'd suggest Normalizing first (with "Normalize stereo channels independently" selected), and then use Replay Gain.

Re: ReplayGain

Posted: Thu Mar 12, 2020 9:31 pm
by Simon_W
OK Steve, thanks very much for the advice!