Tried to upgrade #openSUSE #Tumbleweed. Got some weird errors because #Packman has some syncing issues or something.

Read a post that said "You don't need Packman anyway these days! Just use distro libraries unless you're doing something unusual"

Switched packages back. Tried playing a video. "Nope - no h264 support".

Awesome. So "watching a video" is considered "unusual" by some people ๐Ÿ™„

(Yes, it's a patent-encumbered codec, but if even DECODING the average video that you get DRM-free from GOG is "unusual" then you're only doing very boring stuff on your machine!)

I did suspect that this might happen. But it's still a "ugh, dumb advice on the forum that ignores important details" situation.

Well, this is fun.

I've got the `repo-openh264` repo configured (codecs.opensuse.org) and it has a `gstreamer-plugin-openh264` package available. But it's only v1.22 and GStreamer is at 1.28 in #openSUSE #Tumbleweed now. And if I install it then one of the conflicts indicates that it's now bundled in `gstreamer-plugins-bad` (and I can see a SO file in the list)

That repo has the `mozilla-openh264` package as well.

There's a different version of of libopenh264 with a version string that includes `noopenh264`, but it's from repo-oss.

If I run `ffmpeg -codecs | grep 264` then I get a line ` ..V.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10`, so it knows SOMETHING about the codec.

But even after switching packages, ffplay still gives "No decoder could be found for codec h264" and Videos gives "requires a H.264 (Baseline Profile) decoder plugin, which is not installed" ๐Ÿ˜

And I can't just uninstall and reinstall the whole of GStreamer because that rips out loads of other packages with it (and ignoring the dependencies defeats the idea of "try to clean it up")

Okay, so the `noopenh264` package is, as expected, a placeholder for licensing and build purposes. So that won't work.

There is a wiki page. That extra repo is necessary. So it _should_ be working. But it isn't. Awesome ๐Ÿ˜

https://en.opensuse.org/OpenH264#Installation

Still poking this.

`gst-inspect-1.0` lists "libav: avdec_h264: libav H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 decoder" and "openh264: openh264dec: OpenH264 video decoder" amongst other plugins. So _it_ can see something.

But `gst-play-1.0` reports a missing plugin and then PackageKit says "Did not install codec: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable"

Found someone suggesting that it could be libav. But I've got gstreamer-plugins-libav, which is pulling in libavcodec62.

And if I re-enable Packman and install their bad/ugly-codecs then it STILL doesn't work. I'm missing something and I can't see what.

Balls and bugger it. Time for a rollback. Thank goodness for Snapper! #openSUSE #Tumbleweed #Btrfs

Awesome. My video may have been broken for a while. I've rolled back and I'm getting green videos ๐Ÿ˜ฌ So it's _trying_ to play them. But failing somewhere.

Edit: Rolled back further. It's not the NVidia update that broke it either. It was something before that. And it's all videos in Totem.

But ffplay is working. And gst-play-1.0 is working. It's just Totem. Wonderful. I wonder what it is doing differently.

Posting on the forums in case anyone can help.

https://forums.opensuse.org/t/h-264-videos-not-working-without-packman/192697

Green videos is apparently a VA-API problem. So maybe something not playing nicely with NVidia drivers. But uninstalling gstreamer-plugins-vaapi didn't immediately help (and I think it would revert back to software rendering anyway, if I understand correctly)

H.264 videos not working without Packman?

I tried to do a โ€œdupโ€ in Myrlyn last night, and got a load of errors because it was trying to pull in an ffmpeg package from Packman thatโ€™s only intended for building, not for users. While reading around, I found people saying that Packman isnโ€™t necessary for most users these days. According to the openSUSE Wiki, it should be sufficient to just have openh264 installed from the extra repo. However, Iโ€™ve swapped all of my packages away from Packman and canโ€™t get it to work. ffplay ink.\(2014\).1...

openSUSE Forums

I got a fix for my GStreamer/h264 codec issue!

Delete the cache ๐Ÿ˜

Yes, the cache that had an up-to-date modification time (and so was presumably getting updated, if not rebuild, when watching videos) still had SOMETHING broken in it that wasn't going away. `rm .cache/gstreamer-1.0/registry.x86_64.bin` forced a _full_ rebuild and now it works.

Now I just need to fix some older videos.

Totem shows them as green screens (but plays the audio).
Showtime (the new app) crashes with the Vulkan memory error.
And so obviously, given that they're all based on GStreamer, then `gst-play`โ€ฆ plays them perfectly fine ๐Ÿ˜