Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
543 views
in Technique[技术] by (71.8m points)

v4l2 - Gstreamer Error: pipeline could not be constructed: no element "v4l2src"

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

I have checked the gst-inspect-1.0 v4l2src

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

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...