Thursday, October 9, 2008

DVD Audio to MP3

So it seems in looking at my last attempt at blogging that the only post I really wanted to save was this one ... how to rip a DVD soundtrack to MP3 ... here it is:

I’d wondered how to do this for a while. I have a bunch of concert DVDs that I wanted to listen to while traveling or in the car, but how get the audio wasn’t self evident. I finally got around to spending some quality time with google to find the answer, so I document it here both for my own future recollection and in case the google gods send you to this page first :)

In essence you create a fifo pipe and then use mplayer to send the sound in raw pcm to the pipe while using a null video codec … that looks like this:

mkfifo soundpipe

lame -b 128 soundpipe your_new.mp3 &

mplayer -quiet -ao pcm -aofile soundpipe -vo null -vc dummy -aid 128 dvd://2

First command makes the pipe, second starts the lame encoder and the third starts playback. Works great! Only small hiccup I had was that newer versions of mplayer wanted the options in the form of -ao pcm:file=soundpipe depracating the -aofile.

I found this basic technique in 2 places:

http://gigo.com/archives/Blog/dvd_to_mp3_and_ipod.html
http://www.perturb.org/content/dvd2mp3-2.html

No comments: