Skip to content
Advertisement

Receive RTP stream with gstreamer

I’m trying to stream from a linux-based microcontroller, using gstreamer, to a python script. This is to workaround some firmware issues on the microcontroller where it cannot open the camera directly with opencv/python.

The launch output command looks like this for gstreamer:

JavaScript

My question is, what would the “receive” command look like? Currently it’s using this:

JavaScript

But that throws the error:

JavaScript

It seems like I’m missing something….there’s not much documentation on how to properly write the receive scripts. Ultimately, I’d be putting into python with something like:

JavaScript

Any insights greatly appreciated, TIA!

Advertisement

Answer

If you check the output of gst-inspect-1.0 rtpmp4vdepay you will notice the following caps for the sink pad:

JavaScript

You will notice that the encoding-name is actually MP4V-ES.

On top of that – you cannot connect the RTP depacketizer directly to an image sink. You will have to parse, decode and color convert before that. Perhaps a decodebin can help you here if you want want to build the pipeline by hand..

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement