Linux : Convert Real Media Files to mp3/ogg

The first thing you want to do when converting audio files is to convert them into .wav files. Mplayer can dump almost anything that it plays (and it can play almost anything) to raw .wav format.


mplayer -quiet -vo null -vc dummy -ao:pcmheader:file=".wav file" "inputfile"

To mp3 :

Lame is a command-line tool which can convert .wav to .mp3

lame input.wav output.mp3

To ogg :

oggnec input.wav

That's it!!! No need to search over net for free tools. No patch, registration key blah blah ... Yo LINUX !!!

1 comments:

Sascha (visit their site)

Hi Natthu,

just want to correct two typos:

mplayer -quiet -vo null -vc dummy -ao pcm:file=".wav file" "inputfile"

(There was one colon to many and the driver is just called 'pcm').

oggenc input.wav

(instead of 'oggnec' ;-) )


Cheers and thanks for this entry :-)