[mythtv-users] Import DVD

Scott list-mythtv at bluecamel.eml.cc
Fri Apr 6 11:56:52 UTC 2007


On Apr 6, 2007, at 5:49 AM, William Munson wrote:

> Mitch Gore wrote:
>> 21:43:01: Error: DVDPerfectThread read failed for 145 blocks at  
>> 1743166
>> 21:43:10: job failed: job dvd 1 1 2 1 -1 /video/movies/BAD_SANTA
>>
>> What does this mean???
> It means that that disk is copy protected by putting bad sectors on  
> the
> disk. Myth will not rip that dvd. I would suggest that you use one of
> the windows tools to rip the dvd as some of them are able to read that
> "bad" disk.

Try the script I've been using for getting ISO copies. The script  
makes use of lsdvd to open the disc and get the title then ddrescue  
to skip bad blocks during copy. Obviously, have both lsdvd and  
ddrescue installed before running. A while back there was talk about  
making MythDVD more robust against block read errors. I'm not sure  
changes were ever made.

#!/bin/bash
#
# copy a dvd from /dev/dvd to /var/video/movies using lsdvd and ddrescue

DEV="/dev/dvd"
DIR="/var/video/movie"

# read the disc toc
if ! DISCTOC=`lsdvd ${DEV} 2> /dev/null` ; then
     echo "Failed to read disc in ${DEV}";
     exit 1;
fi

# extract the disc title from the toc
DISCTITLE=`echo ${DISCTOC} | awk '/Disc Title:/{print $3}'`;

# prompt for disc title confirmation
echo -n "Name of DVD: [${DISCTITLE}]: ";
read NEWDISCTITLE
if [ -n "${NEWDISCTITLE}" ] ; then
     DISCTITLE=`echo -n "${NEWDISCTITLE}" | tr '[:lower:]' '[:upper:]'`;
     DISCTITLE=`echo -n "${DISCTITLE}" | tr '[:space:]' '_'`;
fi

OUTFILE="${DIR}/${DISCTITLE}.iso";

# copy the disc
ddrescue --no-split --verbose --block-size=2048 ${DEV} ${OUTFILE}


--
Scott 


More information about the mythtv-users mailing list