# Why won't VLC media player play these MKV files?

**URL:** <https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246>\
**Category:** Factual Questions\
**Created:** [August 6, 2019, 3:19pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246 "2019-08-06T15:19:21Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Little\_Nemo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/little_nemo/32/3120_2.png) [@Little\_Nemo](https://boards.straightdope.com/u/Little_Nemo)\
**Post date:** [August 6, 2019, 3:19pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/1 "2019-08-06T15:19:21Z")

</div>

I bought a new computer recently and I’ve been setting it up.

I have MKV files and I needed a program that would play them. I downloaded and installed VLC media player.

It generally works. But I have some MKV files that it won’t play. I get a message that tells me “Missing codec” and “This item was encoded in a format that’s not supported.” Sometimes it will play the sound but not the picture.

Do I need a different version of VLC? Do I need a different player? What’s a codec and can I get one? Is there some way I can tell the difference between the MKV files this program will play and those it won’t?

---

<div class="post-metadata">

**Author:** ![scr4](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@scr4](https://boards.straightdope.com/u/scr4)\
**Post date:** [August 6, 2019, 3:28pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/2 "2019-08-06T15:28:24Z")

</div>

MKV is just a container file, the actual content can be any video format (i.e. any video compression type). The [codec](https://en.wikipedia.org/wiki/Codec) is the software that actually does the video compression/decompression, which isn’t necessarily part of the playback software (i.e it is an external software called by the playback software). I think if you open the file in VLC and go to Tools -\> Codec Information, it will tell you what codec the file uses.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [August 6, 2019, 3:54pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/3 "2019-08-06T15:54:13Z")

</div>

**src4** is entirely correct. However, it’s quite rare to find a codec that VLC can’t play, especially when it is in a modern container like MKV (so it’s unlikely to be some old, esoteric format).

Assuming you have [the latest version of VLC](https://www.videolan.org/vlc/download-windows.html) (3.0.7.1 Velinari as of this post), I would actually suspect the files have been corrupted in such a way that VLC can’t detect the codec properly. If you have any way of verifying the files or downloading a new, clean copy, I’d try that.

Or, [apparently](https://forum.videolan.org/viewtopic.php?t=141882), there is a rash of fake videos out there, where the actual video content is an error message saying that you need to install a codec. These will usually mention some sort of URL, which, if you follow them, may open you up to malware.

VLC does not use external codecs. It supports all of its codecs out of the box. That’s actually one of the defining features.

---

<div class="post-metadata">

**Author:** ![rbroome](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rbroome](https://boards.straightdope.com/u/rbroome)\
**Post date:** [August 6, 2019, 4:06pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/4 "2019-08-06T16:06:37Z")

</div>

Thanks for the info.  
I didn’t realize that VLC contains all it’s codecs. Not externals required.

---

<div class="post-metadata">

**Author:** ![Darren\_Garrison](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/darren_garrison/32/92_2.png) [@Darren\_Garrison](https://boards.straightdope.com/u/Darren_Garrison)\
**Post date:** [August 6, 2019, 4:16pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/5 "2019-08-06T16:16:01Z")

</div>

If you have Windows, install [this](https://en.wikipedia.org/wiki/K-Lite_Codec_Pack).IIRC, that package doesn’t have h.265/HEVC, so also install [this](https://www.videolan.org/developers/x265.html).

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [August 6, 2019, 4:22pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/6 "2019-08-06T16:22:04Z")

</div>

In addition to the VLC media/codec information window, running [ffprobe](https://ffbinaries.com/downloads) in a terminal window will display technical info you can use to quickly diagnose such problems.

---

<div class="post-metadata">

**Author:** ![scr4](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@scr4](https://boards.straightdope.com/u/scr4)\
**Post date:** [August 6, 2019, 4:22pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/7 "2019-08-06T16:22:38Z")

</div>

> [@BigT](#):
>
> VLC does not use external codecs. It supports all of its codecs out of the box. That’s actually one of the defining features.

Thank you for the correction, I hadn’t realized this.

---

<div class="post-metadata">

**Author:** ![ftg](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ftg/32/2801_2.png) [@ftg](https://boards.straightdope.com/u/ftg)\
**Post date:** [August 6, 2019, 4:23pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/8 "2019-08-06T16:23:53Z")

</div>

I’ve seen some mkvs recently with some weird H.264/AVC variant that makes my converters/editors go kablooey. But still VLC plays them.

One problem is that there’s always someone out there who does their own implementation of a codec or tries to “improve” things and incompatibility results.

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [August 6, 2019, 4:25pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/9 "2019-08-06T16:25:56Z")

</div>

> [@Darren\_Garrison](#):
>
> If you have Windows, install [this](https://en.wikipedia.org/wiki/K-Lite_Codec_Pack).IIRC, that package doesn’t have h.265/HEVC, so also install [this](https://www.videolan.org/developers/x265.html).

Do you really need any of those just to play back, with VLC?

I can’t guarantee it will play 100% of files out of the box, but it will be interesting to discover which ones it can’t. Most legitimate files should decode smoothly.

---

<div class="post-metadata">

**Author:** ![KneadToKnow](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kneadtoknow/32/3999_2.png) [@KneadToKnow](https://boards.straightdope.com/u/KneadToKnow)\
**Post date:** [August 6, 2019, 4:31pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/10 "2019-08-06T16:31:20Z")

</div>

Truth. VLC on Linux even plays back Windows Media Center .dvr-ms files, which I had given up hope of anything but WMC ever playing.

---

<div class="post-metadata">

**Author:** ![blindboyard](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/blindboyard/32/2833_2.png) [@blindboyard](https://boards.straightdope.com/u/blindboyard)\
**Post date:** [August 6, 2019, 4:57pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/11 "2019-08-06T16:57:44Z")

</div>

> [@BigT](#):
>
> (3.0.7.1 Velinari as of this post)

Vetinari. Versions of VLC are named after characters from the Discworld fantasy comedy etc novel series, such as Twoflower and now Vetinari.

---

<div class="post-metadata">

**Author:** ![SmartAleq](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/smartaleq/32/163_2.png) [@SmartAleq](https://boards.straightdope.com/u/SmartAleq)\
**Post date:** [August 6, 2019, 7:32pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/12 "2019-08-06T19:32:15Z")

</div>

I’ve always used the K-Lite codec pack and it comes with Media Player Classic as part of the pack. So far it plays everything unless I get a corrupted file. I only use VLC if a video stutters (hasn’t happened in a long time) but in general I really prefer MPC.

---

<div class="post-metadata">

**Author:** ![rat\_avatar](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/rat_avatar/32/255_2.png) [@rat\_avatar](https://boards.straightdope.com/u/rat_avatar)\
**Post date:** [August 6, 2019, 8:37pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/13 "2019-08-06T20:37:09Z")

</div>

Note if the files that won’t play were not created by you be careful.

Everyone should make sure that they have updated to the latest version of VLC and codecs before trying to make things work.

Here his the CVE and note that a CVSS v3 score of 9.8 out of 10 which is **really bad!**

[https://nvd.nist.gov/vuln/detail/CVE-2019-12874](https://nvd.nist.gov/vuln/detail/CVE-2019-12874)

> **[VideoLAN Security Advisory 1901 - VideoLAN](https://www.videolan.org/security/sa1901.html)**
>
> VideoLAN Security Advisory 1901

Make sure you have VLC 3.0.7.1 or greater.

---

<div class="post-metadata">

**Author:** ![Rysto](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@Rysto](https://boards.straightdope.com/u/Rysto)\
**Post date:** [August 6, 2019, 9:39pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/14 "2019-08-06T21:39:55Z")

</div>

That CVE is overblown. The CVSS score is absolute nonsense. A score that high would indicate a situation where VLC could without any action by the user of the computer allow an attacker to take it over. That’s impossible in this case, as the user has to download a malicious video and open it with VLC. Furthermore, nobody has even demonstrated a working exploit of the vulnerability. It remains a theoretical vulnerability for the moment.

The bug was even fixed over a year ago. This makes itl a good example of why it’s important to keep your software up-to-date, especially if it ever interacts with the web or files that you’ve downloaded from the internet.

TL;DR: This was overhyped by the original finder of the vulnerability and the media, but definitely make sure that your VLC up-to-date.

---

<div class="post-metadata">

**Author:** ![Flander](https://avatars.discourse-cdn.com/v4/letter/f/8c91f0/32.png) [@Flander](https://boards.straightdope.com/u/Flander)\
**Post date:** [August 8, 2019, 9:24pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/15 "2019-08-08T21:24:07Z")

</div>

> [@SmartAleq](#):
>
> I’ve always used the K-Lite codec pack and it comes with Media Player Classic as part of the pack. So far it plays everything unless I get a corrupted file. I only use VLC if a video stutters (hasn’t happened in a long time) but in general I really prefer MPC.

Seconded! MPC has always worked much smoother than vlc for me.

---

<div class="post-metadata">

**Author:** ![Darren\_Garrison](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/darren_garrison/32/92_2.png) [@Darren\_Garrison](https://boards.straightdope.com/u/Darren_Garrison)\
**Post date:** [August 8, 2019, 11:36pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/16 "2019-08-08T23:36:59Z")

</div>

I’ve used MPC forever–so long that I was suprised to see that it came out [so recently as 2003](https://en.wikipedia.org/wiki/Media_Player_Classic).

---

<div class="post-metadata">

**Author:** ![Darren\_Garrison](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/darren_garrison/32/92_2.png) [@Darren\_Garrison](https://boards.straightdope.com/u/Darren_Garrison)\
**Post date:** [August 8, 2019, 11:53pm UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/17 "2019-08-08T23:53:04Z")

</div>

BTW, if the files can be opened in MPC, it can tell you the codecs from a “properties” menu. Or you could try one of the programs listed on [this](https://www.freemake.com/blog/video-codec/) page.  
(Also, I realized why I thought I had been using MPC for so long–I remember that I used to always migrate the Windows Media Player that MPC is the “classic” of from one Windows version to the next even after Microsoft stopped supplying it–so I’ve been using something that _looks_ like MPC since at least Windows 95, maybe even the Windows 3.1 version.)  
(ETA: yep, [been using the look since 1991](https://www.inexistentman.net/2014/03/nostalgia-os-programas-que-voce-usava-antigamente/3/))

---

<div class="post-metadata">

**Author:** ![Little\_Nemo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/little_nemo/32/3120_2.png) [@Little\_Nemo](https://boards.straightdope.com/u/Little_Nemo)\
**Post date:** [August 10, 2019, 2:07am UTC](https://boards.straightdope.com/t/why-wont-vlc-media-player-play-these-mkv-files/838246/18 "2019-08-10T02:07:58Z")

</div>

My thanks to everyone for your explanations and advice, even if some of it was above my level of understanding.
