To use this method you’ll need mencoder.exe which is part of the mplayer distribution. Download it here.
The bat file with the command can be downloaded here.
USAGE: mencode_from_wmv.bat input_file.wmv
This will produce avi. If you want to have mkv format use mmg.exe from mkvtoolnix (here).
This batch works in 2 passes:
1 pass:
mencoder input_file.wmv -ofps 30000/1001 -ovc x264 -x264encopts subq=1:frameref=1:pass=1:threads=2 -nosound -o input_file.wmv.x264.avi
-ofps is necessary due to wrong recognition of framerate in wmv
2 pass:
mencoder input_file.wmv -ofps 30000/1001 -ovc x264 -x264encopts subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:weight_b:bitrate=3500:pass=2:threads=2 -oac mp3lame -lameopts vbr=3:br=192 -o input_file.wmv.x264.avi
No comments:
Post a Comment
If you like this post, please leave a comment :)