【问题标题】:No such element filesrc after installing Gstreamer安装 Gstreamer 后没有这样的元素 filesrc
【发布时间】:2019-11-07 08:22:41
【问题描述】:

我是 Gstreamer 的新手。我安装了 Gstreamer,发现安装后“filesrc”元素丢失(使用gst-inspect-1.0)。如果我输入gst-inspect-1.0 filesrc,它会返回“没有这样的元素或插件”

我的环境:

我最初的目标是通过 OpenCV+Gstreamer 进行相机捕捉,而我的 vs2019 项目不断返回“no element v4l2src”。终于发现连“filesrc”都不可用了,这说明我在和Gstreamer一起构建OpenCV之前就已经有问题了。

我也检查了this installation guide,但没有运气。是否有一些额外的步骤来安装插件?

【问题讨论】:

    标签: windows gstreamer


    【解决方案1】:

    基于this post,我应该删除gstreamer“注册表”以强制它重新检测可用功能。此解决方案适用于 linux,而不适用于 Windows 10。但我终于找到了该注册表的绝对路径,幸运的是:

    C:\Users\{your user name}\AppData\Local\Microsoft\Windows\INetCache\gstreamer-1.0\registry.x86_64.bin
    

    我为获得“filesrc”所做的工作出现在列表中并且可用:

    1. Delete the registry file manually
    2. Performed a clean re-install
    3. Run "gst-inspect-1.0"
    

    希望我的解决方法可以帮助陷入相同情况的人。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-29
      • 2013-12-01
      • 1970-01-01
      • 2022-06-27
      • 2023-01-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多