I think RipBot264 does it. I've used it before (but not for 5.1) and it generally gives nice results. You have to install a few other programs like the .net framework, Haali media splitter, ffshow and avisynth, but Ripbot will warn you if you don't have these installed.