# check to see if dvdname is a full path to an ISO file
# if it is, set dvdname and isofile appropriately
- file "$dvdname" | grep -q "ISO"
+ file "$dvdname" | grep -q -e "ISO" -e "UDF"
if [ $? == 0 ]; then
# It is a valid ISO file, now strip the extension off our dvdname
isofile="$dvdname"
if [[ -n "$mailto" ]]; then
echo -e "$msg" | mailx -s "dvd rip of $dvdname FAILED" "$mailto"
fi
+ keep_intermediate_files=1
exit 1
}
CROPCHECK=`echo "$CROP" | awk -F ':' '{ print $1 }'`
echo " Final crop value of $CROP with cropcheck value of $CROPCHECK" >> "$logfile"
if [ -z "$CROP" ]; then
- fatal_and_exit "-E- Unable to extract CROP value from iso: $isofile"
+ echo "-W- Unable to extract CROP value from iso: $isofile" | tee -a "$logfile"
+ return
fi
if [ $CROPCHECK -lt 0 ]; then
CROP=""
CROPCHECK=`echo "$CROP" | awk -F ':' '{ print $1 }'`
echo " Final crop value of $CROP with cropcheck value of $CROPCHECK" >> "$logfile"
if [ -z "$CROP" ]; then
- fatal_and_exit "-E- Unable to extract CROP value from iso: $isofile"
+ echo "-W- Unable to extract CROP value from iso: $isofile" | tee -a "$logfile"
+ return
fi
if [ $CROPCHECK -lt 0 ]; then
CROP=""
# an optimal setting for this should be the number of cores you have times 2
# note: you have to have an mplayer version that has been compiled with multi thread support.
# if you don't, this will have no effect, but won't hurt anything to have it set otherwise.
-mencoder_threads=4
+# note: the xvid codec seems to be fastest with threads set to 2.
+mencoder_threads=2
-###########################################################################################
\ No newline at end of file
+###########################################################################################