简体   繁体   English

Gstreamer 元素在 c 程序中不可用,但使用 gst-tools 确实可用

[英]Gstreamer elements not appearing available in c program but they do appear available using gst-tools

I have a c++ program using gstreamer.我有一个使用 gstreamer 的 c++ 程序。 The problem is that several of my elements--namely the ffmpeg plugins--do not work in the program.问题是我的几个元素——即 ffmpeg 插件——在程序中不起作用。 However when I run for example:但是,例如当我运行时:

gst-inspect | grep ffenc_h261   It shows up.

If I run gst-launch.... . ffenc_h261. ...如果我运行gst-launch.... . ffenc_h261. ... gst-launch.... . ffenc_h261. ... gst-launch.... . ffenc_h261. ... , it works. gst-launch.... . ffenc_h261. ... ,它的工作原理。

However in my application, I always receive element 'ffenc_h261' not found or something like that.但是在我的应用程序中,我总是收到未找到的元素 'ffenc_h261' 或类似的东西。

Any ideas?有任何想法吗?

Turns out that my distro was all flubbed up.原来我的发行版都搞砸了。 I uninstalled everything that uses gstreamer, sudo apt-get purge gstreamer*, then downloaded all of the source, compiled, and installed.我卸载了所有使用 gstreamer、sudo apt-get purge gstreamer* 的东西,然后下载了所有源代码、编译并安装。 It was a real pain in the ass, but I got it working.这是一个真正的痛苦,但我得到了它的工作。 One more reason that most package managers are nice, but are no substitute for knowing how to use a compiler and make.另一个原因是大多数 package 管理器很好,但不能替代知道如何使用编译器和制作。

The most annoying thing about both yum and apt is that when they are installing something like gst-ffmpeg-plugins, the package manager does not tell you that it is disabling certain features bacause another feature isn't installed.关于 yum 和 apt 最烦人的事情是,当他们安装类似 gst-ffmpeg-plugins 的东西时,package 管理器不会告诉您它正在禁用某些功能,因为没有安装另一个功能。

Maybe I should complain about that to debian.也许我应该向 debian 抱怨这一点。 Anyways, reading the output of./configure is the way to go.无论如何,阅读 output of./configure 是通往 go 的方法。

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

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