Failed to initialize a decoder for codec 'hevc'. Unable to play video

Fresh install of Fedora 41 on my ThinkPad P14s and I have all the codecs installed but cant seem to play ‘hevc’ format.

The error message in mpv is: Failed to initialize a decoder for codec 'hevc'.

Package "openh264-2.4.1-2.fc41.x86_64" is already installed.
Package "mozilla-openh264-2.4.1-2.fc41.x86_64" is already installed.
Package "svt-vp9-libs-0.3.0-12.fc41.x86_64" is already installed.
1 Like

Some system info:

# System Details Report
---

## Report details
- **Date generated:**                              2024-11-04 07:54:11

## Hardware Information:
- **Hardware Model:**                              Lenovo ThinkPad P14s Gen 4
- **Memory:**                                      32.0 GiB
- **Processor:**                                   AMD Ryzen™ 7 PRO 7840U w/ Radeon™ 780M Graphics × 16
- **Graphics:**                                    AMD Radeon™ 780M
- **Disk Capacity:**                               2.0 TB

## Software Information:
- **Firmware Version:**                            R2FET59W (1.39 )
- **OS Name:**                                     Fedora Linux 41 (Workstation Edition)
- **OS Build:**                                    (null)
- **OS Type:**                                     64-bit
- **GNOME Version:**                               47
- **Windowing System:**                            Wayland
- **Kernel Version:**                              Linux 6.11.5-300.fc41.x86_64

HEVC is H.265, so you need to install the codec for that.

HEVC corresponds to ‘x265’ and ‘x265-libs’. Have you installed them?

Anyway, I installed the following:

dnf install libavcodec-freeworld gstreamer1-vaapi gstreamer1-plugins-base gstreamer1-plugins-good gstreamer1-plugins-good-extras gstreamer1-plugins-ugly-free gstreamer1-plugins-bad-free gstreamer1-libav gstreamer1-plugins-bad-freeworld gstreamer1-plugins-ugly gstreamer1-plugin-openh264 pipewire-gstreamer svt-vp9-libs x265 x265-libs

I did not have rpmfusion set up properly and had to re-do it. These packages now allow me to watch the videos. Thank you

1 Like

Added h265, multimedia, video-codecs