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

Right tool for the job ...

I've tried doing a blog for a long time. Fits and starts abound, but at the core I was always futzing with the 'engine' ... phpNuke, Wordpress, home grown, whatever. So I finally got around to just using a blog engine .. this one!

Goes along with bringing myself into this decade ... opened a facebook account, linkedin, twitter ... it remains if I actually can/will continue using them, but I must say that at least with respect to the sites mentioned above, I like the 'social' aspects a whole lot more than I thought I would ... I certainly knew of those sites for a while, what they did ... just thought it was a gimmick, not something useful.

Guess old dogs can learn new tricks!