Google Plus

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

Written by Mel Kham on . Posted in Linux tutorials

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 http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/mpg123, 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

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

SK

|

I am working on it. Stay tuned. Thanks for the comment.

adriana rizzati

|

You are right, I saw them just now and they are awesome!

SK

|

Thanks for the comment Abdullah. Stay tuned with us always.

Abdullah Musazai

|

Thank you for such a great service you always do, hope you gain more power and more energy to work more & more

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .