x264 is the codec that's best at compressing video, in order words it takes more resources to de-compress it.
Some players are able to boost this a little but it usually comes down to hardware.
Matroska (.mkv) is the container format that holds the compressed codec information, it doesn't have anything to do with how good the encoding/decoding is, only which codecs it'll let you de-code.