]>
code.delx.au - transcoding/blob - rip-dvd
3 DVD_DEVICE
="${DVD_DEVICE:-/dev/dvd}"
6 echo "Usage: $0 NAME [num]"
11 # Calculate the name for ripping
13 last
="$(find . -maxdepth 1 -type f -name "${base}*.iso
" | sort -n | tail -n 1)"
16 elif [ -z "$last" ]; then
19 num
="${last##./${base}}"
23 output
="${base}${num}.iso"
26 # Sometimes the cached keys are wrong, since it only takes a few seconds to
27 # recrack I prefer to do it each time
30 # Need to use libdvdread/libdvdcss to unlock the drive before copying
31 identify-disc
--dvd-device "$DVD_DEVICE"
36 echo "Will rip to '$output'"
37 for i
in $
(seq 3 -1 1); do
43 # Rip to ISO skipping bad sectors then decrypt to VIDEO_TS directory
46 ddrescue
-n -b 2048 "$DVD_DEVICE" "$output"
47 identify-disc
--dvd-device "$output"