Gstreamer Error: pipeline could not be constructed: no element “v4l2src”

不打扰是莪最后的温柔 提交于 2019-12-04 10:57:25

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

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

should help you out

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

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

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

Does

gst-inspect-1.0 -b

list any blacklisted plugins? If not check the the pluging pysically exists:

locate libgstvideo4linux2.so

There should be one under e.g.

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

or

/usr/lib/gstreamer-1.0/libgstvideo4linux2.so

Then remove the registry cache again and run

GST_DEBUG="*:5" gst-inspect-1.0 2>debug.log

Search the log for v4l2 and check if gstreamer reports a reason why it won't load the plugin.

I'm using a gstreamer-1.0 on Raspberry and I was having the same issue. As I was running out of options I've tried to install also the 0.10 plugins and unexpectedly it works.

sudo apt-get install gstreamer0.10-plugins-good

my 2 cent ^_^

EDIT: Well, actually it doen't work yet, but at least it's giving me a different error :)

EDIT 2: It was a syntax error, It actually works for me :)

Deval Thakkar

On Ubuntu you can install with just:

sudo apt-get install v4l-utils
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!