PDA

View Full Version : FLAC support and ReplayGain



=?iso-8859-1?Q?Andr=E9_Laflamme?=
2005-01-03, 15:06
André Laflamme wrote:
> Hi,
>
> I've read that Squeeze Box support the file audio format FLAC (Free
Looless
> Audio Codec). Does the FLAC ReplayGain function is supported either?

Jason Holtzapple Wrote:

FLAC is not natively supported - however it can be decoded to WAV on the
server and played by the Squeezebox. During this process it is pretty
simple to apply replaygain to the WAV if you wish by changing one of
the server configuration files.
------------

Can you tell me wich configuration file and what to look for in the file?

Thanks Jason!

Andre

Jason Holtzapple
2005-01-03, 15:20
André Laflamme wrote:
> André Laflamme wrote:
>
>>Hi,
>>
>>I've read that Squeeze Box support the file audio format FLAC (Free
>
> Looless
>
>>Audio Codec). Does the FLAC ReplayGain function is supported either?
>
>
> Jason Holtzapple Wrote:
>
> FLAC is not natively supported - however it can be decoded to WAV on the
> server and played by the Squeezebox. During this process it is pretty
> simple to apply replaygain to the WAV if you wish by changing one of
> the server configuration files.
> ------------
>
> Can you tell me wich configuration file and what to look for in the file?

Look at convert.conf in the main server directory. Perhaps the simplest
way to add replaygain to flac playback is to create a slimserver-convert.conf
file in the same directory and add these entries:

flc wav * *
[flac] -dcs --force-raw-format --endian=little --sign=signed --apply-replaygain-which-is-not-lossless=a --skip=$START$ --until=$END$ $FILE$
flc mp3 * *
[flac] -dcs --apply-replaygain-which-is-not-lossless=a --skip=$START$ --until=$END$ $FILE$ | [lame] --resample 44100 --silent -q 9 -b $BITRATE$ - -

These entries will override the ones in convert.conf

I'm using album replaygain in this example, but you can edit the
command to use one of the other types of gain. Make sure you're
using FLAC 1.1.1.

Greg Stumph
2005-01-03, 22:41
I'm doing this with my FLAC files, and it works fine.

Something else to be aware of with FLACs and ReplayGain, that I learned
the hard way, is that you shouldn't add ID3 tags to your FLAC files.
I've been using EAC to rip my CDs to FLAC, and by default it adds ID3
tags as well as the normal FLAC vorbis tags.

It turns out that when you then use metaflac to add the ReplayGain tags,
if there are ID3 tags in the files metaflac will sometimes choke on a
file, and fail to write tags for a whole album. I ended up writing a
script to strip the ID3 tags from all my FLACs, then ran metaflac on the
ones with the missing ReplayGain tags, and now all is well...

Greg

Jason Holtzapple wrote:

> André Laflamme wrote:
>
>> André Laflamme wrote:
>>
>>> Hi,
>>>
>>> I've read that Squeeze Box support the file audio format FLAC (Free
>>
>>
>> Looless
>>
>>> Audio Codec). Does the FLAC ReplayGain function is supported either?
>>
>>
>>
>> Jason Holtzapple Wrote:
>>
>> FLAC is not natively supported - however it can be decoded to WAV on the
>> server and played by the Squeezebox. During this process it is pretty
>> simple to apply replaygain to the WAV if you wish by changing one of
>> the server configuration files.
>> ------------
>>
>> Can you tell me wich configuration file and what to look for in the file?
>
>
> Look at convert.conf in the main server directory. Perhaps the simplest
> way to add replaygain to flac playback is to create a
> slimserver-convert.conf
> file in the same directory and add these entries:
>
> flc wav * *
> [flac] -dcs --force-raw-format --endian=little --sign=signed
> --apply-replaygain-which-is-not-lossless=a --skip=$START$ --until=$END$
> $FILE$
> flc mp3 * *
> [flac] -dcs --apply-replaygain-which-is-not-lossless=a
> --skip=$START$ --until=$END$ $FILE$ | [lame] --resample 44100 --silent
> -q 9 -b $BITRATE$ - -
>
> These entries will override the ones in convert.conf
>
> I'm using album replaygain in this example, but you can edit the
> command to use one of the other types of gain. Make sure you're
> using FLAC 1.1.1.
>