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

后端 未结 6 2235
北恋
北恋 2020-12-10 06:59

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 ! h2         


        
6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-10 07:46

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

提交回复
热议问题