mplayer/mencoder, specifically the mencoder program for re-encoding-------many apps including winavi converter use the mencoder dll or program to do this, its free and open source, winavi converter is payware
Im am currently working on a visual basic app to do this, its gonna be a few weeks though.