Friday, September 30, 2011

Back-up DVDs from a MacOS command line

How to backup DVDs (this approach will not overcome copy protection--because of the ripping process).

Prereq:

Install dvdbackup from http://dvdbackup.sourceforge.net. Note that this requires libraries (i) libdvdread and (possibly, ii) libdvdcss. Download and install the libraries, then dvdbackup (all are ./configure,make,sudo make install). Additional note: I installed libdvdread via mac ports, but dvdbackup failed to configure because it required a different version. I then downloaded and installed version 0.9.7 separately, then ./configure worked (I also downloaded and installed libdvdcss--not sure if that matters.)

To backup a DVD:

  1.  dvdbackup -v -i /dev/disk1 -n NAME -M 
    where /dev/disk1 should be replaced with the device currently associated with the inserted disc, and NAME is whatever name you want to assign to the project. It turns out, the -n option is necessary. Without more options, dvdbackup creates a similarly-named directory and writes the files there (the -v option is just for verbosity--use dvdbackup --help)
  2.  hdiutil makehybrid -udf -o NAME.iso path-to-FOLDER 
    where NAME is again up to you, but path-to-FOLDER must contain the VIDEO_TS directory created by dvdbackup (it must not be the VIDEO_TS directory itself). Typically, this will be the directory created by dvdbackup.
  3. Burn the image with
     hdiutil burn NAME.iso 
    This, apparently, finds your DVD device, writes and ejects it.
Good luck.

Followers