I used a proggy called TotalRecorder for a while, its main draw being that it can record streaming audio for you. I uninstalled it because the way it put itself in place to intercept the information on its way to my sound card inconvenienced a couple of my games.
It didn't encode on the fly, but it didn't have any recording limits or anything.