Gstreamer错误:无法构造管道:没有元素"v4l2src" [英] Gstreamer Error: pipeline could not be constructed: no element "v4l2src"

查看:918
本文介绍了Gstreamer错误:无法构造管道:没有元素"v4l2src"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ubuntu(14.04),尝试使用gstreamer时出现此错误.

Am using Ubuntu(14.04) and I am getting this error while trying to use gstreamer.

gst-launch-1.0 v4l2src !  video/x-raw,width=640,height=480 !  x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000

我已经检查了gst-inspect-1.0 v4l2src

I have checked the gst-inspect-1.0 v4l2src

它说找不到元素没有这样的元素或插件'v4l2src'"

It say element not found "No such element or plugin 'v4l2src'"

我该怎么办?从哪里可以得到这个元素或插件.我尝试重新安装整个gstreamer.但是我无法这样做.

What should I do ? From where can I get this element or plugin. I have tried resinstalling entire gstreamer. But am unable to do so.

推荐答案

v4l2src插件属于gstreamer-plugins-good软件包;所以

the v4l2src plugin belongs to the gstreamer-plugins-good package; so

sudo apt-get install gstreamer1.0-plugins-good

应该帮助您

Gstreamer将大多数插件打包在单独的软件包中;你有

Gstreamer packages most of its plugins in separate packages; you have

  • gst-plugins-base
  • gst-plugins-good
  • gst-plugins-ugly

等等.它们是可插拔的;因此,仅更新gstreamer不会自动选择对您有利的gst-plugins ...

and more. They are pluggable; so just updating gstreamer won't auto-select gst-plugins-good for you...

这篇关于Gstreamer错误:无法构造管道:没有元素"v4l2src"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆