The following packages need to be installed on your system:
Package Dependencies (apt-get install these for example):
-lsdvd dvdauthor gddrescue dvdbackup tovid mencoder mplayer genisoimage libdvdcss2 gpac ogmtools
+lsdvd dvdauthor gddrescue dvdbackup tovid mencoder mplayer genisoimage gpac ogmtools
+
+The libdvdcss2 package is also needed, but can only be downloaded from the medibuntu repository:
+https://help.ubuntu.com/community/Medibuntu
NOTE: In Ubuntu, depending on your version, replace libdvdcss2 with what you find on this page.
https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs
echo -e "\n Ripping: $makemkv --minlength=$min_length --decrypt --progress=-same $srctype:$srcname all $dstdir"
mkdir -p "$dstdir"
- $makemkv mkv --minlength=$min_length --decrypt --progress=-same $srctype:$srcname all $dstdir
+ $makemkv mkv --minlength=$min_length --decrypt --progress=-same $srctype:$srcname all $dstdir 2>&1 | tee -a "$ddrescuelog"
makemkv_retval=$?
if [ $makemkv_retval != 0 ]; then
fi
# Move the created MKV file into place
- echo -e "\n Moving $dstdir/*.mkv -> $dstmkv"
- mv "$dstdir"/*.mkv "$dstmkv"
+ dstfile=${dstmkv%.[^.]*}
+ typeset -i num=0
+ for i in `/bin/ls -1 "$dstdir"/*.mkv`; do
+ echo -e "\n Moving $i -> $dstfile.$num.mkv" | tee -a "$ddrescuelog"
+ mv "$i" "$dstfile.$num.mkv"
+ ((num = num + 1 ))
+ done
if [ $? != 0 ]; then
fatal_and_exit "-E- Unhandled mv error"
fi
fi
# Concatenate the encode log to our main log file, greping out unwanted lines
- cat $encodelog | grep -v "Current progress:" >> "$logfile"
+ cat "$ddrescuelog" | grep -v "Current progress:" >> "$logfile"
}
function make_dvd_mkv_image_from_folder {