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 between your video player and your GPU’s hardware decoder—ensuring buttery smooth MKV playback, even with 10-bit 4K HDR video.
Struggling to play high-resolution MKV files? You likely need the HEVC codec. install hevc codec for mkv video on linux mint link
vainfo You should see a line containing VAProfileHEVCMain or VAProfileHEVCMain10 . If present, your GPU can hardware-decode HEVC. The default Linux Mint media player (Celluloid) is a frontend for MPV. Create a configuration file for automatic hardware acceleration: vainfo You should see a line containing VAProfileHEVCMain
Now go ahead and enjoy your media library without the codec headache. ... — if ffmpeg identifies it
ffmpeg -i /path/to/your/video.mkv Look for the line: Stream #0:0: Video: hevc (Main 10), ... — if ffmpeg identifies it, your system recognizes the codec. If you still experience stuttering on a 4K MKV movie, your CPU is struggling with software decoding. You need to link the HEVC codec to your GPU’s hardware decoder. Linux Mint supports this via VA-API (Video Acceleration API) . Step 1: Install VA-API Drivers For Intel GPUs (most laptops/desktops):