1 I've been using [abcde][] to rip our audio CD collection onto our
2 fileserver for a few years now. Then I can play songs from across the
3 collection using [[MPD]] without having to dig the original CDs out of
4 the closet. I just picked up a large external hard drive and thought
5 it might be time to take a look at ripping our DVD collection as well.
7 There is an excellent [Quick-n-Dirty Guide][qnd] that goes into more
8 detail on all of this, but here's an executive summary.
10 Make sure you're kernel understands the [UDF file system][udf]:
12 $ grep CONFIG_UDF_FS /usr/src/linux/.congfig
14 If your kernel was compiled with `CONFIG_IKCONFIG_PROC` enabled, you
17 $ zcat /proc/config.gz | grep CONFIG_UDF_FS
19 instead, to make sure you're checking the configuration of the
20 currently running kernel. If the `udf` driver was compiled as a
21 module, make sure it's loaded.
25 Mount your DVD somewhere:
27 $ sudo mount /dev/dvd /mnt/dvd
29 Now you're ready to rip. You've got two options: you can copy the
30 VOBs over directly, or rip the DVD into an alternative container
31 format such as [Matroska][].
36 Mirror the disc with [vobcopy][] (`media-video/vobcopy` on [[Gentoo]]):
38 $ vobcopy -m -t "Awesome_Movie" -v -i /mnt/dvd -o ~/movies/
40 Play with [Mplayer][] (`media-video/mplayer` on [[Gentoo]]):
42 $ mplayer -nosub -fs -dvd-device ~/movies/Awesome_Movie dvd://1
44 where `-nosub` and `-fs` are optional.
49 Remux the disc (without reencoding) with `mkvmerge` (from
50 [MKVToolNix][], `media-video/mkvtoolnix` on [[Gentoo]]):
52 $ mkvmerge -o ~/movies/Awesome_Movie.mkv /mnt/dvd/VIDEO_TS/VTS_01_1.VOB
53 (Processing the following files as well: "VTS_01_2.VOB", "VTS_01_3.VOB", "VTS_01_4.VOB", "VTS_01_5.VOB")
55 Then you can do all the usual tricks. Here's an example of extracting
56 a slice of the Matroska file as silent video in an AVI container with
57 `mencoder` (from [Mplayer][], `media-video/mplayer` on [[Gentoo]]):
59 $ mencoder -ss 00:29:20.3 -endpos 00:00:21.6 Awesome_Movie.mkv -nosound -of avi -ovc copy -o silent-clip.avi
61 Here's an example of extracting a slice of the Matroska file as audio
64 $ mencoder -ss 51.1 -endpos 160.9 Awesome_Movie.mkv -of rawaudio -ovc copy -oac copy -o audio-clip.ac3
66 You can also take a look through the [Gentoo wiki][gentoo] and [this
67 Ubuntu thread][ubuntu] for more ideas.
70 [abcde]: http://code.google.com/p/abcde/
71 [qnd]: http://www.scottro.net/qnd/qnd-dvd-backup.html
72 [UDF]: http://en.wikipedia.org/wiki/Universal_Disk_Format
73 [Matroska]: http://www.matroska.org/
74 [vobcopy]: http://lpn.rnbhq.org/
75 [MKVToolNix]: http://www.bunkus.org/videotools/mkvtoolnix
76 [Mplayer]: http://www.mplayerhq.hu/
77 [gentoo]: http://en.gentoo-wiki.com/wiki/Ripping_DVD_to_Matroska_and_H.264
78 [ubuntu]: http://ubuntuforums.org/showthread.php?s=e45e01b671c1dd08351876fda432f04a&t=1400598&page=2