开发者

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

开发者 https://www.devze.com 2023-03-16 16:05 出处:网络
I have a c++ program using gstreamer. The problem is that several of my elements--namely the ffmpeg plugins--do not work in the program. However when I run for example:

I have a c++ program using gstreamer. The problem is that several of my elements--namely the ffmpeg plugins--do not work in the program. However when I run for example:

gst-inspect | grep ffenc_h261   It shows up.

If I run gst-launch .... ! ffenc_h261 ! ... , it works.

However in my application, I always receive eleme开发者_运维百科nt 'ffenc_h261' not found or something like that.

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. 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.

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.

Maybe I should complain about that to debian. Anyways, reading the output of ./configure is the way to go.

0

精彩评论

暂无评论...
验证码 换一张
取 消