<< to CrossControl homepage

Support & Service Center

Stream IP-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 we want to test that our application processes IP-Video correctly but we are lacking a camera we could use a command like this:

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

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

If we want to stream a videofile instead we can do this:

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 a any of the streams above we could use a command like this:

gst-launch-1.0 udpsrc port=5003 caps="application/x-rtp,encoding-name=JPEG,payload=26" ! rtpjpegdepay ! jpegparse ! jpegdec ! autovideosink
Applies to version: 
VS, VI
whatever