gstreamer没有找到 plugin和audiofilterexample

gstreamer加载插件失败

  • 问题背景
  • 问题原因
  • 问题解决

问题背景

按照网上教程,自己编译了gstreamer, gstreamer-plugin-base, bad, good, ugly,全都用的默认的./configure, make, make install。

然后想自己编译插件,把自己的插件加入到gstreamer中去。

从网上下载了gst-template,然后里面有2个插件例子:plugin和audiofilterexample。
这也是直接 autogen.sh, make && make install安装的。

然后运行 gst-inspect-1.0 plugin,运行结果如下:
“没有那样的组件或插件‘plugin’”

问题原因

这个其实,是因为加载插件失败导致的。加载插件失败的原因,就是因为没有找到依赖库。

问题解决

我后来直接 export LD_LIBRARY_PATH=/usr/local/lib
然后再 gst-inspect-1.0 plugin就成功了。

所以,大家如果遇到同样的问题,只需要把你的 gstreamer安装lib的路径,加入到LD_LIBRARY_PATH中去即可。

你可能感兴趣的:(gstreamer)