首页 文章

Mac插件上的Gstreamer无法正常工作

提问于
浏览
2

我的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 snuef

1 回答

  • 3

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

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

    事实证明,虽然 jpegenc 包含在'good'插件中,但默认情况下它并不是由自制软件安装的 . 你必须指定 --with-jpeg

    这是 brew info 的输出 . 正如您所看到的,jpeg支持并不是默认情况下自动安装的唯一东西 .

    $ 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
    

相关问题