Pelco Developer Network (PDN)

How to decode real time streaming using gstreamer

Since we need to come up with our own plugin to display the live streaming to web client, we need to know exactly how to convert the RTP live stream using gstreamer. Something like :
gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! autovideosink

Kindly let us know the gstreamer payload and decoders pipe to view the stream.


Hello, thank you for your post.

Based on what I believe that you're attempting to do, it would probably be simpler to display the JPEG stream via MJPEG-pull methods. I asked for some assistance from a developer that did work on the SDK and the samples, and he strongly suggested the JPEG route and to not bother with the RTSP route in this manner for this case. He also mentioned that some of the older samples on GitHub (like here) might be helpful... The bottom of that linked file has an example RTSP and MJPEG pipeline string that might help to point you in the right direction...

If you are familiar with GStreamer and still want to go that route, then the GStreamer code that our samples provide is what I can best refer you to examine. Please review the samples that are located on GitHub at the Pelco Integrations page here: GitHub PelcoIntegrations, specifically I would suggest that you review VideoXpertSdk-Media and the cpp files in the /Source directory. We haven't typically provided support with GStreamer questions because it is an open standard that our developers make use of in our sample code so that streaming can be demonstrated.