[MPlayer-users] extract audio

The Wanderer inverseparadox at comcast.net
Sun Dec 28 18:38:42 CET 2003


Guldo K wrote:

> How can audio be extract from a video file? I'd like to get an mp3
> out of an avi, but, although I read the documentation, I couldn't
> understand how this can be achieved.

The canonical method is

mplayer filename.avi -dumpaudio -dumpfile filename.audio

but I've sometimes had problems getting that to produce a valid,
MPlayer-playable file.


If it doesn't work for you, and you're willing to lose some audio
quality, you can try

mplayer -ao pcm -vo null -vc dummy

and encode the resulting WAV file with your audio encoder of choice.
This results in lower audio quality than was present in the original
AVI, but it's nearly foolproof in getting *some* version of the audio
into a separate form.

-- 
       The Wanderer

A government exists to serve its citizens, not to control them.




More information about the MPlayer-users mailing list