Lost codec 'h264'

Smplayer and vlc do not play videos since yesterday. This is what smplayer reports…

(+) Video --vid=1 () (h264 718x480 29.970fps)
(+) Audio --aid=1 (
) ‘Stereo’ (aac 2ch 48000Hz)
Failed to initialize a decoder for codec ‘h264’.
Video: no video
Exiting… (Errors when loading file)

Any suggestions?

Add packman and change vendors.
https://en.opensuse.org/Additional_package_repositories

Why would it have changed overnight?

If you had packman before, but didn’t do “allow vendor change”, it’s possible for the packages from the OpenSUSE repos to overwrite the ones from packman. And they don’t come with any h.264/h.265 decoding.

OpenH264 is available for openSUSE:
http://codecs.opensuse.org/openh264/openSUSE_Leap/

Thanks, I’ll try that.

I invoked…
sudo zypper dup --from packman --allow-vendor-change
and it solved my problem. Thanks to all for the advice.

Just because i did run into the same today, never had codecs for VLC until now.

This SDB site explains well what to do:
https://en.opensuse.org/SDB:Installing_codecs_from_Packman_repositories

Since i love YaST and being on Leap, i pasted the posted URL of that zypper command for Leap in YaST into an Add Repository, switched that to overwrite System Repositories as explained on that page, which did trigger a massive codecs download and by the looks of it included even Mesa.

Just in case somebody enjoys playing with YaST. :wink: