【问题标题】:GStreamer x264enc not found未找到 GStreamer x264enc
【发布时间】:2013-06-25 22:11:01
【问题描述】:

我根据这些说明安装了 GStreamer-0.10 和所有模块(基本、好、坏、丑、ffmpeg)(通过单击上一个/下一个浏览): http://www.linuxfromscratch.org/blfs/view/svn/multimedia/gst-plugins-ugly.html

一切似乎都很好,但是当我想执行我的管道时,我得到了这个错误:

glib.GError: no element "x264enc"

显然该模块没有安装:

gst-inspect x264enc
No such element or plugin 'x264enc'

之后我通过执行安装了编解码器:

sudo apt-get install x264

这也不起作用。所以我手动安装了最新版本: http://www.videolan.org/developers/x264.html

在成功安装 x264 后,我再次在 gstreamer-0.10 丑陋的模块上运行 ./configure 并发现了这一点:

configure: *** checking feature: x264 plug-in ***
configure: *** for plug-ins: x264 ***
checking for X264... no
configure: No package 'x264' found
configure: *** These plugins will not be built: x264
configure: creating ./config.status

检查 x264 是否可用似乎已完成:

which x264
/usr/local/bin/x264

我使用的是 ubuntu 服务器 12.04 LTS。任何想法我必须做什么才能正确编译这个模块?谢谢!

【问题讨论】:

    标签: ubuntu x264 libx264 gstreamer


    【解决方案1】:

    尝试使用以下方式安装它:

    sudo apt-get install gstreamer1.0-plugins-ugly
    

    sudo apt-get install gstreamer0.1-plugins-ugly
    

    它对我有用。

    【讨论】:

      【解决方案2】:

      我在使用 Ubuntu 14.04 和 gstreamer-1.0 时遇到了同样的问题。对我来说,它有助于额外安装 libx264-dev:

      sudo apt-get install libx264-dev
      

      【讨论】:

      • 这也是从源代码构建 Ugly 插件时所必需的。
      【解决方案3】:

      这里的问题是 x264 没有正确安装。我检查了 x264 源目录和安装目标,并且缺少一些文件。手动将它们复制到相应的目录后,重新编译 gstreamer 丑陋的模块就可以了。

      【讨论】:

      • 想分享哪些文件丢失了?我在我的 Fedora 发行版中安装了 gstreamer1-plugins-ugly、gstreamer1-plugins-ugly-free 和 gstreamer1-plugins-ugly-free-devel 包,但是当我尝试使用 gst-inspect-1.0 x264 进行检查时,它说有没有这样的元素。唯一找到的可能是 video/x-h264。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-22
      • 2016-10-07
      • 2019-04-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多