【问题标题】:WARNING: erroneous pipeline: no element "x264enc"警告:错误的管道:没有元素“x264enc”
【发布时间】:2017-02-09 18:38:45
【问题描述】:

在过去的几天里,我一直在努力让它运行起来。我有一个需要 x264enc 的 gstreamer 命令。我正在运行 Mac 我似乎无法安装 x264 开发库。我已经安装了gst-plugins-bad,但这并没有帮助。我在论坛上读到我需要先安装 x264 库,然后再安装gst-plugins-bad

我还尝试了 VideoLAN 的 http://www.videolan.org/developers/x264.html 也没有帮助。我不知道我错过了什么。如果是 Linux,我可以安装 x264-devel 软件包。但我似乎在 Mac El Capitan 上找不到替代方案。

我得到的错误是:

警告:错误的管道:没有元素“x264enc”

请帮忙。

【问题讨论】:

    标签: macos gstreamer gstreamer-1.0


    【解决方案1】:

    尝试: brew install gst-plugins-ugly --with-x264

    【讨论】:

    • Homebrew 已删除所有附加选项 (grr!),因此 --with-x264 不再有效。有谁知道现在如何获得264?它现在只是gst-plugins-ugly 的一部分吗?
    • @JasonAxelson 是的,它应该在没有 --with-x264 的情况下工作
    【解决方案2】:

    x264enc 在gst-plugins-ugly,你安装了吗? Homebrew 是一个流行的 macOS 包管理器,使用它安装 gstreamer 和 x264 也可能会有所帮助。

    【讨论】:

      【解决方案3】:

      按以下顺序构建 GStreamer 的所有模块:

      (1) Gstreamer-1.0
      (2) gst-libav-1.8.3
      (3) gst-plugins-base-1.8.3
      (4) gst-plugins-good-1.8.3
      (5) gst-plugins-bad-1.8.3
      (6) gst-plugins-ugly-1.8.3
      

      设置路径如下:

      export PATH=$PATH:<install_dir_path>/bin 
                               export LD_LIBRARY_PATH=<install_dir_path>/lib
                               export GST_PLUGIN_PATH=<install_dir_path>/lib/gstreamer-1.0
      

      【讨论】:

        【解决方案4】:

        # building gst-plugins-ugly

        export version=1.14.5

        echo "building gst-plugins-ugly-$version"

        cd $PROJECT_DIR/gst-plugins-ugly-$version

        ./autogen.sh

        ./configure --with-x264-libraries=/usr/lib/x86_64-linux-gnu/libx264.so

        make -j8

        sudo make install

        【讨论】:

        猜你喜欢
        • 2018-05-08
        • 2018-05-11
        • 2019-04-07
        • 1970-01-01
        • 1970-01-01
        • 2020-07-06
        • 2019-10-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多