[MEncoder-users] ripping dvd to matroska and h.264
inbox at reinertson.com
inbox at reinertson.com
Tue Apr 21 21:26:10 CEST 2009
using h264enc is working quite well for me but it has one, slight
problem. when subtitles are turned on their timing is a little off.
the subtitles appear before the corresponding audio and disappear
before the words are spoken.
any idea what causes this?
my batchfile follows,
tia,
tom
tourists don't know where they've been. travelers don't know where
they're going. -- paul theroux
################### START OF COMMANDS ###################
test -d "/home/tom" || mkdir -p "/home/tom"
test -d /home/tom/.h264enc/h264enc_5610 || mkdir -p /home/tom/.h264enc/
h264enc_5610
test -e "/home/tom/50 FIRST DATES_chapter1.avi" && mv -f "/home/tom/50
FIRST DATES_chapter1.avi" "/home/tom/50 FIRST DATES_chapter1.avi.old"
/usr/bin/mencoder "dvd://1" -o /dev/null -dvd-device /dev/dvd -chapter
1 -fps 30000/1001 -ofps 24000/1001 -vf
pullup,crop=720:480:0:0,softskip,harddup -aid 128 -af volnorm=2 -
channels 5 -oac faac -faacopts mpeg=4:br=110:object=2 -ovc x264 -
x264encopts
pass
=1:bitrate=1000:turbo=2:me=umh:me_range=16:nodct_decimate:nointerlaced:
8x8dct:nofast_pskip:trellis
=
1
:partitions
=
p8x8
,b8x8
,i8x8
,i4x4
:mixed_refs:keyint
=
240
:keyint_min
=
24
:psy_rd
=
0.5,0.2
:frameref
=
3
:bframes
=
5
:b_adapt
=
2
:b_pyramid:weight_b:direct_pred
=
auto:subq
=6:chroma_me:cabac:deblock:level_idc=41:threads=auto:ssim:psnr -
passlogfile /home/tom/.h264enc/h264enc_5610/h264.log 2>/dev/null
/usr/bin/mencoder "dvd://1" -o "/home/tom/50 FIRST DATES_chapter1.avi"
-dvd-device /dev/dvd -chapter 1 -sid 0 -vobsubout "/home/tom/50 FIRST
DATES_chapter1" -vobsuboutindex 0 -fps 30000/1001 -ofps 24000/1001 -vf
pullup,crop=720:480:0:0,softskip,harddup -aid 128 -af volnorm=2 -
channels 5 -oac faac -faacopts mpeg=4:br=110:object=2 -ovc x264 -
x264encopts
pass=2:bitrate=1000:me=umh:me_range=16:nodct_decimate:nointerlaced:
8x8dct:nofast_pskip:trellis
=
1
:partitions
=
p8x8
,b8x8
,i8x8
,i4x4
:mixed_refs:keyint
=
240
:keyint_min
=
24
:psy_rd
=
0.5,0.2
:frameref
=
3
:bframes
=
5
:b_adapt
=
2
:b_pyramid:weight_b:direct_pred
=
auto:subq
=6:chroma_me:cabac:deblock:level_idc=41:threads=auto:ssim:psnr -
passlogfile /home/tom/.h264enc/h264enc_5610/h264.log 2>/dev/null
sleep 2
test -e "/home/tom/50 FIRST DATES_chapter1.mkv" && mv -f "/home/tom/50
FIRST DATES_chapter1.mkv" "/home/tom/50 FIRST DATES_chapter1.mkv.old"
/usr/bin/mkvmerge --title "50 FIRST DATES_chapter1" --track-name
1:"AAC 5.0" "/home/tom/50 FIRST DATES_chapter1.avi" "/home/tom/50
FIRST DATES_chapter1.idx" -o "/home/tom/50 FIRST DATES_chapter1.mkv"
sleep 2
rm -rf /home/tom/.h264enc/h264enc_5610
More information about the MEncoder-users
mailing list