I wanted to make sure that only the longest title was ripped instead of just a general --minlength=#. The following ensures this. I am using Linux. Thanks for posting this tutorial. # Get the minimum length. This ensures that only the longest title goes to MKV. long_title=$(makemkvcon -r info disc:0 | grep cell | awk '{ print $7 }' | tr -d ')","Title' | sort -nr | head -n1 | awk -F: '{print ($1 * 3600) + ($2 * 60) + $3}') # Rip DVD makemkvcon --minlength="$long_title" -r --decrypt --directio=true mkv disc:0 all $HOME/Videos/