On 3/14/07, <b class="gmail_sendername">Yan Seiner</b> <<a href="mailto:yan@seiner.com">yan@seiner.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Jared Greenwald wrote:<br>> On 3/14/07, *Yan Seiner* <<a href="mailto:yan@seiner.com">yan@seiner.com</a> <mailto:<a href="mailto:yan@seiner.com">yan@seiner.com</a>>> wrote:<br>><br>><br>> I use mencoder (not myth) to rip DVDs, and I get a full-length DVD
<br>> into<br>> about 900 MB - 1.4 GB. Cartoons take a lot more space than live<br>> action.<br>><br>> I do two-pass encoding, and a single DVD takes about 3-6 hours to<br>> complete both passes.
<br>><br>><br>> Can you elaborate a little more on this process? A howto on the wiki<br>> or something?<br><br>Until I get to the wiki, here's a brief synopsis:<br><br>1. Get and build mplayer/mencoder. Most likely you will have to build
<br>from source to get the latest codecs, etc.<br><br>2. Install lsdvd.<br><br>3. run lsdvd to get a listing of the tracks. At this point, I usually<br>play the longest tracks to see what's on them. Some DVDs will have two
<br>identical tracks, except that one is in 4:3 and the other 16:9. Or<br>sometimes one will be in French and one in English, or some such<br>nonsense. Look through the DVD and play any track that looks<br>interesting. Pay attention to the sound as well; sometimes the primary
<br>track is a french or spanish dubbing, or 2 channel stereo.<br><br>4. run mplayer dvd://[my track] -vf cropdetect ; mplayer will print out<br>its idea of a bounding box so you can trim out the black border. This<br>can change so make sure you skip ahead far enough to get past the titles
<br>and so on. Read the manpage for mencoder on that as well.<br><br>5. Now that you have the track and crop info, edit the encode script<br>(read the comments).<br><br><------------cut here---------------><br><br>
#!/bin/sh<br><br>TITLE=My_Title<br>CROP=My_Crop_Box # add your crop box that mplayer suggested. You may want to crop more or less.<br>ASPECT="2.35" # whatever the correct aspect may be - usually 4/3 or 16/9 but not always
<br>BITRATE=1400 # the higher, the better quality but larger file 900 is marginal, 1400 is good - for really, really fast action you want more<br>TRACKS="1" # list of the tracks you want to rip - some DVDs will have multiple tracks
<br><br># read the mplayer manpage on interlacing and frame rates.<br># Basically, for TV source you want to use the following two lines (uncomment):<br><br>#VF=kerndeint,softskip,hqdn3d,crop=$CROP<br>#OFPS="30000/1001"
<br><br># for 'major motion picture' (i.e. telecine) stuff you want the following two lines (comment out for TV source)<br><br>VF=pullup,softskip,hqdn3d,crop=$CROP<br>OFPS="24000/1001"<br><br>AVILANG="-alang en" # the language of your choice
<br><br>for TRACK in $TRACKS ; do<br><br> echo TITLE: $TITLE<br> echo TRACK: $TRACK<br> lsdvd -t $TRACK -x<br><br> mencoder dvd://$TRACK \<br> -vf $VF -ovc lavc -oac lavc \<br> -lavcopts vcodec=mpeg4:vpass=1:turbo:acodec=mp2:aspect=$ASPECT:vbitrate=$BITRATE \
<br> -ofps $OFPS $AVILANG -o $TITLE-$TRACK.avi<br><br> mencoder dvd://$TRACK \<br> -vf $VF -ovc lavc -oac lavc \<br> -lavcopts vcodec=mpeg4:vpass=2:acodec=mp2:aspect=$ASPECT:vbitrate=$BITRATE \
<br> -ofps $OFPS $AVILANG -o $TITLE-$TRACK.avi<br><br> done<br><br><------------cut here----------------><br><br>6. Run the script. It will take hours. It will make one avi per<br>track, no menus or alternate endings or anything. If you see a lot of
<br>"skipping frame" or "duplicate frame" you selected the wrong framerate<br>and deinterlace method. Re-edit the script and uncomment the other two<br>lines. Movies usually change frame rates/interlace methods several
<br>times during titles, so wait about 5 or 10 minutes before you panic. If<br>'skipping frame' is still scrolling by 5 minutes into the movie, you<br>have the wrong deinterlace method picked.<br><br>7. Copy the resulting avi(s) to your /path/myth/movies directory
<br><br>8. In myth, re-read the movies directory and add IMDB stuff.<br><br>9. Enjoy the movie. The resulting avi will play with mplayer. You can<br>select other codecs (wmv2??) to get windows-compatible avis. See the
<br>mplayer manpage. (You can also use a similar method except use mpeg2<br>encoding to reduce the size of the TV recordings by about 80%. Myth<br>will play these but there are some issues with fast forward that I<br>haven't sorted out yet, though.)
</blockquote><div><br>Cool, thanks. Does this work at all on arcoss-type dvds?<br> </div><br></div>