http://www.megaupload.com/?d=G3FID3KC Edit: babgvant just posted it on his web page. Below is the link
http://babgvant.com/files/folders/misc/entry3412.aspx
Above is the latest version of Mencoder (Version 7). All the improvements in this version are with the MPlayer demuxer (to use the MPlayer demuxer do NOT use the –demuxer 35 option). One other word of warning; the changes I made to improve the fps logic probably broke the reading of wmv files (not the encoding of wmv files, just the ability to read them). I would not suggest using this version of Mencoder to convert WMV files to Xvid or any other format (the purpose of this project is to read dvr-ms files, so this is an acceptable downside). Again, this is only the ability to read WMV files, reading dvr-ms files and converting them to WMV works.
Improvements in this version are:
1) The error recovery logic around all the setting we are detecting “on the fly” has been improved (this should fix Keystone’s issue).
2) The fps logic has undergone a major change. Now you aren’t required to set the output fps (so the –ofps switch is no longer required). If you don’t specify the output fps, it will encode using the fps setting of the original video. Because the fps logic is completely different, please look at the Audio/Video sync and let me know if you see any problems (in theory it should actually be better).
Below are the updated command lines I used for testing:
Xvid/MP3:
mencoder –quiet -lavdopts threads=2 "input.dvr-ms" -vf scale=320:-2 -ovc lavc -lavcopts vcodec=mpeg4:vqscale=4:threads=2 -ffourcc XVID -oac mp3lame -lameopts fast:preset=medium -o "output.avi"
WMV:
mencoder –quiet -lavdopts threads=2 "input.dvr-ms" -vf scale=320:-2 -ovc lavc -oac lavc -lavcopts vcodec=wmv2:vqscale=4:acodec=wmav2:abitrate=128 -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -o "output.wmv"
H.264/AAC: {These setting are probably incorrect. We haven’t truly figured out the correct settings for H.264 and AAC}
mencoder –quiet -lavdopts threads=2 "input.dvr-ms" -vf scale=320:-2 -ovc x264 -x264encopts crf=4:threads=4 -oac faac -faacopts br=128:object=2 -channels 2 -srate 48000 -of lavf -lavfopts format=mp4:i_certify_that_my_video_stream_does_not_use_b_frames -o "output.mp4"