How to rip the audio from a DVD with Ubuntu Linux
STEP 1: Extract the audio from the DVD
In a terminal enter:
mplayer -vo null -ao pcm:file=title.ogg DVD://02
title is the filename you want
DVD://02 is the number of the chapter you want to extract
It’ll give a big file (about 2GB depending of the length), so we have to compress it
STEP 2: Convert in WAV
The only way I found to convert the ogg file in MP3, is firts converting it in WAV
We will need the software “sox”
sudo apt-get install sox
and then
sox title.ogg title.wav
We still have a big file, so now we will convert it in MP3
STEP 3: Convert in MP3
We will need “lame”
sudo apt-get install lame
and then
lame title.wav title.mp3
Linux is so easy!!!
STEP 4: And then???
It will have been better to put it in OGG or FLAC, but sadly not every MP3 player plays both of them ![]()














June 19th, 2007 22:41
Cool blog. Thanks for the info. When you say “audio DVD” do you mean DVD-Audio or just the audio portion of a regular video DVD? Since many people haven’t heard of the DVD-Audio format, it’s important to make that distinction.
Also, don’t forget to suggest FLAC audio files to your readers, as an alternative to ogg vorbis & mp3. Like ogg vorbis, FLAC is libre, & much higher sound quality than ogg vorbis & mp3. Since the audio portion of DVDs (both DVD & DVD-Audio) is quite good, it’s better to keep most of that quality by converting to FLAC.
Cheers
June 20th, 2007 07:55
Thanks for the feedback.
I’m talking about the audio portion of a regular DVD, I’ll change it, you’re right it’s not clear.
I already heard about the FLAC, but never used it. I’ll complete my blog with OGG and FLAC.
Thanks for the info
July 30th, 2007 06:54
This is exactly what I expected to find out after reading the title Le Ludo Blog. Thanks for informative article
December 3rd, 2008 16:52
In step one, I’m about 95% sure this is going to give you a wav file no matter what you name it, that is why it is soo big. Also, mplayer tells me that this is faster:
mplayer -vc null -vo null -ao pcm:fast -ao pcm:file=NewFile.wav dvd://02
I also had to change DVD to dvd to make it work with my system. Just a few thoughts. Other than that, Thanks for the info!!!
Shane