This method enables HEVC support for all media players using GStreamer (e.g., Videos/Totem, Rhythmbox) and command-line tools.
Sometimes, installing the codec isn't enough. If you are playing a high-resolution HEVC file (like a 4K MKV movie) on older hardware, the video might play slowly or choppy because the CPU is doing all the work. You need hardware acceleration.
In this case, the "link" you need is the VA-API driver for your specific graphics card.
For Intel/AMD Graphics:
sudo apt install mesa-va-drivers
For NVIDIA Graphics:
NVIDIA support is often handled automatically if you have the proprietary drivers installed (via Driver Manager), but you may need libva-nvidia-driver on newer distributions.
Open a terminal (Ctrl + Alt + T) and run:
sudo apt update && sudo apt upgrade -y
If you need a single block of commands to copy-paste, here is the complete hardware-linked installation: install hevc codec for mkv video on linux mint link
sudo apt update
sudo apt install ubuntu-restricted-extras ffmpeg gstreamer1.0-plugins-bad intel-media-va-driver vainfo
sudo usermod -a -G video $USER
mkdir -p ~/.config/mpv/
echo -e "vo=gpu\nhwdec=vaapi\nhwdec-codecs=hevc" > ~/.config/mpv/mpv.conf
vainfo
echo "Reboot your system, then play your MKV file using Celluloid or MPV."
After a reboot, Linux Mint will not only install the HEVC codec but also create a permanent link between your video player and your GPU’s hardware decoder—ensuring buttery smooth MKV playback, even with 10-bit 4K HDR video.
Now go ahead and enjoy your media library without the codec headache.
The search query "install hevc codec for mkv video on linux mint link" usually stems from a moment of frustration: you’ve downloaded a video file, you try to open it, and you are met with a black screen, stuttering audio, or an error message demanding a plugin. This method enables HEVC support for all media
On Linux Mint, playing High Efficiency Video Coding (HEVC/H.265) files—especially those wrapped in an MKV container—is remarkably easy, but it requires one specific software installation that the operating system cannot legally include out of the box due to licensing restrictions.
Here is a look into how to solve this, where to find the necessary "link," and the easiest ways to get your media working.
Reset VLC preferences:
rm -rf ~/.config/vlc
Software decoding of 4K/8K HEVC can be CPU-intensive. If your GPU supports HEVC decoding, enable hardware acceleration.
mpv --demuxer-lavf-o=analyzeduration=2M your-test-file.mkv