PDA

View Full Version : ape, lame, and static



Michael Peters
2005-03-24, 07:07
fc4 on x86

using the linux port of mac

squeezebox produces static.
When I remove the -x from the lame switch, it behaves.

I don't know much about ape's format - but the man page for lame says
if you get static, try adding the -x switch.

Is this an OS platform difference - cpu dependent - or is it file dependent?
If file specific, would passing the output of mac through sox for the
resample and then to lame fix it?

I'm guessing it's OS thing, but ...

--
http://mpeters.us/

kdf
2005-03-24, 16:18
Quoting Michael Peters <funkyres (AT) gmail (DOT) com>:

> fc4 on x86
>
> using the linux port of mac
>
> squeezebox produces static.
> When I remove the -x from the lame switch, it behaves.
>
> I don't know much about ape's format - but the man page for lame says
> if you get static, try adding the -x switch.
>
> Is this an OS platform difference - cpu dependent - or is it file dependent?
> If file specific, would passing the output of mac through sox for the
> resample and then to lame fix it?
>
> I'm guessing it's OS thing, but ...
>
-x is a byte swap performed by LAME. The server has this in teh convert.conf as
[-x] and the server substitutes it in if needed. Exactly what criteria the
server is using is the part I don't know. I think Dean put that part in, so
I'd have to leave that part to him for an answer.

-kdf

vidurapparao
2005-03-24, 16:32
kdf wrote:

>Quoting Michael Peters <funkyres (AT) gmail (DOT) com>:
>
>
>
>>fc4 on x86
>>
>>using the linux port of mac
>>
>>squeezebox produces static.
>>When I remove the -x from the lame switch, it behaves.
>>
>>I don't know much about ape's format - but the man page for lame says
>>if you get static, try adding the -x switch.
>>
>>Is this an OS platform difference - cpu dependent - or is it file dependent?
>>If file specific, would passing the output of mac through sox for the
>>resample and then to lame fix it?
>>
>>I'm guessing it's OS thing, but ...
>>
>>
>>
>-x is a byte swap performed by LAME. The server has this in teh convert.conf as
>[-x] and the server substitutes it in if needed. Exactly what criteria the
>server is using is the part I don't know. I think Dean put that part in, so
>I'd have to leave that part to him for an answer.
>
>
>
The $-x$ substitution parameter is the empty string on a big endian
architecture and -x on a little endian architecture. It's sometimes used
for transcoding tools that output different endian samples depending on
the native endianness. I believe LAME expects big endian samples for raw
input, so a -x is necessary if it's fed little endian samples.

If mac always returns big endian samples, the -x is not necessary. If it
returns samples based on the native endianness, $-x$ should be used. I'm
not familiar with mac - doesn anybody else have information?

--Vidur