gpt4 book ai didi

ubuntu - 使用 gstreamer-1.0 没有这样的元素 "v4l2src",但存在于 gstreamer-0.10 [UBUNTU 16.04.2 LTS]

转载 作者:行者123 更新时间:2023-12-04 18:26:28 26 4
gpt4 key购买 nike

我在 gstreamer-1.0 中遇到了 v4l2src 的问题,但它似乎在 gstreamer-0.10 中存在。我在网上四处搜索,但这些建议似乎都没有任何区别。我在下面包含了一堆结果。还有什么我可以尝试的吗?


更新:@alper-kucukkomurler 是正确的。我安装了 anaconda,which gst-inspect-1.0 正在返回 ~/anaconda2/bin。从我的路径中删除 anaconda 确实解决了这个问题。但是,如果可能的话,我更喜欢将 anaconda 保持在路径中的解决方案。有没有办法使这项工作? (我确实在 anaconda 中安装了 gstreamer 和 gst-plugins-base 包)。


更新 2:来自另一个论坛的提示 https://forum.openframeworks.cc/t/error-ofgstutils-error-getting-device-data-no-element-v4l2src/26908/6

指向这篇文章 GStreamer plugin search path?

讨论 GST_PLUGIN_PATH。我实际上没有这样的环境变量。但这是一个额外的信息点。


$ sudo apt-get install gstreamer1.0-plugins-good
Reading package lists... Done
Building dependency tree
Reading state information... Done
gstreamer1.0-plugins-good is already the newest version (1.8.3-1ubuntu0.4).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

# (I've tried --reinstall too)


$ locate libgstvideo4linux2.so
/usr/lib/x86_64-linux-gnu/gstreamer-0.10/libgstvideo4linux2.so
/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvideo4linux2.so



$ gst-inspect-1.0 -b
Blacklisted files:
Total count: 0 blacklisted files

$ gst-inspect-0.10 -b
Blacklisted files:
Total count: 0 blacklisted files



$ gst-launch-1.0 v4l2src
ERROR: pipeline could not be constructed: no element "v4l2src".

$ gst-launch-0.10 v4l2src
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2625): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-linked (-1)
Execution ended after 2089256849 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...


$ gst-inspect-1.0 v4l2src
No such element or plugin 'v4l2src'

$ gst-inspect-0.10 v4l2src
Factory Details:
Long name: Video (video4linux2) Source
Class: Source/Video
Description: Reads frames from a Video4Linux2 device
Author(s): Edgard Lima <edgard.lima@indt.org.br>, Stefan Kost <ensonic@users.sf.net>
Rank: primary (256)

Plugin Details:
Name: video4linux2
Description: elements for Video 4 Linux
Filename: /usr/lib/x86_64-linux-gnu/gstreamer-0.10/libgstvideo4linux2.so
Version: 0.10.31
License: LGPL
Source module: gst-plugins-good
Source release date: 2012-02-20
Binary package: GStreamer Good Plugins (Ubuntu)
Origin URL: https://launchpad.net/distros/ubuntu/+source/gst-plugins-good0.10
...
...



$ uname -a
Linux MSA-BLADE-UBUNTU 4.11.3-041103-generic #201705251233 SMP Thu May 25 16:34:52 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

最佳答案

您可能遇到与我相同的问题,我丢失了一个 .so 文件,该文件位于我的动态共享库路径之外的一个文件夹中。我可以按照描述的步骤看到 here .为了解决这个问题,我必须运行 export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib

关于ubuntu - 使用 gstreamer-1.0 没有这样的元素 "v4l2src",但存在于 gstreamer-0.10 [UBUNTU 16.04.2 LTS],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44233062/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com