mkdir -p ~/.config/mpv nano ~/.config/mpv/mpv.conf
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
sudo apt install intel-media-va-driver # for Intel sudo apt install mesa-va-drivers # for AMD mkdir -p ~/
For users who need hardware acceleration to prevent high CPU usage during 4K MKV playback, you should also ensure your graphics drivers are up to date. Navigate to the Driver Manager in your system settings. If you have an NVIDIA or AMD GPU, ensure you are using the recommended proprietary drivers. This allows the GPU to handle the heavy lifting of decoding HEVC frames rather than relying on your processor. Navigate to the Driver Manager in your system settings
sudo apt install mesa-va-drivers vainfo # Should show HEVC decoding support