【问题标题】:Gstreamer on Mac Plugins not workingMac 插件上的 Gstreamer 无法正常工作
【发布时间】:2015-08-31 10:01:08
【问题描述】:

我的 Mac OS X 10.10.3 系统上的 GStreamer 存在一些严重问题。 我通过 Homebrew 安装了 gstreamer、gst-libav、-python、-validate、gst-plugins-base、-good、-bad、-ugly

但现在对我来说唯一可行的例子是:

gst-launch-1.0 videotestsrc ! autovideosink

如果我尝试这样的事情:

gst-launch-1.0 videotestsrc ! jpegenc ! rtpjpegpay ! udpsink host=127.0.0.1 port=5200

我得到一个错误:没有元素>>jpegenc

有人知道我是如何让它工作的吗?

THX 鼻烟

【问题讨论】:

    标签: macos gstreamer


    【解决方案1】:

    我也遇到了这个问题。这是解决方案:

    brew install gst-plugins-good  --with-jpeg
    

    事实证明,虽然 jpegenc 包含在“好”插件中,但 Homebrew 默认不安装它。你必须指定--with-jpeg

    这是brew info 的输出。如您所见,jpeg 支持并不是 Homebrew 默认不安装的唯一支持。

    $ brew info gst-plugins-good
    gst-plugins-good: stable 1.6.1 (bottled), HEAD
    GStreamer plugins (well-supported, under the LGPL)
    http://gstreamer.freedesktop.org/
    /usr/local/Cellar/gst-plugins-good/1.6.0 (363 files, 13M)
      Poured from bottle
    /usr/local/Cellar/gst-plugins-good/1.6.1 (365 files, 13M) *
      Built from source with: --with-jpeg
    From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/gst-plugins-good.rb
    ==> Dependencies
    Build: xz ✔, pkg-config ✔
    Required: gettext ✔, gst-plugins-base ✔, libsoup ✔
    Optional: check ✘, orc ✘, gtk+ ✔, aalib ✘, libcdio ✘, esound ✘, flac ✘, jpeg ✔, libcaca ✘, libdv ✘, libshout ✘, speex ✘, taglib ✘, libpng ✔, libvpx ✘
    ==> Options
    --with-aalib
        Build with aalib support
    --with-check
        Build with check support
    --with-esound
        Build with esound support
    --with-flac
        Build with flac support
    --with-gtk+
        Build with gtk+ support
    --with-jpeg
        Build with jpeg support
    --with-libcaca
        Build with libcaca support
    --with-libcdio
        Build with libcdio support
    --with-libdv
        Build with libdv support
    --with-libpng
        Build with libpng support
    --with-libshout
        Build with libshout support
    --with-libvpx
        Build with libvpx support
    --with-orc
        Build with orc support
    --with-speex
        Build with speex support
    --with-taglib
        Build with taglib support
    --with-x11
        Build with x11 support
    --HEAD
        Install HEAD version
    

    【讨论】:

    • 这在遇到找不到运动单元插件时救了我。我做了brew info gat-plugins-bad 并找到了正确的--with-opencv@2 并重新安装。谢谢
    • 我没有看到任何 --with 选项,只有 --HEAD。这可能与最近对 brew 2.0.0 的更新有关吗?
    猜你喜欢
    • 1970-01-01
    • 2017-07-12
    • 2011-12-18
    • 2019-02-01
    • 2012-05-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多