【问题标题】:Gst good plugins installed but - no element "autovideosink"已安装 Gst 好的插件,但没有“autovideosink”元素
【发布时间】:2019-01-08 17:42:13
【问题描述】:

我正在关注 GStreamer 基础教程。安装好的插件。教程 2(包括在 C 中使用 autovideosink 构建管道)工作正常 - 所以 autovideosink 元素显然存在 - 它应该在哪里。但是 - 我尝试从命令行使用 autovideosink 的教程 10(GStreamer 工具)不起作用。 (这是一个 Ubuntu 16.04 环境)

# any attempt to use autovideosink says no element
$ gst-inspect-1.0 autovideosink
No such element or plugin 'autovideosink'

# good plugins installed
$ dpkg -l | grep gstreamer1.0-plugins-good:amd64
ii  gstreamer1.0-plugins-good:amd64             1.8.3-1ubuntu0.4                             amd64        GStreamer plugins from the "good" set

# shared object file is present
$ locate libgstautodetect.so /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstautodetect.so
/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstautodetect.so

搜索 Stackoverflow 和其他地方,我看到人们问了同样的问题,但问题没有得到回答。

【问题讨论】:

    标签: gstreamer


    【解决方案1】:

    这是一个路径问题。 看到这个链接: https://gstreamer.freedesktop.org/documentation/design/missing-plugins.html
    查看您需要的路径(在我的情况下,自动视频接收器位于 libgstautodetect.so 中)

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

    应该看到:/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstautodetect.so
    然后将其添加到 gstreamer 路径

    export GST_PLUGIN_SYSTEM_PATH_1_0=$GST_PLUGIN_SYSTEM_PATH_1_0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0
    echo $GST_PLUGIN_SYSTEM_PATH_1_0
    

    你应该看到:/usr/lib/x86_64-linux-gnu/gstreamer-1.0
    现在它可以工作了:

    gst-inspect-1.0 autovideosink
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-04-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多