0

该问题仅在使用 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

4

1 回答 1

0

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

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

由于它以某种方式在您的系统上,因此您的 C 程序可能是 32 位和gst-launch-1.064 位(反之亦然)。

使用GST_DEBUG调试 gstreamer比strace

GST_DEBUG=INFO gst-launch-1.0 videotestsrc !自动视频接收器

于 2018-04-12T12:31:14.410 回答