对于命令行工具,GStreamer的autovideosink缺失 - Debian 9.4

时间:2018-04-05 05:42:49

标签: c gstreamer gstreamer-1.0 gst-launch

仅在使用GStreamer命令行工具时才会出现此问题。包含" autovideosink"的C程序编译并按预期运行。

gst-inspect-1.0 autovideosink

返回

No such element or plugin 'autovideosink'

gst-launch-1.0 videotestsrc ! autovideosink

返回

WARNING: erroneous pipeline: no element "autovideosink"

我正在运行Debian 9.4。我使用以下命令安装了gstreamer:

sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools

1 个答案:

答案 0 :(得分:0)

元素autovideosink由gstreamer插件autodetect提供,后者又包含在Debian包gstreamer1.0-plugins-good中。尝试在您的系统上找到该插件:

  

$ locate libgstautodetect.so   /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstautodetect.so

因为它以某种方式存在于您的系统中,可能您的C程序是32位而gst-launch-1.0是64位(反之亦然)。

使用GST_DEBUG调试gstreamer比strace更充分:

  

GST_DEBUG = INFO gst-launch-1.0 videotestsrc! autovideosink