macoshomebrewgstreamer

Gstreamer: gstreamer can't find avdec_h264, brew can't install gst-libav anymore


On macOS 14.0.

I have a pipeline with avdec_h264 and gstreamer can't find it. According to Gstreamer's website, it's part of gst-libav. when I try to do brew install gst-libav, I get this:

Warning: gstreamer 1.22.6_1 is already installed and up-to-date.
To reinstall 1.22.6_1, run:
  brew reinstall gstreamer

Checking on Homebrew's website I see this package is now gone, and on gstreamer's package, it says all gst- plugins should be bundled. Then why is avdec_h264 not there?

Is there a binary I can download of this plugin to put in the plugin folder, or a way to force installation of gst-libav? Or another solution?


Solution

  • I ran into the same issue in my pipeline, by having the homebrew install of gstreamer; Notice though what the gstreamer docs web for macos says about it:

    "GStreamer is also available on Homebrew, and you should be able to use that. However, please note that some plugins are not shipped by Homebrew, and you should avoid mixing Homebrew and the official installers on the same system."

    Removing any gstreamer package from brew and installing it again from the binary releases source fixed this error for me, even with other plugins such as "webrtcbin".

    Hope this helps