Dom*_*ber 4 ubuntu gstreamer x264 libx264
我根据这些说明安装了 GStreamer-0.10 和所有模块(基本、好的、坏的、丑陋的、ffmpeg)(点击上一页/下一页浏览):http : //www.linuxfromscratch.org/blfs/view/svn/multimedia /gst-plugins-ugly.html
一切似乎都运行得很好,但是当我想执行我的管道时,我收到了这个错误:
glib.GError: no element "x264enc"
Run Code Online (Sandbox Code Playgroud)
显然没有安装模块:
gst-inspect x264enc
No such element or plugin 'x264enc'
Run Code Online (Sandbox Code Playgroud)
之后,我通过执行安装了编解码器:
sudo apt-get install x264
Run Code Online (Sandbox Code Playgroud)
这也不起作用。所以我手动安装了最新版本: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
Run Code Online (Sandbox Code Playgroud)
检查 x264 是否可用似乎已满:
which x264
/usr/local/bin/x264
Run Code Online (Sandbox Code Playgroud)
我正在使用 ubuntu 服务器 12.04 LTS。任何想法我必须做什么才能正确编译这个模块?谢谢!
尝试使用以下方法安装它:
sudo apt-get install gstreamer1.0-plugins-ugly
Run Code Online (Sandbox Code Playgroud)
或者
sudo apt-get install gstreamer0.1-plugins-ugly
Run Code Online (Sandbox Code Playgroud)
它对我有用。
小智 5
我在 Ubuntu 14.04 和 gstreamer-1.0 上也遇到了同样的问题。对我来说,额外安装 libx264-dev 很有帮助:
sudo apt-get install libx264-dev
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
18935 次 |
| 最近记录: |