RTSP streaming of two CSI cameras by using Gstreamer

Thank you for your comment.
I confirmed that the following commands work well;

  1. RTSP streaming of one CSI camera.

     GST_DEBUG=3 ./test-launch "nvarguscamerasrc sensor-id=0 ! video/x-raw(memory:NVMM), format=NV12, width=1920, height=1080 ! nvv4l2h264enc insert-sps-pps=true ! h264parse ! rtph264pay name=pay0 pt=96"
    
  2. nvcompositor of two CSI cameras + nv3dsink

     GST_DEBUG=3 gst-launch-1.0 nvcompositor name=comp sink_1::xpos=1920 ! nvvidconv ! 'video/x-raw(memory:NVMM)' ! nv3dsink nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM), width=1920, height=1080,  framerate=30/1' ! queue ! comp. nvarguscamerasrc sensor-id=1 ! 'video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1' ! queue ! comp. -e
    
  3. RTSP streaming of nvcompositor of two videotestsrcs

     GST_DEBUG=3 ./test-launch "nvcompositor name=comp sink_1::xpos=1920 ! nvvidconv ! video/x-raw(memory:NVMM) ! nvv4l2h264enc insert-sps-pps=true ! h264parse ! rtph264pay name=pay0 pt=96 videotestsrc is-live=true ! video/x-raw, width=1920, height=1080, framerate=30/1 ! nvvidconv ! video/x-raw(memory:NVMM) ! comp. videotestsrc is-live=true pattern=ball ! video/x-raw, width=1920, height=1080, framerate=30/1 ! nvvidconv ! video/x-raw(memory:NVMM) ! comp. "
    

Are there any hints in these to solve the problem?

test-launch + nvcompositor + nvarguscamerasrc == Failed to create CaptureSession?

I would appreciate any advice.