Nvdewarper along with Nvstreamdemux

I need to obtain two RTSP streams using a Gstreamer pipeline. I am using Nvstreamdemux to do this. My pipeline is as follows:
filesrc1 → videoflip1 → dewarper1 → mux.sink_0 → nvinfer → nvstreamdemux.src_0 → rstp_1
filesrc2 → videoflip2 → dewarper2 → mux.sink_1 → nvinfer → nvstreamdemux.src_1 → rstp_2

However, I get an error when I try to do so. Could someone that has worked with such a pipeline kindly help me? I am having problems because of the dewarper in the pipeline. I can get a similar pipeline to work without the dewarper.

Thank you,
Ramya.

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

I apologize, I should have included this earlier.
I am working on Xavier, AGX with JetPack 4.4.1 and Deepstream 5.0 and TensorRT 7.1.3 with Cuda 10.2.

Thank you,
Ramya.

There is some bug with Deepstream 5.0, please upgrade to DeepStream 5.1 or latest deepstream version.