LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   does sox convert .mp3 to .aiff audio file? (https://www.linuxquestions.org/questions/linux-software-2/does-sox-convert-mp3-to-aiff-audio-file-903002/)

ejames82 09-14-2011 10:24 AM

does sox convert .mp3 to .aiff audio file?
 
hello,

in all fairness, I am also posting this question on at least one other popular linux forum. I hope nobody takes offense.

I need to convert some music files from .mp3 to .aiff, but when I tried to use sox to do the conversion, I received the following message:

root@ed-desktop:/home/ed/audio cd2# sox *.mp3 *.aiff
sox FAIL formats: no handler for file extension `mp3'

Is there something that I am doing wrong? I have read that sox would do this conversion. Any help would be most appreciated. :)

David the H. 09-14-2011 11:50 AM

Run sox -h and look at the list of supported audio formats for your installation. Also read man soxformat.

Since mp3 is a patent-encumbered format, the default program packages of many distributions are often compiled without support for it. You may need to find another source for that program, or recompile it yourself.

Edit: It's also possible that you simply need to install the proper format plugin for it. On my system, support for it is provided by a separate libsox-fmt-mp3 package. It allows sox to use the external mad and lame libraries for reading/writing.

H_TeXMeX_H 09-14-2011 11:55 AM

You must compile sox with mp3 support enabled.

I have just tried converting it and it works for me, because I have mp3 support in sox.

EXIT: David the H. beat me to it.

ejames82 09-15-2011 08:06 PM

thanks for the replies, folks. here is some info that was provided to me by a nice person that just requires copying and pasting into the terminal. it worked. :)

http://ubuntuforums.org/showpost.php...75&postcount=8


All times are GMT -5. The time now is 10:08 AM.