首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >没有使用gstreamer-1.0的元素"v4l2src“,但在gstreamer-0.10中存在[Ubuntu16.04.2LTS]

没有使用gstreamer-1.0的元素"v4l2src“,但在gstreamer-0.10中存在[Ubuntu16.04.2LTS]
EN

Stack Overflow用户
提问于 2017-05-28 23:52:04
回答 1查看 4.2K关注 0票数 3

我在gstreamer-1.0中遇到了v4l2src问题,但它似乎出现在gstreamer-0.10中。我已经在网上搜索过了,但是这些建议似乎都没有什么区别。我在下面列出了一系列的结果。还有什么我可以试试的吗?

更新:@是正确的。我安装了anaconda,which gst-inspect-1.0正在返回~/anaconda2/bin。把蟒蛇从我的道路上移走确实解决了这个问题。然而,如果可能的话,我更希望有一种解决方案,使anaconda保持在路径上。有办法让这件事成功吗?(我确实在anaconda中安装了gstreamer和gst插件-基础包)。

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

指向这篇文章GStreamer plugin search path?

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

代码语言:javascript
复制
$ 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
EN

回答 1

Stack Overflow用户

发布于 2020-05-06 12:02:26

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44233062

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档