Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ripping_dvds [2013/08/01 10:19]
beandog
ripping_dvds [2018/03/27 23:56] (current)
beandog [Extracting Image / Cloning DVD Filesystem / Ripping a DVD to an ISO]
Line 5: Line 5:
   * [[vobcopy]]   * [[vobcopy]]
  
 +**For the impatient:​** Read my notes on [[HandBrake]] if you're interested in ripping in the traditional format: ripping the content and encoding it to an MP4.
 ==== Contextual Notes ==== ==== Contextual Notes ====
  
Line 13: Line 14:
 ==== Filesystem ==== ==== Filesystem ====
  
-The file extension ​ISO has also become associated with a DVD rip, or really any image of any DVD or CD.  It's a misnomer, since for video DVDs, the filesystem format is UDF.  I'm not a fussbudget when it comes to using correct terminology,​ though, so I'm not going to beat it into everyone'​s head that they'​re doing things wrong. :)  I use the .iso extension exclusively. ​ The only reason for pointing out that the file format is UDF is that it is important when trying to mount an ISO.+The file extension ​''​.iso'' ​has also become associated with a DVD rip, or really any image of any DVD or CD.  It's a misnomer, since for video DVDs, the filesystem format is UDF.  I'm not a fussbudget when it comes to using correct terminology,​ though, so I'm not going to be anal about it. :)  I use the .iso extension exclusively. ​ The only reason for pointing out that the file format is UDF is that it is important when trying to mount an ISO.
  
 ==== Terminology ==== ==== Terminology ====
Line 25: Line 26:
 The best way to rip to an ISO is to copy the entire contents of the disc.  For that, I use dd with [[pv]] or [[ddrescue]]. The best way to rip to an ISO is to copy the entire contents of the disc.  For that, I use dd with [[pv]] or [[ddrescue]].
  
-There are other ways to copy the DVD, such as [[vobcopy]],​ but these programs are designed to rip parts of the DVD or to mirror the filesystem another way.+There are other ways to copy the DVD, such as [[vobcopy]],​ but these programs are designed to rip parts of the DVD or to mirror the filesystem another way.  ​Don'​t take that note as an implication of inferiority. ​ The tools are great, but in my circumstance,​ does not always achieve what I want to do. 
 + 
 +I mostly use [[ddrescue]] to rip a DVD. Here's a sample syntax: 
 + 
 +<​code>​ 
 +ddrescue -b 2048 -n /dev/dvd dvd.iso 
 +</​code>​ 
 + 
 +Simple as that. Once the ISO is ripped, you can access it just as you would a DVD drive: 
 + 
 +Examples: 
 + 
 +<​code>​ 
 +lsdvd dvd.iso 
 +mplayer dvd:// -dvd-drive dvd.iso 
 +HandBrakeCLI -i dvd.iso 
 +</​code>​ 
 + 
 +And so on ... 
 + 
 +It may be worth noting (or not) that because I rip the content this way, all of the CSS encryption is also intact. 
 + 
 +There are other ways to get the content. ​ Since everything in Linux is just a file, you can dump the content to a file easily enough using ''​cat'':​ 
 + 
 +<​code>​ 
 +cat /dev/dvd > dvd.iso 
 +</​code>​ 
 + 
 +I really, really, really don't recommend using ''​cat''​ since it's ugly. There are cleaner and safer ways to copy it. If you really don't want to install anything on your box, use ''​dd''​. I think even busybox ships with a copy of it. 
 +==== Mounting a DVD Image ==== 
 + 
 +For one reason or another, you may want to mount the image file directly. ​ This is where the focus on the proper filesystem comes into play.  You mount it as a UDF filesystem, not as an ISO 9660 filesystem (CDs). 
 + 
 +Mount a DVD image to ''/​mnt/​dvd'':​ 
 + 
 +<​code>​ 
 +mount -t udf -o ro dvd.iso /mnt/dvd 
 +</​code>​

Navigation