Install Hevc Codec For Mkv Video On Linux Mint Link May 2026
| User Type | Recommended Method |
| :--- | :--- |
| Casual user who just wants MKV files to play | Install VLC (Method 3) |
| Power user with a modern Intel/AMD laptop | Method 2 (Hardware-accelerated MPV) |
| Older PC without HEVC hardware decoding | Method 1 (Software decoding via ffmpeg) |
| NVIDIA GPU owner | Method 3 (VLC with NVDEC) |
If you're trying to play an MKV video that uses the HEVC (H.265) codec on Linux Mint, you might encounter playback issues due to the lack of support for this codec by default. Here's a step-by-step guide on how to install the necessary packages to enable HEVC playback.
If you need a single block of commands to copy-paste, here is the complete hardware-linked installation:
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.
How to Install HEVC Codec for MKV Video on Linux Mint High Efficiency Video Coding also known as H.265 is the standard for modern high definition MKV files. While Linux Mint is a powerful and user-friendly operating system it does not always ship with proprietary codecs pre-installed due to licensing restrictions. If you are trying to play an MKV video and only hearing audio or seeing a black screen you likely need to install the HEVC codec. This guide will walk you through the process using the terminal and software manager.
The most effective way to handle HEVC playback in Linux Mint is to install the meta-package for multimedia codecs. This package includes a wide array of tools for handling restricted formats. Open your terminal by pressing Ctrl+Alt+T and enter the following command: sudo apt update && sudo apt install mint-meta-codecs
This single command refreshes your package list and installs the necessary drivers for H.265 and other common video formats. During the installation you may be prompted to accept a license agreement for Microsoft fonts or other proprietary bits. Use the Tab key to highlight the OK button and press Enter to proceed.
If you prefer a specific media player that handles codecs internally, VLC Media Player is the gold standard. VLC comes with its own set of built-in libraries which often bypasses the need for system-wide codec installations. You can install it via the terminal with: sudo apt install vlc
Alternatively, if you are using a newer version of Linux Mint, you might consider installing the Flatpak version of your preferred media player from the Software Manager. Flatpaks are sandboxed and usually include the most up-to-date versions of HEVC decoders. Search for Celluloid or VLC in the Software Manager and look for the Flatpak source option in the dropdown menu. install hevc codec for mkv video on linux mint link
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.
Once these steps are complete, restart your media player and open your MKV file. Your video should now play smoothly with full visual clarity and synced audio. By keeping your system updated with these meta-codecs, you ensure compatibility with almost any modern video file you encounter.
To play HEVC (H.265) encoded MKV videos on Linux Mint, you can install a comprehensive package of multimedia codecs or use a media player that includes them by default. Method 1: Install Multimedia Codecs (Recommended)
This is the standard way to ensure system-wide support for HEVC and other proprietary formats. Via the Menu: Launch Menu Sound & Video Install Multimedia Codecs Via Terminal: Open a terminal and run the following command: sudo apt update && sudo apt install mint-meta-codecs Use code with caution. Copied to clipboard
This package installs necessary video/audio codecs, DVD support, and common media libraries. Method 2: Use VLC Media Player If you prefer not to install system-wide codecs, VLC Media Player
is a highly recommended alternative because it comes with its own built-in codecs for almost every format, including HEVC. Linux Mint Install VLC: sudo apt install vlc Use code with caution. Copied to clipboard Method 3: Install Specific HEVC Plugins (Advanced)
If you specifically need HEVC support for players like Totem (the default GNOME player), you can install the For GStreamer applications: sudo apt install gstreamer1.0-libde265 Use code with caution. Copied to clipboard For VLC specifically (if needed): sudo apt install vlc-plugin-libde265 Use code with caution. Copied to clipboard
If you are using an older version of Linux Mint, you might need to add a third-party PPA to access the latest HEVC libraries, but for most modern versions, the mint-meta-codecs package is sufficient. Linux Mint HEVC H.265 - Where's the love? - Linux Mint Forums
To play HEVC (H.265) video within an MKV container on Linux Mint, you typically need to install a set of multimedia codecs that are not included by default due to licensing. 1. Install via the Application Menu (Easiest) | User Type | Recommended Method | |
Linux Mint provides a built-in shortcut to install all necessary codecs at once. Open the Menu. Go to Sound & Video. Select Install Multimedia Codecs.
Follow the on-screen prompts and enter your password when asked. 2. Install via Terminal (Fastest)
If you prefer using the command line, you can install the meta-package that includes FFMPEG, GStreamer, and other essential libraries for H.265 support.
Run the following command:sudo apt update && sudo apt install mint-meta-codecs 3. Troubleshooting Specific Players
If the video still doesn't play in your preferred application, you may need specific plugins:
For VLC Media Player: While modern versions of VLC often include support, older systems might require the libde265 plugin.sudo apt install vlc-plugin-libde265
For GStreamer-based Players (like Totem/Videos): Install the libav plugin to handle HEVC content.sudo apt install gstreamer1.0-libav Recommended Media Players
If you continue to have issues, try using Celluloid (pre-installed on many Mint versions) or MPV, both of which have excellent built-in support for MKV and HEVC without needing extra configuration. Install Video codecs in Linux Mint
To install HEVC codec for MKV video on Linux Mint, you can use the following methods in the terminal: If you're trying to play an MKV video that uses the HEVC (H
Option 1: Install via official repositories (recommended)
sudo apt update
sudo apt install x265
This provides the x265 decoder, which handles HEVC (H.265) playback in most players like VLC, MPV, or Celluloid.
Option 2: Install full multimedia codecs
sudo apt install ubuntu-restricted-extras
(Note: Works on Mint based on Ubuntu. For Mint LMDE, use mint-meta-codecs)
Option 3: Use VLC (which includes HEVC support)
sudo apt install vlc
No external link needed – all packages are in Mint’s default repositories. After installation, restart your media player or log out and back in.
If you still face issues, install ffmpeg:
sudo apt install ffmpeg
For hardware-accelerated decoding (Intel/AMD GPUs), install vaapi drivers:
sudo apt install intel-media-va-driver # for Intel
sudo apt install mesa-va-drivers # for AMD
Software decoding of 4K/8K HEVC can be CPU-intensive. If your GPU supports HEVC decoding, enable hardware acceleration.
This method enables HEVC support for all media players using GStreamer (e.g., Videos/Totem, Rhythmbox) and command-line tools.





