Package: slimserver
Version: 6.2.1-2

I found that slimserver didn't correctly convert Ogg Vorbis files to
mp3 for streaming.  I just heard noise.

Here's the relevant excerpt from /usr/share/slimserver/convert.conf:

ogg mp3 * *
        [sox] -t ogg $FILE$ -t raw -r 44100 -c 2 -w -s $-x$ - | [lame]
--resample 44100 --silent -q $QUALITY$ --abr $BITRATE$ -r - -

Simply changing "$-x$" to "-x" fixed the problem for me.  Here's the
description of the -x option from sox's man page:

"The sample data is in XINU format; that is, it comes from a machine
with the opposite word order than yours and must be swapped according
to the word-size given above. Only 16-bit and 32-bit integer data may
be swapped. Machine-format floating-point data is not portable."

I'm not sure what the current syntax is supposed to do -- maybe make
the use of -x conditional? -- but my experience was that it didn't
work correctly.

I'm not sure where the problem lies exactly.  If it's an upstream
limitation and the user is supposed to set this himself, perhaps it
could be pointed out (or done automatically) in the package
configuration?  Or maybe it's a dependency issue (I'm using sox
12.17.9-1)?

Note: my system is actually running Ubuntu Breezy, but slimserver and
several relevant dependencies (including sox) were of course grabbed
from Sid.

Reply via email to