I always found ripping dvds to be a huge pain, because of how complex the process is. There is a million ways to convert a dvd into avi format, a myriad of settings to play with, options to tune for performance, for size etc. That's great if you want to tinker. But it's much more difficult to give a straight answer to the question "how do I rip a dvd?" without going into all these details. I for one would like a simple way that would work on any dvd everytime.
So that's what I set out to do. It took me *a lot* of testing and playing with the settings to find a recipe that both gives great quality and doesn't take too long. And still there may be, and probably will be, cases where the results aren't great. But for my own use, it works very well. My main goal was to hide as many details as possible from the user, turning the complicated maze that is
mencoder into a single button to push. As it turns out, however, it's really hard to abstract away everything completely, so even with
undvd there is a (hopefully modest) learning curve.
undvd is a collection of a couple bash scripts, which I decided to base on
mencoder, part of
mplayer. In doing so, I wanted to use the disc as little as possible, considering all the problems I've had with reading dvds in the past. I also found out that by extracting the vob, some of the information about audio/subtitles is lost, so I first clone the disc with
dd, and then go to work on it. The script starts off by making an image of the disc, whereupon the disc is no longer needed.
First, to see what's on the disc, run
At this point, you have to decide on which title(s) to rip. If you don't know what they are,
scandvd.sh suggests using mplayer to find out. Once you know what to rip, you run
undvd.sh with the chosen options. Just keep in mind that the files will be created in the directory you run
undvd.sh from, so make sure you have enough disk space.
What is worth noting here is everything that you don't see.
mencoder is run in the background, with a host of complicated settings, but you don't see the horrifying output. You only see the status of what is happening, the settings you chose, and
mencoder's estimated time to completion. Sure, the full log is there if you want it, just say the word. But unless something goes wrong, you don't need to see it, this will do just fine.
After ripping is finished, what you'll have is the files shown.
02.avi are the titles.
disc.iso is the image of the dvd, which you can use to rip more titles still, or just delete. And then there's
logs that you won't bother even looking at unless something went haywire.
And that is dvd ripping reduced to one line of output for every title. Simple, isn't it?
Get undvd from opendesktop.org.
A technical note
Make sure you have
mplayer installed (with support for