Play 4K H.265 Movies from USB on Samsung 4K TV

“I have a Samsung QE43Q60R TV. It has a USB port which I have previous looked at pictures through. I want to watch films – in .mkv format it shows me the films on the menu screen on the TV, but when I try to play it says unsupported file. Any suggestion?”