Eugenia Loli-Queru
2007 July 16th, 06:43
Download mplayer for Windows (that includes the mencoder utility), and the additional binary codecs. Copy the codec files on the mplayer/codec/ folder. From a DOS prompt, or a Linux/Unix/OSX prompt, issue the following:
For mpeg2 (lossy, but small files):
mencoder FILENAME.m2t -aspect 16:9 -vf pullup,softskip,harddup -ofps 24000/1001 -oac copy -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=24000000:aspect=16/9:mbd=2:trell=yes -of mpeg -mpegopts format=mpeg2:tsaf:muxrate=2000:vbitrate=25000:vfra merate=24000/1001 -o OUTPUT_FILENAME.m2t
For MJpeg (lossless, but huge files):
mencoder FILENAME.m2t -aspect 16:9 -mc 0 -noskip -fps 29.976/1001 -ofps 23.976/1001 -vf pullup,softskip,harddup -ofps 23.976/1001 -oac copy -ovc lavc -lavcopts vcodec=ljpeg:mbd=2:trell=yes:aspect=16/9:vbitrate=16384000 -o OUTPUT_FILENAME.avi
The avi/mjpeg video seems to have problems though. It is very slow, and it has weird sound (or no sound at all) and the wrong aspect ratio. The mpeg2 version works much better, but it's lossy and it does not support 23.976 fps (only supports 24fps), which can be problematic in some scenes that require precision.
This method is obviously half-baked and buggy, but if someone can't deal with any other way, at least it's available. Feel free to tweak these command lines.
For mpeg2 (lossy, but small files):
mencoder FILENAME.m2t -aspect 16:9 -vf pullup,softskip,harddup -ofps 24000/1001 -oac copy -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=24000000:aspect=16/9:mbd=2:trell=yes -of mpeg -mpegopts format=mpeg2:tsaf:muxrate=2000:vbitrate=25000:vfra merate=24000/1001 -o OUTPUT_FILENAME.m2t
For MJpeg (lossless, but huge files):
mencoder FILENAME.m2t -aspect 16:9 -mc 0 -noskip -fps 29.976/1001 -ofps 23.976/1001 -vf pullup,softskip,harddup -ofps 23.976/1001 -oac copy -ovc lavc -lavcopts vcodec=ljpeg:mbd=2:trell=yes:aspect=16/9:vbitrate=16384000 -o OUTPUT_FILENAME.avi
The avi/mjpeg video seems to have problems though. It is very slow, and it has weird sound (or no sound at all) and the wrong aspect ratio. The mpeg2 version works much better, but it's lossy and it does not support 23.976 fps (only supports 24fps), which can be problematic in some scenes that require precision.
This method is obviously half-baked and buggy, but if someone can't deal with any other way, at least it's available. Feel free to tweak these command lines.