Install Hevc Codec For Mkv Video On Linux Mint Link May 2026
The container adds another layer: it supports almost any codec. Your system might read the MKV file structure but then fail when it encounters the HEVC video stream inside. Method 1: The Safe & Easy Way (Using Repository Restriction Removal) Linux Mint (based on Ubuntu) segregates certain codecs into a package called ubuntu-restricted-extras . However, this does not always include full HEVC support. For MKV playback, we need to enable a more comprehensive package set. Step 1: Ensure Your System is Updated Open a terminal ( Ctrl + Alt + T ) and run:
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.
If you’ve recently switched to Linux Mint and tried to open a modern MKV video file—especially one recorded in 4K or 8K from a smartphone, action camera, or Blu-ray rip—you might have been greeted with an error message: “Could not decode stream” or simply a black screen with audio playing. The culprit? A missing codec, also known as H.265. install hevc codec for mkv video on linux mint link
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):
sudo apt install mesa-va-drivers vainfo For GPUs (proprietary driver required): The container adds another layer: it supports almost
sudo apt install libde265-0 libheif-examples Then restart your media player. Solution: Ensure your user is in the video group to access the GPU decoder:
sudo apt install gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly The and "ugly" plugin sets contain the HEVC decoders that are patent-sensitive. Step 4: Verify Installation Test an MKV file with the ffmpeg command line tool: However, this does not always include full HEVC support
sudo apt install nvidia-driver-545 nvidia-vaapi-driver Run: