<< to CrossControl homepage

Support & Service Center

Stream ETH-Video from Display to Display or VM to Display

Printer-friendly versionPrinter-friendly versionPDF versionPDF version

It can be useful to stream video from one display to another, or from the VM to a display.

For example, if you want to test that your application processes ETH-Videos correctly, but you don't have the actual camera, you could use one of the following two commands from the Virtual Machine (or from one of the displays used in the setup):

Example 1:

This pipeline will jpeg encode a videotestsrc (a test stream) and send it to 192.168.1.2 on port number 5003

gst-launch-1.0 videotestsrc ! jpegenc !  rtpjpegpay ! udpsink host=192.168.1.2 port=5003 &

Example 2:

If you instead want to stream a videofile, use this command:

gst-launch-1.0 filesrc location=myvideo.mp4 ! decodebin ! jpegenc ! rtpjpegpay ! udpsink host=192.168.1.2 port=5003

Note: Streaming a video can be very taxing on your network!


To receive any of the described streams above, use the following command:

gst-launch-1.0 udpsrc port=5003 caps="application/x-rtp,encoding-name=JPEG,payload=26" ! rtpjpegdepay ! jpegparse ! jpegdec ! autovideosink &

NOTE! The service "gst-launch-1.0" is only available on our i.MX6 units (CCP VS or VI2).


Applies to version: 
VS, VI
whatever