The problem of SoX being unable to transcode to mp3 is one that is often raised on these forums, perhaps you would be interested in enabling full mp3 support? The following works under the 32 bit Lucid Lynx, it may work under the 64 bit version but I have not tested this. You will need to have the Universe Repository enabled as well as the 'Source Code' option.
First install some build tools:
Code:
sudo apt-get install build-essential fakeroot dpkg-dev devscripts
Next install the build dependencies for SoX as well as the new one of libmp3lame-dev:
Code:
sudo apt-get build-dep sox
sudo apt-get install libmp3lame-dev
Then pick up the source:
Code:
cd $HOME/Desktop && mkdir build && cd build
apt-get source sox
cd sox-14.3.0
Now remove the option that blocks mp3 encoding, add libmp3lame-dev to the build depends, remove the warning about mp3 writing, rebuild the packages, install them and finally clean the source:
Code:
sed -i 's/--without-lame //' debian/rules
sed -i 's/libmagic-dev, /libmagic-dev, libmp3lame-dev, /' debian/control
sed -i 's/Write support not available yet.//' debian/control
fakeroot debian/rules binary
sudo dpkg -i ../*.deb
fakeroot debian/rules clean
Now you can encode to mp3 with Sox .
Andrew
Bookmarks