5

我根据这些说明安装了 GStreamer-0.10 和所有模块(基础、好、坏、丑、ffmpeg)(通过单击 prev/next 浏览): 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。任何想法我必须做什么才能正确编译这个模块?谢谢!

4

3 回答 3

9

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

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

或者

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

它对我有用。

于 2017-04-05T14:00:23.843 回答
4

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

sudo apt-get install libx264-dev
于 2015-09-18T11:36:11.970 回答
1

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

于 2013-07-09T09:18:01.100 回答