From: W. Trevor King Date: Fri, 23 Sep 2011 05:32:58 +0000 (-0400) Subject: Add FLAC ReplayGain decoding discussion to replay gain post. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d9b73f8953993a6fefc83549f0df65a6816e4d94;p=blog.git Add FLAC ReplayGain decoding discussion to replay gain post. --- diff --git a/posts/Replay_gain.mdwn b/posts/Replay_gain.mdwn index 61311c8..b067c9c 100644 --- a/posts/Replay_gain.mdwn +++ b/posts/Replay_gain.mdwn @@ -9,9 +9,32 @@ scripts for tagging FLAC files][post] (the heart of his scripts is replaygain "album" -to `/etc/mpd.conf` and restart `mpd`. Voilà! +to `/etc/mpd.conf` and restart [[mpd]]. Voilà! -[post]: http://www.bobulous.org.uk/misc/Replay-Gain-in-Linux.html +If you're not using `mpd`, modern versions of [flac][] come with an +undocumented `--apply-replaygain-which-is-not-lossless` option. It's +annoying that they haven't gotten around to documenting this option +(since 2004!), but the syntax itself is pretty simple (description +from [this post][syntax]): + + --apply-replaygain-which-is-not-lossless[=] + +where `` has the format: + + [][a|t][l|L][n{0|1|2|3}] + Floating point dB to add to the existing gain. + a|t Album (a) or track (t) gain. + l|L Peak-limit (l) or 6dB hard limiter (L) + n{0|1|2|3} Noise shaping from none (0) to strong (3) when + dithering back to integer amplitudes. + +The default is `0aLn1`. If you look in the `flac` source, this +documentation is in `doc/html/documentation_tools_flac.html` (where it +is commented out). + +[post]: http://www.bobulous.org.uk/misc/Replay-Gain-in-Linux.html +[flac]: http://flac.sourceforge.net/ +[syntax]: http://www.hydrogenaudio.org/forums/index.php?showtopic=17293&pid=171075&mode=threaded&start=#entry171075 [[!tag tags/linux]] [[!tag tags/fun]]