That is excellent. Something I've done many times myself and forgot to troubleshoot....
On Sep 20, 2011 7:17 AM, "Lorenzo Sutton" <
lsutton@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:[1][2]
>>
>> 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
>
> or
>
> 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 :)
> Lorenzo.
>
>>
>> Everything is fine but the final mp3 file[3] 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.
>>
>> Lorenzo
>>
>> [1] No I can't use better, non-evil formats this time
>> [2] No, I haven't the uncompressed source, so I can only use the mp3 as
>> input: life sucks.
>> [3] 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:
>>
http://lorenzosu.altervista.org/temp/dump/sin.mp3>> _______________________________________________
>> Linux-audio-user mailing list
>>
Linux-audio-user@lists.linuxaudio.org>>
http://lists.linuxaudio.org/listinfo/linux-audio-user
>>
>
> _______________________________________________
> Linux-audio-user mailing list
>
Linux-audio-user@lists.linuxaudio.org>
http://lists.linuxaudio.org/listinfo/linux-audio-user