MinimServer Forum
ReplayGain - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: ReplayGain (/showthread.php?tid=1365)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


RE: ReplayGain - simoncn - 22-01-2018 21:39

I have discovered that it is possible to apply replay gain during transcoding without any change to MinimServer or MinimStreamer. You need to do the following:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1) Convert your WAV files to FLAC with replay gain tags added but without changing the audio data (non-destructive)

2) Install MinimStreamer if you don't have this already

3) In the stream.transcode property, add:

flac:wav;

exactly as shown, including the semicolon

4) In the stream.options property, add: convOut=-af volume=replaygain=track
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

This will play your files with the calculated track reply gain applied.

If you want to increase the bit depth from 16 to 24 before applying replay gain, do the following instead of steps 3 and 4:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3a) In the stream.transcode property, add:

flac:wav24;

exactly as shown

4a) In the stream.options property, add: convOut=-af volume=replaygain=track
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Edit: removed -f s24le setting from convOut because the wav24 setting does the same thing.


RE: ReplayGain - timster - 22-01-2018 21:58

That sounds fantastic Simon, I'll give it a go tomorrow. One thing - mine are set to album gain. Is it a simple case of changing the above to replaygain=album?


RE: ReplayGain - simoncn - 22-01-2018 22:33

Yes, that should work.


RE: ReplayGain - timster - 23-01-2018 10:43

Perfect Smile Absolutely brilliant, thank you!


RE: ReplayGain - timster - 23-01-2018 13:10

Simon, I have applied the ReplayGain with 24bit as per 3a and 4a above and it works like a charm. I also have a few mp3 and m4a albums which I was previously transcoding to wav. If I want the gain to be applied to these also, do they need to be passed through the converter as well?
Currently my stream.transcode is:
mp4:wav24, mp3:wav24, flac:wav24;
If I try using semicolons instead of commas, Watch complains. Or does the semicolon at the end pass everything through the converter?


RE: ReplayGain - simoncn - 23-01-2018 13:57

Your current setting is correct and will pass mp4 and mp3 through the external converter. The semicolon is needed for flac:wav or flac:wav24 because the default for FLAC to WAV transcoding is to use MinimStreamer's internal converter if the sample rate isn't changing. For other source types, transcoding always uses the external converter.


RE: ReplayGain - timster - 23-01-2018 14:29

I see, thanks for clarifying.


RE: ReplayGain - ClausDK - 23-01-2018 23:06

Thanks Simon, sounds like it could be exactly what I’m looking for !

Too busy to try it out for the next few days, but will do pretty soon, before I do any more converting with replay gain reducing the music content.

Claus


RE: ReplayGain - ClausDK - 24-01-2018 08:48

Just couldn't help trying this, so got up earlier than usual this morning! Btw, I'm going for 3a and 4a.

But when trying to applying the settings in the properties, I get this error code:
convOut setting requires a converter

From the manual I noticed that I need a stream converter program if the property ends with a ";". Is it possible to drop the ; and have this fix without adding such say ffmpeg ?

And if I install ffmpeg (how to do this is very well described, thanks!), then will all converting be done by this instead of the internal minimstream converter which I have used until now ?

Claus


RE: ReplayGain - Wickie8166 - 24-01-2018 08:51

Thanks Simon,

setting up minim server works for me. My DAC shows the correct conversion
(WAV 44Khz/24Bit).

What I do not understand fully is how to set the replay gain tag.
I already have all my CDs ripped and saved as Flac. Where do I have to put this tag?

Thanks, Frank