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

后端 未结 6 2222
北恋
北恋 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条回答
  •  自闭症患者
    2020-12-10 07:55

    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.

提交回复
热议问题