How to convert .mp3 files to .wav files in Linux with mpg123


Please shareShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on RedditDigg thisShare on StumbleUponShare on VKBuffer this page

mpg123 is a real time MPEG 1.0/2.0/2.5 audio player/decoder for layers 1,2 and 3 (MPEG 1.0 layer 3 aka MP3 most commonly tested). Among others working with Linux, MacOSX, FreeBSD, SunOS4.1.3, Solaris 2.5, HPUX 9.x, SGI Irix and Cygwin or plain MS Windows.

We can say that is the fast console mpeg audio decoder/player, here are some things that go beyond simple decoding:

  • support for many platforms (many Unices, MacOSX, Windows) and audio subsystems

  • simple but powerful control mode for frontends (commands via STDIN)

  • realtime control of efficient equalizer (because built into decoder)

  • built-in terminal control keys

  • support for gapless playback of mp3 files (skipping encoder/decoder padding/junk)

  • many audio data settings: resampling, choose channel, mono, …

  • really efficient with a growing number of assembler optimizations (pentium, MMX, AltiVec, …)

  • support for Relative Volume Adjustment / ReplayGain

Installing mpg123 :

Mandriva :

mpg123 in included on the repositories of Mandriva 2009.1, you can install it using the command :

urpmi mpg123

Ubuntu :

Also is included on the repository ,use the command bellow to install it :

sudo apt-get install mpg123

Opensuse 11.1 :

Is included in Packman repository ,under root install it using the command :

zypper install mpg123

Fedora 10 :

For fedora 10 is not included, so you will have to download the rpm package of mpg123 from, and install it using the command :

rpm -ivh mpg123-release-number.rpm

NB : Here use the name of the latest realsease you downloaded

Using mpg123 :

Once mpg123 is installed, you will have to begin to convert your first files,so with the wav files located in a directory, change to that directory to run the command. The format of the command will be:

mpg123 -w file.wav file.mp3

The “-w” argument tells mpg123 that the output will be in the .wav format. The first file name is the output file name which is user configurable