I'd recommend use Expression Encoder with Haali Media Splitter. That should crack a mkv and has built-in decoding for AVC and most audio codecs you'd like to use. And it also has a faster, higher quality WMV encoder than most free tools, and handles 5.1 audio well.