View Single Post
Posts: 24 | Thanked: 4 times | Joined on Jan 2008
#44
I haven't read through this whole thread so apologies if someone's already covered this, but Linux users can take advantage of a number of excellent open-source tools for this.

This is a script I wrote, which makes use of the 'mencoder' utility to convert episodes of M*A*S*H directly from DVD to N800-friendly, 15:9 cropped, widescreen AVIs:

Code:
#!/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
I run it with the DVD in the drive. It invites me to select which titles I want to rip, the filename and a 'start index' to start numbering the titles from.

Then it gets on with it!

I'd suggest that anyone who might find it useful investigate the various man pages for mencoder. There's a trade-off between filesize and quality, of course - you may find that a higher audio bitrate is appropriate than I've chosen here, for example, or you might not need to increase the audio volume, as I've done here. Or you might wish to trim some rough edges from your material with a different crop value. The 'acidrip' package is very good for guessing crop values automatically.

Happy to answer any questions.
 

The Following User Says Thank You to slimjim For This Useful Post: