Add the Packman repo (e.g. in YaST->Software Repositories->Add->Community Repositories) if you haven’t done so already, then install the package “vlc-codecs” (with YaST->Software Management f.i.).
If you get conflicts, always choose “Install xxx (with vendor change) openSUSE –> Packman” (or similar).
There’s no need to uninstall VLC before that.
One note: Never add both the VLC repo and the Packman repo! Those are incompatible.
If you do have the VLC repo active, remove it and do that “vendor change” update to Packman as described above to “fix” your system.
If you still want to mix repos, please make sure libraries libavutil5* and libswresample are updated.
Use vlc -vv <filename> command to figure out what is wrong (look for red lines).
If you’re talking about mixing the Packman and VLC repos: I wouldn’t recommend it.
It’s not only about ffmpeg’s libs, but also e.g. libvpx, libx264, libfaad, and others. One library not from the same repo as the others can break the whole system (multimedia-wise).
Oh, and btw, the libdvdread from the VLC repo will make totem crash when trying to play a DVD…
Also there’s no point to do it anyway, because the same VLC version is available from Packman as well (actually both vlc packages are just links to the same package on OBS). The other libs are usually more current in Packman as well.
So it’s just not worth it IMHO.
The only thing that’s unique in the VLC repo is the latest VLC beta version. And currently that one’s still from November last year…
And libdvdcss as well, but that’s available from its own repo, too, without asking for problems.
According to my experience, the VLC packaged by OpenSUSE does not support h264 for whatever reason.
Therefore, I must install VLC packaged by Packman, which has properly enabled h264 capability.
Having VLC already installed from OpenSUSE official repos, I go to Yast software management, and change the vendor of VLC related packages from OpenSUSE to packman. Then after vendor has been changed, VLC will have h264 decoder.
I’d recommend also to switch gstreamer package vendor to Packman, and install the so called “bad” gstreamer plugins, then your KDE video player will be able to play almost all popular videos formats.
Because purely legally speaking, bundling H264 decoder with VLC is illegal or at least very, very risky should one of the patent holders decide to wake up and put the shoe in the wrong foot.