]> pere.pagekite.me Git - homepage.git/blobdiff - blog/archive/2011/09/09.rss
Typo.
[homepage.git] / blog / archive / 2011 / 09 / 09.rss
index e144e11fa6d63f929428f38abbdd5074be2d3ed1..f359e1a84f13ac5dff63aec183fd80719f9b3450 100644 (file)
@@ -141,5 +141,66 @@ valgsystemet.</p>
 </description>
        </item>
        
+       <item>
+               <title>Ripping problematic DVDs using dvdbackup and genisoimage</title>
+               <link>http://people.skolelinux.org/pere/blog/Ripping_problematic_DVDs_using_dvdbackup_and_genisoimage.html</link>        
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Ripping_problematic_DVDs_using_dvdbackup_and_genisoimage.html</guid>
+                <pubDate>Sat, 17 Sep 2011 20:20:00 +0200</pubDate>
+               <description>&lt;p&gt;For convenience, I want to store copies of all my DVDs on my file
+server.  It allow me to save shelf space flat while still having my
+movie collection easily available.  It also make it possible to let
+the kids see their favourite DVDs without wearing the physical copies
+down.  I prefer to store the DVDs as ISOs to keep the DVD menu and
+subtitle options intact.  It also ensure that the entire film is one
+file on the disk.  As this is for personal use, the ripping is
+perfectly legal here in Norway.&lt;/p&gt;
+
+&lt;p&gt;Normally I rip the DVDs using dd like this:&lt;/p&gt;
+
+&lt;blockquote&gt;&lt;pre&gt;
+#!/bin/sh
+# apt-get install lsdvd
+title=$(lsdvd 2&gt;/dev/null|awk &#39;/Disc Title: / {print $3}&#39;)
+dd if=/dev/dvd of=/storage/dvds/$title.iso bs=1M
+&lt;/pre&gt;&lt;/blockquote&gt;
+
+&lt;p&gt;But some DVDs give a input/output error when I read it, and I have
+been looking for a better alternative.  I have no idea why this I/O
+error occur, but suspect my DVD drive, the Linux kernel driver or
+something fishy with the DVDs in question.  Or perhaps all three.&lt;/p&gt;
+
+&lt;p&gt;Anyway, I believe I found a solution today using dvdbackup and
+genisoimage.  This script gave me a working ISO for a problematic
+movie by first extracting the DVD file system and then re-packing it
+back as an ISO.
+
+&lt;blockquote&gt;&lt;pre&gt;
+#!/bin/sh
+# apt-get install lsdvd dvdbackup genisoimage
+set -e
+tmpdir=/storage/dvds/
+title=$(lsdvd 2&gt;/dev/null|awk &#39;/Disc Title: / {print $3}&#39;)
+dvdbackup -i /dev/dvd -M -o $tmpdir -n$title
+genisoimage -dvd-video -o $tmpdir/$title.iso $tmpdir/$title
+rm -rf $tmpdir/$title
+&lt;/pre&gt;&lt;/blockquote&gt;
+
+&lt;p&gt;Anyone know of a better way available in Debian/Squeeze?&lt;/p&gt;
+
+&lt;p&gt;Update 2011-09-18: I got a tip from Konstantin Khomoutov about the
+readom program from the wodim package.  It is specially written to
+read optical media, and is called like this: &lt;tt&gt;readom dev=/dev/dvd
+f=image.iso&lt;/tt&gt;.  It got 6 GB along with the problematic Cars DVD
+before it failed, and failed right away with a Timmy Time DVD.&lt;/p&gt;
+
+&lt;p&gt;Next, I got a tip from Bastian Blank about
+&lt;a href=&quot;http://bblank.thinkmo.de/blog/new-software-python-dvdvideo&quot;&gt;his
+program python-dvdvideo&lt;/a&gt;, which seem to be just what I am looking
+for.  Tested it with my problematic Timmy Time DVD, and it succeeded
+creating a ISO image.  The git source built and installed just fine in
+Squeeze, so I guess this will be my tool of choice in the future.&lt;/p&gt;
+</description>
+       </item>
+       
         </channel>
 </rss>