http://www.megaupload.com/?d=CA4TJQHF
Above is the latest version of Mencoder (Version 5). This version doesn’t have any improvement in reading the dvr-ms format (compared to version 3). However, I have done some work on the items below and I wanted to post it before I tore everything apart working on improving AC3 detection.
New things in this version are:
1) I removed the dependency on cygwin1.dll (this version actually works).
2) I worked on thread support again (this is why there is a requirement for pthreadGC2.dll). I can’t get either ffmpeg or Mencoder to use 100% of a dual core system for Xvid encoding (it will use 100% for H.264 encoding). However, I did update the Xvid library to the latest SVN which now supports SMP (multi-processor systems). Please try it out and let me know if you get any improvement in encoding times. There are two ways to access this library.
The option below will call the xvid library directly
-ovc xvid -xvidencopts fixed_quant=4:threads=2
The second option is to have ffmpeg call the xvid library
-ovc lavc -lavcopts vcodec=xvid:vqscale=4:threads=2
3) This version supports both H.264 and AAC. I don’t own an iPod, so I have no idea if this will play in that device. However, I did test the playback on my PC and I know it does encode in H.264 and AAC. I just don’t know all the “tweaks” necessary for the iPod hardware.
Here are the command lines I’ve used for testing. Notice I’m using vcodec=mpeg4 for Xvid because this gave me the best speed on my system.
Xvid/MP3:
mencoder -lavdopts threads=2 "input.dvr-ms" -vf expand=:::::4/3,scale=320:240 -ofps 29.97 -ovc lavc -lavcopts vcodec=mpeg4:vqscale=4:threads=2 -ffourcc XVID -oac mp3lame -lameopts abr:br=128 -o "output.avi"
H.264/AAC:
mencoder -lavdopts threads=2 "input.dvr-ms" -vf expand=:::::4/3,scale=320:240 -ofps 29.97 -ovc x264 -x264encopts crf=4:threads=2 -oac faac -faacopts br=128 -o "output.avi"