[MEncoder-users] Problem re-encoding matroska xvid+ac3 file
Phil Oleynik
Oleynik.Phil at mail.ioffe.ru
Fri May 27 21:19:20 CEST 2005
I put here my script, I used and it definitely worked.
> mkvextract tracks "buggy.mkv" 3:s.10.ass
> mplayer -vc dummy -ao pcm "buggy.mkv"
> lame -b 320 audiodump.wav
> oggenc -o 10.ogg -q 3 audiodump.wav
> mkvmerge -o t.10.mkv -S --no-chapters --no-attachments --no-tags
> --aac-is-sbr 2 --cues 1:all --disable-lacing "buggy.mkv" audiodump.wav.mp3
> mkvmerge -o v.10.mkv -S -A --no-chapters --no-attachments --no-tags
> --cues 1:all --disable-lacing t.10.mkv --disable-lacing audiodump.wav.mp3
> mencoder -v -vc xvid -oac mp3lame -lameopts preset=insane -ovc xvid
> -xvidencopts
> pass=1:bitrate=945:me_quality=6:max_key_interval=500:keyframe_boost=50:kfthreshold=20:kfreduction=50:packed:max_bframes=0:bf_threshold=0:noclosed_gop:qpel:gmc:cartoon:chroma_opt:hq_ac:vhq=4:psnr
> "./v.10.mkv" -o "/dev/null" -vf
> pp=hb/vb/hb:c/vb:c/dr,hqdn3d=4:3:10,unsharp=l7x7:0.5
> mencoder -v -vc xvid -oac mp3lame -lameopts preset=insane -ovc xvid
> -xvidencopts
> pass=2:bitrate=945:me_quality=6:max_key_interval=500:keyframe_boost=50:kfthreshold=20:kfreduction=50:packed:max_bframes=0:bf_threshold=0:noclosed_gop:qpel:gmc:cartoon:chroma_opt:hq_ac:vhq=4:psnr
> "./v.10.mkv" -o "./avi.10.avi" -vf
> pp=hb/vb/hb:c/vb:c/dr,hqdn3d=4:3:10,unsharp=l7x7:0.5
> mkvmerge -o x.10.mkv --track-name 0:"Some good name 10" -A avi.10.avi
> --language 0:jpn --disable-lacing 10.ogg --language 0:en s.10.ass
This may look unnecessary to do such movements, however since it worked,
I did not tried to simlify it. Once again, it worked only with 1.4.x
mkvtoolnix.
Philipp
More information about the MEncoder-users
mailing list