Hello so here is the deal, I used:
$ yum install sox
To install it in CentOS 6. After that I did a quick test:
$ sox test.mp3 test.amr
and this is what it returns:
$ sox formats: no handler for file extension `mp3'
I need this done with sox
not lame
because I will need to use it for mixing and other functions not available with lame
.
Best Answer
The vanilla version of
sox
on CentOS doesn't support themp3
codec. Here's a list of what it does support.You can download the source RPM of
sox
and recompile withlibmad
andlame-devel
libraries installed to add support for this feature.This tutorial should help, titled: INSTALLING SOX W/ MP3 SUPPORT ON CENTOS 5.X, though it's for CentOS 5.x it should still apply. There are also steps in the comments of that post for compiling
sox
withmp3
support on CentOS 6.x.Steps
From the comments.
The one-stop solution for CentOS 6.4 without mad or libid3tag (YMMV):
Repo #1 - RPM Fusion
To be able to install
lame
you'll need to add an additional YUM Repo to your mix. The repo that containslame
is called RPM Fusion. At the time that I'm writing this the latest version of the RPM that will install the RPM Fusion repo is at: rpmfusion-nonfree-release-6-1.noarch. To install it:NOTE: You may need an RPM signing keys, specifically this one for EL6.
Repo #2 - EPEL
Installing the RPM Fusion repo requires another YUM repo called EPEL - Extra Packages for Enterprise Linux. You'll need to install this RPM as well, priror to installing RPM Fusion's RPM.
NOTE: The version number on this repo changes from time to time so it's best to check what the lastest one is. Currently at the time of this post the latest version was 6.8. You can see these numbers in the package name above, "epel-release-6-8.noarch.rpm".
References