1 Reply Latest reply on Jan 6, 2016 7:31 AM by Intel_Peter

    How to install "v4l2src" on Edison?

    dev_passion

      Hello everyone,

       

      i want to stream my webcam via RTSP using Gstreamer.

      Currently I got everything running with Yocto, including edi-cam which uses ffmpeg.

       

      When i type in the following command, i will receive an error message.

       

      Command:

       

      gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,format=I420,width=640,height=480,framerate=30/1' ! omxh264enc ! h264parse ! queue ! mpegtsmux name=mux alsasrc device=plughw:1 ! audioresample ! audio/x-raw,rate=48000,channels=1 ! queue ! voaacenc bitrate=32000 ! aacparse ! queue ! mux. mux. ! tcpserversink host=192.168.10.9 port=5001 sync=true

       

      Error message:

       

      WARNING: erroneous pipeline: no element "v4l2src"

       

      How can i fix this issue?

       

      Kind regards,

       

      Chriss

        • 1. Re: How to install "v4l2src" on Edison?
          Intel_Peter

          Hello dev_passion,

           

          I've been doing some tests with Gstreamer and what seems to be happening is that your command is not being recognized because the plugins are not installed. You need to find all the plugins that you are trying to use in that command like omxh264enc, h264parse, and all the others and install them.

          In case of v4l2src, you have to install the plugin called video4linux2, for tcpserversink you need the plugin tcp, both of those can be found in AlexT's repo and can be installed with the commands:

           

          opkg install gstreamer1.0-plugins-good-video4linux2

          opkg install gstreamer1.0-plugins-base-tcp

           

          Most of these plugins are in plugins-good, and plugins-base. There are others like plugins that are not on AlexT's repo.

          You can use gst-inspect-1.0 to see which plugins are available to use in Gstreamer. You will have to look for all the missing plugins and install them manually.

           

          Peter.