LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-14-2011, 10:24 AM   #1
ejames82
Member
 
Registered: Jun 2009
Posts: 110

Rep: Reputation: 15
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.
 
Old 09-14-2011, 11:50 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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.

Last edited by David the H.; 09-14-2011 at 11:59 AM. Reason: addendum
 
Old 09-14-2011, 11:55 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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.
 
Old 09-15-2011, 08:06 PM   #4
ejames82
Member
 
Registered: Jun 2009
Posts: 110

Original Poster
Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to playback/convert raw sound with sox captured with alsa 'write file' donnied Linux - General 0 04-16-2009 07:14 AM
How do I convert VCD's audio into MP3? mmarkvillanueva Linux - Software 1 11-28-2005 12:25 PM
mp3 to aiff and/or wav hakmed Linux - Software 1 04-26-2005 02:58 PM
clean up and convert wav 2 mp3 with sox dibblethewrecke Linux - Software 1 12-04-2004 08:52 AM
Convert mp3 >>>cd audio sog777 Linux - Software 2 11-22-2004 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration