[MEncoder-users] What's wrong with this script (encoding x264 in mkv-container)
Al Bogner
mencoder at ml082.pinguin.uni.cc
Sun Mar 22 21:10:16 CET 2009
If I replace *.mpg with 1 existing filename, the script works. What do I have
to do to encode a few mpg-files to 1 mkv-file? Any improvement of the options
are welcome of course!
#!/bin/sh
mencoder *.mpg -aspect 16/9 -vf yadif=0,softskip,harddup -nosound -ovc x264 -
x264encopts
bitrate=3500:subq=5:bframes=3:b_pyramid:weight_b:turbo=1:threads=auto:pass=1 -
of rawvideo -o /dev/null
mencoder *.mpg -aspect 16/9 -vf yadif=0,softskip,harddup -nosound -ovc x264 -
x264encopts
bitrate=3500:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:threads=auto:pass=2
-of rawvideo -o movie.264
mencoder *.mpg -of rawaudio -oac mp3lame -lameopts preset=standard -ovc copy -
o movie.mp3
mkvmerge -o movie.mkv movie.264 movie.mp3
rm movie.mp3
rm movie.264
rm divx2pass.log
Al
More information about the MEncoder-users
mailing list