[MEncoder-users] ripping dvd to matroska and h.264

inbox at reinertson.com inbox at reinertson.com
Sat Apr 18 04:38:36 CEST 2009


i'm trying to follow the instructions given in

http://en.gentoo-wiki.com/wiki/Ripping_DVD_to_Matroska_and_H.264

to rip a dvd to an mkv container.  i think i've followed the  
instructions pretty carefully but two problems arise.  first, the  
sound is not synced with the video and second, there are no  
subtitles.  i've listed the sequence of commands below and i'd be  
grateful if someone would just review them to see if i've done  
anything obviously wrong.

tia


mplayer dvd://01 -dumpstream -dumpfile /var/dvdrip/50_first_dates/ 
movie.vob \
     1>/var/dvdrip/50_first_dates/rip_video.lst 2>/dev/null

dvdxchap -t 01 /dev/dvd > /var/dvdrip/50_first_dates/chapters.lst

cp /mnt/dvd/video_ts/vts_01_0.ifo /var/dvdrip/50_first_dates/

tccat -i /var/dvdrip/50_first_dates/movie.vob -L | tcextract -x ps1 -t  
vob -a 32 \
     > /var/dvdrip/50_first_dates/subs_0

subtitle2vobsub -o /var/dvdrip/50_first_dates/vobsubs \
     -i /var/dvdrip/50_first_dates/vts_01_0.ifo -a 0 < /var/dvdrip/ 
50_first_dates/subs_0

subtitle2pgm -o /var/dvdrip/50_first_dates/sid_0/0 -c 255,0,0,255 \
     < /var/dvdrip/50_first_dates/subs_0

mplayer /var/dvdrip/50_first_dates/movie.vob -aid 128 -dumpaudio - 
dumpfile \
     /var/dvdrip/50_first_dates/audio_128.ac3 >/var/dvdrip/ 
50_first_dates/rip_audio.lst

mplayer /var/dvdrip/50_first_dates/movie.vob -vf cropdetect -sb  
50000000 2>/dev/null

mencoder /var/dvdrip/50_first_dates/movie.vob -msglevel all=4 \
     -vf pullup,softskip,crop=720:480:0:0,harddup -nosound -ovc x264 \
     -x264encopts  
bitrate 
=2400:subq=9:bframes=3:b_pyramid:weight_b:turbo=1:threads=auto:pass=1 \
     -of rawvideo -o /dev/null >/var/dvdrip/50_first_dates/pass1.lst  
2>/dev/null

mencoder /var/dvdrip/50_first_dates/movie.vob -msglevel all=4 \
     -vf pullup,softskip,crop=720:480:0:0,harddup -nosound -ovc x264 \
     -x264encopts  
bitrate 
= 
2400 
:subq 
=9:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:threads=auto:pass=2 \
     -of rawvideo -o /var/dvdrip/50_first_dates/movie.264 >/var/dvdrip/ 
50_first_dates/pass2.lst 2>/dev/null

mkvmerge --title 50_first_dates -o /var/dvdrip/50_first_dates/ 
movie.mkv \
     --chapters /var/dvdrip/50_first_dates/chapters.lst  \
     --default-duration 0:1fps /var/dvdrip/50_first_dates/movie.264 \
     /var/dvdrip/50_first_dates/audio_128.ac3 >/var/dvdrip/ 
50_first_dates/mkvmerge.lst



More information about the MEncoder-users mailing list