BRL:
I don't know if this even works, but after fishing around a bit, I stumbled across this program: it is free, and may be what you're after.
TMPGEnc (Free version)
The main website is
http://tmpgenc.net/e_main.html
I hope this helps you. I'll have a bash myself, time permitting.
Good luck
RR