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