Cannot link sometimes pad of rtspsrc to rtpjpegdepay in pad_added callback signal

I’ve tried using uridecodebin too and it does not work with mjpeg stream.

Here’s the image I generated by running the pipeline : uridecodein uri="$RTSP_PATH" ! autovideosink


It uses rtpjpegdepay and nvjpegdec for jpeg streams but still results in error. Then I also tried to set boolean property “Deepstream” for nvjpegdec to true which claims to support jpeg format but still fails with uridecodebin.

I am trying to copy what uridecodebin does. Thats the reason I am trying to set manual bin just like uridecodebin with rtspsrc, rtpjpegdepay and jpegdec(/nvjpegdec) but the main problem seems in not able to link rtspsrc to rtpjpegdepay for some unknown reason even when it is linked from new_pad added signal comming from rtspsrc.

  • Rtspsrc and rtpjpegdepay pads capabilities also match.
  • I’ve even tried to apply caps filter after rtspsrc element with “application/x-rtp”.
  • Also tried to add queue after rtspsrc elemenet.

Nothing seems to work!

How come it is possible to work in command prompt and is also seen in the pipeline image, yet not link in the provided python code.

Am I missing something ?

Hi Parth,

Welcome to the forum and sorry for the delay!

Currently, it’s hard to understand what you’re working with and what’s your setup. If I get it correctly, you’re trying to install the GStreamer on your Navio2. We haven’t tested it so I can’t be of much help with it.

Still, I can suggest going through the following threads:

Also, I’d suggest looking through the GStreamer-related forums to find more information.

Please note that to allow us to help you, it’s important that you share the full information about your setup and what you’re trying to accomplish. This will help everyone on the forum to understand your inquiry fully and help you faster.

For Navio2, we need to know:

  1. Image and ArduPilot version.
  2. Detailed problem description. How does observed behavior differ from the expected one?
  3. Your step by step actions.
  4. Picture of the setup and connection scheme.
  5. If using any additional hardware please provide exact make and model.

Without this information, it’s difficult for us to see the full picture of the issue and resolve it for you.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.