Using VLC: Open VLC, go to Media > Open File..., and select your HEVC-encoded MKV file. If everything is installed correctly, VLC should play the file without any issues.
Using MPV: Similarly, you can open your MKV file with MPV by right-clicking on the file, selecting Open with, and then choosing mpv.
ffmpeg -i input.mkv -c:v libx264 -crf 23 -c:a aac output.mp4
Parameters explained:
-crf 23 – Quality (lower = better, 18-28 typical)-c:v libx264 – H.264 video codec-c:a aac – AAC audio codecSolution: Some GPU drivers have bugs with certain HEVC profiles. Fallback to software decoding by commenting out hwdec=vaapi in the mpv.conf file (add a # at the beginning of the line). install hevc codec for mkv video on linux mint link
Linux Mint has a built-in tool designed specifically for this purpose. This is the recommended first step for all new users.
Once completed, try opening your .mkv file again. In 90% of cases, this resolves the issue immediately.
Open Terminal
Update package list
sudo apt update
Install VLC
sudo apt install vlc -y
Launch VLC
vlc
Test playback
Media → Open FileNote: VLC uses software decoding by default. For 4K or high-bitrate HEVC, consider hardware acceleration (see Method 5).