[mythtv-users] DVD ISOs
Charles Wright
cpwright at gmail.com
Tue Dec 29 15:00:52 UTC 2009
On Tue, Dec 29, 2009 at 1:49 AM, Chris Ribe <chrisribe at gmail.com> wrote:
> On Mon, Dec 28, 2009 at 3:47 PM, Richard Morton <richard.e.morton at gmail.com>
> wrote:
> Charles & Jan: I have not yet fully investigated ddrescue and dd --noerror,
> do you have any experience using these options to rip otherwise recalcitrant
> DVDs?
Yes. I can't import my discs with just dd or the internal Mythtv
ripper, because they inevitably get I/O errors. I use the following
script to rip them with dd rescue (on Ubuntu the package was named
gddrescue):
#!/bin/sh
if [ -z "$1" ] ; then
DEV=/dev/dvd
else
DEV="$1"
fi
DIR="/var/lib/mythtv/videos"
if ! DISCTOC=`lsdvd ${DEV} 2>/dev/null` ; then
echo "Failed to read disc in ${DEV}"
exit 1
fi
DISCTITLE=`echo $DISCTOC | awk '/Disc Title:/{print $3}'`
echo -n "Disc title [$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
time ddrescue --no-split --verbose --block-size=2048 ${DEV} ${OUTFILE}
Charles
More information about the mythtv-users
mailing list