Install Hevc Codec For Mkv Video On Linux Mint Link [patched] May 2026

Installing the HEVC (H.265) codec on Linux Mint is typically a one-click affair, though users occasionally run into hitches that require terminal commands. For most users, the standard multimedia package provides everything needed to play .mkv files smoothly. Quick Setup Guide

The "Official" Way: Go to Launch Menu ‣ Sound & Video ‣ Install Multimedia Codecs. This installs the mint-meta-codecs package, which is a comprehensive bundle for most modern media formats.

The Terminal Shortcut: If the menu option is missing, open a terminal and run:sudo apt install mint-meta-codecs. Troubleshooting Playback Issues

If you have already installed the standard codecs but .mkv files still won't play, consider these targeted fixes:

Install Enhanced Libraries: The standard libavcodec package may lack some high-efficiency support. You can replace it with the "extra" version by running:sudo apt install libavcodec-extra.Note: This might prompt you to remove the standard version, as they cannot coexist.

Specific GStreamer Plugins: For players like Celluloid or Totem, you may need specific plugins for H.265 content:sudo apt install gstreamer1.0-libde265.

VLC Plugin: If VLC specifically gives a decoding error, use:sudo apt install vlc-plugin-libde265. Pro Tip: Use Self-Contained Players How to install H.265 / HEVC codec on Ubuntu Linux?

To play HEVC (H.265) content in MKV containers on Linux Mint, you can install the necessary codecs via the system's official multimedia package or through specific library plugins. Option 1: Install Official Multimedia Codecs (Recommended)

Linux Mint provides a meta-package that includes the most common multimedia codecs, including those needed for HEVC and MKV playback.

GUI Method: Open your Application Menu, go to Sound & Video, and click Install Multimedia Codecs.

Terminal Method: Open a terminal and run the following command: sudo apt install mint-meta-codecs Use code with caution. Copied to clipboard

This package installs essential libraries such as FFMPEG and GStreamer plugins that handle HEVC decoding. Option 2: Install Specific HEVC Plugins install hevc codec for mkv video on linux mint link

If your media player still cannot decode HEVC after installing the meta-package, you may need the libde265 plugin, which is specifically designed for H.265 content. For VLC Media Player: sudo apt install vlc-plugin-libde265 Use code with caution. Copied to clipboard For GStreamer-based players (like Xplayer or Totem): sudo apt install gstreamer1.0-libde265 Use code with caution. Copied to clipboard Option 3: Use VLC or SMPlayer

Players like VLC and SMPlayer often come with their own built-in codec libraries and may play HEVC MKV files without needing additional system-wide installations. You can install them via the Linux Mint Software Manager or the terminal: sudo apt install vlc smplayer Use code with caution. Copied to clipboard Helpful Resources

Linux Mint Installation Guide: Multimedia Codecs: Official documentation on enabling media support.

Linux Mint Forums: HEVC Discussion: Community troubleshooting for MKV and HEVC playback. Multimedia codecs - Linux Mint Installation Guide

To install the HEVC (H.265) codec for MKV video playback on Linux Mint, you should prioritize installing the standard multimedia codec meta-package, which provides comprehensive support for most restricted formats including HEVC. Step 1: Install Multimedia Codecs

Linux Mint offers a dedicated package that includes the essential codecs needed for high-efficiency video coding (HEVC) and MKV containers.

Command Line Method: Open your terminal (Ctrl+Alt+T) and run:sudo apt update && sudo apt install mint-meta-codecs -y.

GUI Method: You can also find this in the system menu under Launch Menu ‣ Sound & Video ‣ Install Multimedia Codecs. Step 2: Recommended Video Players

While the system codecs help, some media players come with their own built-in libraries that handle HEVC more efficiently without requiring additional system-wide configuration.

VLC Media Player: Widely considered the most powerful option, VLC supports HEVC (H.265) out of the box in modern versions (3.0+). Install: sudo apt install vlc

MPV / Celluloid: These are lightweight, high-performance players that often handle 4K HEVC content with less lag than others. Install Celluloid: sudo apt install celluloid Installing the HEVC (H

SMPlayer: An excellent front-end for MPlayer/MPV that provides deep customization for codec handling. Step 3: Troubleshooting Lag and Hardware Acceleration

HEVC is a demanding codec. If your videos are stuttering or causing high CPU usage, you may need to enable hardware decoding. (Solved)Please recomment a player for MKV video files.

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)

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 Using VLC: Open VLC, go to Media > Open File

Verify HEVC Playback

Check FFmpeg support

ffmpeg -decoders | grep 265

Understanding HEVC and Linux Mint

HEVC, or High Efficiency Video Coding, is a video compression standard that allows for more efficient video encoding and decoding, providing better compression efficiency than its predecessor, H.264. Linux Mint, a popular Linux distribution, supports various multimedia formats out of the box but may require additional codecs for specific formats like HEVC.

Method 6: Convert HEVC MKV to H.264 (Last Resort)

If your hardware is too old for HEVC decoding, convert the file.

Summary: The Core Command Chain for "install hevc codec for mkv video on linux mint link"

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.

Method 2: Install FFmpeg and GStreamer Codecs (System-Wide)

This method enables HEVC support for all media players using GStreamer (e.g., Videos/Totem, Rhythmbox) and command-line tools.

Problem 3: Green or garbled video when using hardware decoding

Solution: 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).


Using FFmpeg:

ffmpeg -i input.mkv -c:v libx264 -crf 23 -c:a aac output.mp4

Parameters explained: