Community
cancel
Showing results for 
Search instead for 
Did you mean: 
CMatt3
Novice
1,730 Views

How to install "v4l2src" on Edison?

Jump to solution

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 Solution
Pedro_M_Intel
Employee
336 Views

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 http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html 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.

View solution in original post

1 Reply
Pedro_M_Intel
Employee
337 Views

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 http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html 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.

View solution in original post

Reply