Finally, I have opted to use mencoder rather than ffmpeg as it has support for using VFW dlls (-xvfwopts) to encode and storing profiles to file using vfw2menc, so I don't have to poke around with the windows registry.
In case anyone has a similar problem.
Information here:
http://www.mplayerhq.hu/DOCS/HTML/en...r-windows.html