r/openSUSE • • 6d ago

Installing openh264 codecs

Hi,

I think that I am missing something on the H264 codecs but cannot figure out how to install what I am missing.

Both in OBS the other day and today with VLC it states that there is an error with the H264 codec because of it being missing.

Furthermore, mp4 files do not play either in VLC.

Cheers. zen

12 Upvotes

10 comments sorted by

9

u/klyith 6d ago

Both in OBS the other day and today with VLC it states that there is an error with the H264 codec because of it being missing.

Those programs can't get h264 codecs from open264.

Use flatpaks or packman.

2

u/Alvaroms25 6d ago

dont browser flatpaks come with a weaker sandbox than native ones? isnt that bad for security?

3

u/klyith 6d ago

Less bad for security than 3rd party repos.

(I say this as someone who uses & trusts Packman. I think they're doing a great job. But, objectively, the more repos you have the more potential for compromise.)

3

u/MiukuS Tumbleweed? Zug Zug! 6d ago

> Less bad for security than 3rd party repos.

Flatpaks have zero vetting either. Anyone can publish anything. The non-shared, non-duplicated libraries and applications are a nightmare scenario too.

Yes, you can point out that Flatpaks have sandboxing by default but realistically speaking with the current trend of AI malware development and the limitations of Flatpaks sandboxing, it's more of a "well that's a nice lock you have there, too bad I have a skeleton key".

1

u/klyith 5d ago

Flatpaks have zero vetting either. Anyone can publish anything.

Not if you're talking about flathub, which is what most people are using when they get flatpaks.

4

u/carreganis 6d ago

The easiest way is just to use flatpak versions of all the apps you need codecs for and delete the RPM versions. Flatpaks come with their own codecs whereas Opensuse’s repos don’t distribute them.

But if you need codecs from zypper you can use either the VLC Tumbleweed repo (I tried this and experienced a lot of issues with updates). https://www.videolan.org/vlc/download-suse.html

Or you can use the opi method which enables Pacman repos for codecs (not officially supported, i don’t know if this causes conflicts often but it probably does). https://en.opensuse.org/SDB:Installing_codecs_from_Packman_repositories#Option_5:_OBS_Package_Installer

7

u/Tall-Oil1717 6d ago

zypper in opi opi codecs

2

u/Weak_Coat_9036 Tumbleweed 5d ago

use vlc own zypper repo and install vlc from it and ffmpeg, use "zypper install from VLC", and adjust the priority of vlc repo to the highest, these other comments on this post are useless

2

u/Ok_Opposite7385 6d ago

With Flatpsk, Snap, and AppImage, we're turning a Linux advantage into a Windows-like operation. Previously, Linux's ability to share libraries and code was an advantage, Now each application has its own libraries and code, just for it.

-4

u/Jedibeeftrix TW 6d ago

install tw

uninstall: firefox, vlc, and obs too

install: flatpak versions of each.