#!/bin/bash cropval=720:576:0:0 # MASH lsdvd |cut -c-24 typeset -i sind echo -n "first title "; read first echo -n "last title "; read last echo -n "filename "; read fname echo -n "start index " read sind typeset -i cnt=$((sind - 1)) for i in $(seq $first $last); do cnt=$((cnt+1)) oname=${fname}_$(printf "%02d" $cnt).avi echo encoding $oname mencoder dvd://$i -dvd-device /dev/dvd -aid 129 -af volume=16:0 -o $oname \ -oac lavc -lavcopts acodec=mp3:abitrate=48 \ -ovc lavc -lavcopts vcodec=mpeg4:autoaspect:vbitrate=480 \ -vf scale=400:300,crop=400:240:0:20 \ -ffourcc DIVX \ -idx done