Some MKV files play and some dont ?!?!

My issue sounds similar as Slimat’s in this post. On my Samsung TV the video container formats are showing as .mpg in the Plex Media Server interface whereas the actual video’s are in a .mkv container (H264 codec). This applies to all of my videos. Samsung TV however is incorrectly displaying them as .mpg and this refuses to play them. No one has replied yet to my ask for help. Again could be identical as the issue in this thread.

https://forums.plex.tv/t/video-formats-incorrectly-showing-on-tv-plex-server-interface/582627