[LAU] [SOLVED] Annoying click in sox + lame pipe
eric.steinberg at gmail.com
Tue Sep 20 14:33:12 UTC 2011
That is excellent. Something I've done many times myself and forgot to
On Sep 20, 2011 7:17 AM, "Lorenzo Sutton" <lsutton at libero.it> wrote:
> Well... Sorry to answer my self. I was in such a hurry I wasn't paying
> enough attention to the various switches:
> On 20/09/2011 15:29, Lorenzo Sutton wrote:
>> I have a sox + lame pipe of this kind:
>> sox sin.mp3 -t wav - trim 10 20 fade t 2 10 2 | lame - -r out.mp3
> Indeed the -t wav in sox will produce a wave file, and thus with a
> header, while -r in lame expects raw. So change -t wav to -t raw or
> remove the -r in lame solves the problem:
> sox sin.mp3 -t wav - trim 10 20 fade t 2 10 2 | lame - out.mp3
> sox sin.mp3 -t raw - trim 10 20 fade t 2 10 2 | lame - -r out.mp3
> So "the click is the header"...
> Sorry again for posting in a rush :)
>> Everything is fine but the final mp3 file always has an annoying
>> click at the beginning. This has somewhat to do with the pipe as it
>> doesn't happen if I create a wave file from sox. Nor does it happen if I
>> use sox only:
>> sox sin.mp3 out2.mp3 trim 10 15 fade t 2 10 2
>> Yet the latter needs sox compiled with mp3 support, which is less
>> portable than the above.
>> I'm not sure how to look into this so any suggestion is welcome.
>>  No I can't use better, non-evil formats this time
>>  No, I haven't the uncompressed source, so I can only use the mp3 as
>> input: life sucks.
>>  Here: BUT ATTENTION!! There is a click at the beginning so turn
>> volume right down: http://lorenzosu.altervista.org/temp/dump/out.mp3 The
>> source file here:
>> Linux-audio-user mailing list
>> Linux-audio-user at lists.linuxaudio.org
> Linux-audio-user mailing list
> Linux-audio-user at lists.linuxaudio.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Linux-audio-user