Friday, March 13, 2009

How to convert .wav to .mp3 format in Ubuntu 8.04

Here is the steps to convert .wav to .mp3 format in Ubuntu 8.04.

1. Install shntool

In your terminal type

sudo apt-get install shntool

shntool - a multi-purpose WAVE data processing and reporting utility

2. Install lame

In your terminal type

sudo apt-get install lame

lame - create mp3 audio files

After the you installed the two, its time to check if it works.

In my case I copy the .wav files in my Desktop. The name is Track 1.wav that I will convert into goshel1.mp3. To convert these file into .mp3 format I typed in the following in my terminal.

lame -V2 Track\ 1.wav goshel1.mp3

then I hit enter.

The following will appear. These means that it works.

yotz@yotz:~/Desktop$ lame -V2 Track\ 1.wav goshel1.mp3
LAME 3.97 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE, SSE2
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding Track 1.wav to goshel1.mp3
Encoding as 44.1 kHz VBR(q=2) j-stereo MPEG-1 Layer III (ca. 7.3x) qval=3
Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
10976/10976 (100%)| 0:38/ 0:38| 0:43/ 0:43| 7.5235x| 0:00
32 [ 144] %**
40 [ 1] %
48 [ 1] *
56 [ 0]
64 [ 1] %
80 [ 1] *
96 [ 100] %*
112 [ 883] %**************
128 [ 2197] %************************************
160 [ 3987] %%%%%%%%%*************************************************
192 [ 3328] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%***********************
224 [ 302] %%****
256 [ 26] %
320 [ 5] %
-------------------------------------------------------------------------------
kbps LR MS % long switch short %
159.2 21.3 78.7 97.9 1.2 0.9
Writing LAME Tag...done
ReplayGain: -5.7dB
yotz@yotz:~/Desktop$

Then it is finished.
To check type ls, you'll see these.

yotz@yotz:~/Desktop$ ls
Track 1.wav
goshel1.mp3

To know more about shntool and lame just type the following in terminal.
man shntool
man lame

No comments: