PDA

View Full Version : Dying for Replaygain (aka Volume Normalization)



street_samurai
2005-04-24, 04:09
(before you point it out, I'm fully aware that Normalization is different than Replaygain but to many users they are the same thing)

<cheerleading>

I just wanted to write a brief post to say how much I'm missing Replaygain support in Slimserver. I've seen the bug reports/enhancement requestes and I've voted on them... I'm not sure what priority this feature has right now... but I write this to help bolster support for including this feature soon.

I love my Squeezebox/Slimserver combo. I can't get enough and my friends all want one too... the only annoyance I have is that I need to constantly have the remote around to adjust the volume of tracks when I'm playing multiple albums on random.

What is ReplayGain? It makes your music come out of your stereo at (what you perceive to be) the same volume... without actually changing your music (see http://www.replaygain.org/ for more info). To add replaygain to your .flac files and .mp3 try http://mp3gain.sourceforge.net/.

Please vote on the following bugs if you feel that this feature is desirable to you:
http://bugs.slimdevices.com/show_bug.cgi?id=80
http://bugs.slimdevices.com/show_bug.cgi?id=1311

</cheerleading>

=)

ss.

p.s. I've also read this post (http://forums.slimdevices.com/showthread.php?t=13677&highlight=replaygain) on using madplay to add replaygain support... but I'd really like to see a nice simple slimserver solution. I only wish my coding skills were better!

Jeff Coffler
2005-04-24, 05:56
From: "street_samurai" <street_samurai.1nzpen (AT) no-mx (DOT) forums.slimdevices.com>

> I just wanted to write a brief post to say how much I'm missing
> Replaygain support in Slimserver. I've seen the bug reports/enhancement
> requestes and I've voted on them... I'm not sure what priority this
> feature has right now... but I write this to help bolster support for
> including this feature soon.

I opened bug report 1311. I fully understand what replay gain is.

I just wanted to point out that replay gain support *IS* available today
with the SlimServer, and I'm using it today.

Bug 1311 calls for the FLAC decoder in the Squeezebox2 to natively interpret
replay gain tags. Without this, even though the SB2 understands FLAC files,
you must transcode to the SB2 if you want/need replay gain. The reason: The
FLAC decoder on my O/S understands replay gain, but the hardware decoder in
the SB2 does not. So, in the end, I still have replay gain. I just can't
use the native FLAC decoder on the SB2 - I must transcode.

For MP3GAIN (at least the old MP3GAIN I used to use when I still used MP3):
This actually modifies the sound volume in the MP3 source file. It looks
like it now adds some tags to more easily undo what it has done. But if
this is the same program: If you run MP3GAIN over your MP3 files, since the
volume in the MP3 file has changed, the Slimserver will behave the way you
want.

End result: You can get replay gain support in FLAC today and MP3. For MP3,
just run MP3GAIN, set it up for either album or song mode normalization, and
you're set. For FLAC, customize the conversion file to include
the --apply-replaygain-which-is-not-lossless=a qualifier, and you're set.

Hope this clarifies,

-- Jeff

Jim
2005-04-24, 11:19
I have to agree that the SlimServer support of ReplayGain is a bit err...crappy.

I mean, yes I have modded config files before and got it working, but the idea of ReplayGain is that it is switchable.

e.g. I want to have a party or listen to random music I'd put my Slim in ReplayGain Radio mode. I want to really listen to a album I turn off all ReplayGain etc....

Having to mod/copy config files every time and reboot the server is quite frankly a pain in the behind so I gave up with it.

Now I don't know Perl but surely something like this could be implemented:

In the config file couldn't the following sort of change be made:

[flac] -dcs --force-raw-format --endian=little --sign=signed --skip=$START$ --until=$END$ $REPLAYGAINPARAM$ -- $FILE$

Then the $REPLAYGAINPARAM$ variable is populated with either:

"" (null) - Default, no replaygain.
"--apply-replaygain-which-is-not-lossless=a" - Album mode
"--apply-replaygain-which-is-not-lossless=t" - Radio mode

The $REPLAYGAINPARAM$ variable gets populated with one of these 3 strings by a switch on the web interface and ideally from the box via the remote.

A bit of a hack I know, but a better solution than the current one methinks.

street_samurai
2005-04-24, 14:42
Right... I guess I should point out that I had a variety of goals by posting this message: 1) raise awareness about this feature, 2) Compile information on the feature that I had found in various other posts, 3) Explain how existing solutions worked and 4) cheerlead for native support of this feature.

Thanks for pointing out that this is already possible if you modify the way slimserver transcodes flacs. How to do this is explained here: http://lists.slimdevices.com/archives/discuss/2004-June/031443.html I haven't had time to test my setup to see if this works but I assume it does.

As Jim pointed out, I think this could be handled better on the SlimServer side and native support for it would be absolutely great.

ss.

gorman
2005-04-24, 15:05
I'm all for it. So much so that I managed to arrange a temporary, partial solution for replaygain through madplay for mp3. You can find it here:

http://forums.slimdevices.com/showthread.php?t=13287

Jim
2005-04-24, 17:56
I'm all for it. So much so that I managed to arrange a temporary, partial solution for replaygain through madplay for mp3. You can find it here:

http://forums.slimdevices.com/showthread.php?t=13287

Sounds nice if it fits your needs, but me being a FLAC-only snob I am mainly interested in a FLAC solution. As far as I see MP3 files may as well be amplified themselves (as in the MP3Gain utility), whereas FLAC needs a lossless approach.