VLC To read Raw video via UDP using Gstreamer
Posted: 04 Aug 2018 11:44
Hi guys,
I'm trying to get a stream from a small thermal camera connected to a RaspberryPi to display on an Android device running VLC.
Using Gstreamer, I've managed to get the feed running from the Raspberry to multiple receivers (raspberry, linux box, windows)
My goal is to get the video to an Android device. I'm trying to use VLC for this, so I first wanted to get it working on my Linux/Windows/Raspberry VLC players. I think I may need to provide an SDP file for VLC to understand it but I haven't found a resource describing the required content for the SDP file or how to get the correct parameters for the file based on a given (g)stream. Also I don't know if I need to encode the stream for VLC to be able to read it or if it can read it "raw".
Here are my Streaming pipelines:
On Raspberry
gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw,format=UYVY ! rtpvrawpay ! udpsink host=10.0.0.250 (<- Receiver IP)
On Receiver
gst-launch-1.0 udpsrc caps="application/x-rtp, sampling=YCbCr-4:2:2, depth=(string)8, width=(string)160, height=(string)120" ! rtpvrawdepay ! videoconvert ! videoscale ! ximagesink
The last line is for my linux box, I've also run it successfully on the Rasbperry itself, streaming to 127.0.0.1 instead and on my Windows machine using d3dvideosink for display.
- Can any of you provide me with instructions or link to a resource that will help me get the stream to show in VLC?
Thanks in advance!
Magnus
I'm trying to get a stream from a small thermal camera connected to a RaspberryPi to display on an Android device running VLC.
Using Gstreamer, I've managed to get the feed running from the Raspberry to multiple receivers (raspberry, linux box, windows)
My goal is to get the video to an Android device. I'm trying to use VLC for this, so I first wanted to get it working on my Linux/Windows/Raspberry VLC players. I think I may need to provide an SDP file for VLC to understand it but I haven't found a resource describing the required content for the SDP file or how to get the correct parameters for the file based on a given (g)stream. Also I don't know if I need to encode the stream for VLC to be able to read it or if it can read it "raw".
Here are my Streaming pipelines:
On Raspberry
gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw,format=UYVY ! rtpvrawpay ! udpsink host=10.0.0.250 (<- Receiver IP)
On Receiver
gst-launch-1.0 udpsrc caps="application/x-rtp, sampling=YCbCr-4:2:2, depth=(string)8, width=(string)160, height=(string)120" ! rtpvrawdepay ! videoconvert ! videoscale ! ximagesink
The last line is for my linux box, I've also run it successfully on the Rasbperry itself, streaming to 127.0.0.1 instead and on my Windows machine using d3dvideosink for display.
- Can any of you provide me with instructions or link to a resource that will help me get the stream to show in VLC?
Thanks in advance!
Magnus