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

Grozdan microchip at telenet.be
Sat Apr 18 10:51:16 CEST 2009


>
> 2009/4/18 <inbox at reinertson.com>
>
>> 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
>
>
why do you use 1 fps as default duration for mkvmerge? it should be 23.976
fps, eg
--default-duration 0:23.976fps

also you may want to add -ofps 24000/1001 when doing pullup. I would also
suggest you try out the h264enc script which can make your life much easier
and allows you to save the settings and tweak them further to your liking.
Google it


>>
>> _______________________________________________
>> MEncoder-users mailing list
>> MEncoder-users at mplayerhq.hu
>> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>>
>>
>


More information about the MEncoder-users mailing list