Hi,
There is a potential issue about launching multiple RTSP sources, so we suggest try the patch. Here’s a related topic:
RTSP Server fails when using a second camera with nvcompositor
In python, you can call Gst.parse_launch() to launch a pipeline.