mp3 for SOX

Peter Garrett peter.garrett at optusnet.com.au
Sat Dec 10 05:39:23 UTC 2005


On Fri, 09 Dec 2005 15:28:34 -0400
Douglas Alves <alves5 at cantv.net> wrote:

> How can one add mp3 encoding capability to sox?

You might try using "lame" instead. Evidently sox doesn't support mp3
encoding. In the simplest case you can just do

lame file.wav file.mp3

This by default gives you a 128 kbps mp3

If you want to convert , say, .ogg to mp3 you can do it by first using sox
to convert the .ogg to .wav . Of course converting one compressed format
to another is guaranteed to lose quality, but it appears to work (just
tried it as an experiment) I imagine the two operations could be piped ,
although I haven't tried that.

The lame package is in multiverse.

Peter
-- 

Linux User #343161 




More information about the ubuntu-users mailing list