简体   繁体   English

gstreamer 1.0卸载链接并使用外部x264enc

[英]gstreamer 1.0 uninstalled link to & use external x264enc

I have installed latest gstreamer uninstalled via git and have it in, 我已经安装了通过git gstreamer uninstalled最新gstreamer uninstalled并将其放入,

/home/ec2-user/gst/master/

to launch GST I use, cd /home/ec2-user/gst; ./gst-master; myGstProg 启动我使用的GSTcd /home/ec2-user/gst; ./gst-master; myGstProg cd /home/ec2-user/gst; ./gst-master; myGstProg cd /home/ec2-user/gst; ./gst-master; myGstProg . cd /home/ec2-user/gst; ./gst-master; myGstProg When I test for x264enc I get not found. 当我测试x264enc找不到。

[ec2-user@xxxxxx master]$ gst-inspect-1.0 x264enc
No such element or plugin 'x264enc'

As part of our normal dev build we have compiled and installed both gst and x264enc , 作为正常开发版本的一部分,我们已经编译并安装了gstx264enc

[ec2-user@xxxxxx ~]$ gst-inspect-1.0 x264enc
Factory Details:
  Rank                     primary (256)
  Long-name                x264enc
  Klass                    Codec/Encoder/Video
  Description              H264 Encoder
  Author                   Josef Zlomek <josef.zlomek@itonis.tv>, Mark Nauwelaerts <mnauw@users.sf.net>

Plugin Details:
  Name                     x264
  Description              libx264-based H264 plugins
  Filename                 /home/myBin/lib/gstreamer-1.0/libgstx264.so

Compiling the source, no problems are reported, however when running the program at gst_element_factory_make ("x264enc", "myX264"); 编译源代码时,没有报告任何问题,但是在gst_element_factory_make ("x264enc", "myX264");运行程序时gst_element_factory_make ("x264enc", "myX264"); we get, 我们得到

GStreamer-CRITICAL **: gst_bin_add: assertion 'GST_IS_ELEMENT (element)' failed

At first I copied /home/myBin/lib/gstreamer-1.0/libgstx264.so to /home/ec2-user/gst/test_libs/libgstx264.so and added LD_LIBRARY_PATH=/home/ec2-user/gst/test_libs:$LD_LIBRARY_PATH to master/gstreamer/scripts/gst-uninstalled 最初我将/home/myBin/lib/gstreamer-1.0/libgstx264.so复制到/home/ec2-user/gst/test_libs/libgstx264.so并添加了LD_LIBRARY_PATH=/home/ec2-user/gst/test_libs:$LD_LIBRARY_PATH master/gstreamer/scripts/gst-uninstalled

How/what do I update under the /home/ec2-user/gst to include the x264enc element? 如何/在/home/ec2-user/gst下更新以包含x264enc元素?

As I can't make comments, some remarks: 由于我无法发表评论,因此请注意以下几点:

In my point of view the problem is that when trying to compile the GST_Head some library is missing and refuses to compile x264 plugin. 以我的观点,问题是,当尝试编译GST_Head时,某些库丢失了,并且拒绝编译x264插件。

This plugin (x264->x264enc) is located at gst-plugins-ugly library. 该插件(x264->x264enc)位于gst-plugins-ugly库。

In my computer, for example (gstreamer unninstaled 1.10.1 version) , if I launch ./autogen.sh or ./configure , referring to the x264 plugin, it prints me the next stuff: 例如,在我的计算机(gstreamer unninstaled 1.10.1 version) ,如果我启动./autogen.sh./configure引用x264插件,它将向我显示以下内容:

configure: *** checking feature: x264 plug-in ***
configure: *** for plug-ins: x264 ***
checking for X264... yes
configure: *** These plugins will be built: x264
checking that generated files are newer than configure... done

It is printing the same to you? 它向您打印相同吗?

You should also check that x264 and libx264-* libraries are correctly installed on your system, otherwise the configure will not compile x264 plugin. 您还应该检查系统上是否正确安装了x264libx264-*库,否则configure不会编译x264插件。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM