openSuse – VLC does not play HEVC H.265 videos

VLC in Linux does not want to play HEVC videos from smartphone.

Linux and codecs are sometimes a problem, especially if they are commercial in nature. For example, the VLC in my freshly installed openSuse did not play videos from my Google Pixel phone.

Instead, only an error message came up.

Codec not supported:
VLC could not decode the format “hevc” (MPEG-H Part2/HEVC (H.265))

What is missing here is the package “vlc-codecs”, which unfortunately is not available from the official package sources. The solution is to add the “packman” sources to the system:

For Tumbleweed we run the following command:

sudo zypper addrepo -cfp 90 'https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/' packman

For Leap the following:

sudo zypper addrepo -cfp 90 'https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_$releasever/' packman

We then update the package sources:

sudo zypper refresh

Now we still have to allow that we update the VLC from the other source. Otherwise we will get an error message.

sudo zypper dist-upgrade --from packman --allow-vendor-change 

Now we install the VLC and the codecs:

sudo zypper install --from packman vlc vlc-codecs

Afterwards, the playback of the videos worked:

5 comments

  1. I just tried this, and after running

    sudo zypper dist-upgrade –from packman –allow-vendor-change

    I was presented with pages and pages of multiple choice questions about installing/deleting/using broken packages etc. I think were initially 12 questions, went through those, and then was presented with 7 more. I ended up aborting and restarting from a snapshot. Did I do something horribly wrong, or has the process changed?

    1. Hi DG,

      Good call on aborting and rolling back!

      The mess is likely because you’re on Slowroll. If you ran the Tumbleweed command, it probably caused a huge version clash. Tumbleweed’s Packman packages expect newer system files than Slowroll currently has, which explains why zypper freaked out with all those questions.

      You could try using the dedicated Slowroll Packman repo instead. Here are the adjusted commands:

      sudo zypper addrepo -cfp 90 ‘[https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Slowroll/](https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Slowroll/)’ packmansudo zypper refreshsudo zypper dist-upgrade –from packman –allow-vendor-changesudo zypper install –from packman vlc vlc-codecs

Leave a Reply

Your email address will not be published. Required fields are marked *