MKV, OGM and AVI are “containers”. Within those are audio and video streams encoded using “codecs”. We’ll need to know the codecs and other media info to determine where the problem is.
There’s a free tool called MediaInfo that will analyse media and let you know a bunch of usefu info about it.