http://www.megaupload.com/?d=LS12AYWJ
Above is the link to the latest version of Mencoder (version 6). This version will need some testing (and please provide feedback if you see problems) because there have been some major changes. Again, a really BIG Thank You to John Donaghy and the endless hours he has put into this project. In this version he created a function that automatically detects the type of audio for our friends in Australia.
Also, please remember to NOT use the –demuxer 35 option. All the dvr-ms changes have been made to the MPlayer demuxer (to use the MPlayer demuxer just don’t use the –demuxer switch).
Improvements in this version are:
1) You shouldn’t see as many “dropped frames” or “duplicate frames”. I did some work in this area to try and improve the AV sync.
2) The Audio type will be automatically detected.
I do have to mention three things. First, we are automatically detecting a lot of values “on the fly” because we’ve found the dvr-ms header is incorrect sometimes (fps, audio, bit rate, resolution, aspect ratio). Because of this, you may see some issues in the first few seconds of a show. Please give me some feedback on this. We’ve done our best to adjust these values as quickly as possible. However, if you have shows where it just isn’t acceptable please let me know. I’d like to see the samples, maybe I can improve it.
Secondly, because we are detecting everything “on the fly” you have to pick an output fps (for example: -ofps 29.97 or –ofps 25). Sorry, I know people would like to keep the fps of the original broadcast, but we just don’t know what the fps is when we start the encoding (the encoder needs this to encode even the first frame). I don’t know any way around this – at least not yet…
Third, please don’t use the –delay or -fps switches with the MPlayer demuxer. If you use these switches it will override the automatic detection.
Below is the command line I used for all of my testing.
XVID/MP3:
mencoder -lavdopts threads=2 "input.dvr-ms" -vf scale=320:-2 -ofps 29.97 -ovc lavc -lavcopts vcodec=mpeg4:vqscale=4:threads=2 -ffourcc XVID -oac mp3lame -lameopts fast:preset=medium -o "output.avi"
H.264/AAC
mencoder -lavdopts threads=2 "input.dvr-ms" -vf scale=320:-2 -ofps 29.97 -ovc x264 -x264encopts crf=4:threads=4 -oac faac -faacopts br=128 -o "output.avi"