The question of multimedia

I want my TX2 to be a RTSP server.
And I use my computer to access its every camera from an RTSP address.
Now I can use the following method to access one camera successfully,

./test-launch "nvarguscamerasrc ! video/x-raw(memory:NVMM), format=NV12, width=1920, height=1080, framerate=30/1 ! nvvidconv ! video/x-raw, width=640, height=480, format=NV12, framerate=30/1 ! omxh265enc ! rtph265pay name=pay0 pt=96 config-interval=1"

So how do I access other cameras on TX2 with the RTSP?

Hi,
Please launch the cameras in different ports:

$ ./test-launch <b>-p 8553</b> "videotestsrc ! omxh265enc ! rtph265pay name=pay0 pt=96"

Hi DaneLLL,
Thanks for your reply,
But how do I know which port corresponds to which camera?
It’s turned on in order( 0, 1, 2, …), or it needs to be configured in the gstreamer parameter( like ‘nvarguscamerasrc sensor-id=0…’ , ‘nvarguscamerasrc sensor-id=1…’ , …) ?

Hi,
Yo may use sensor-id:

sensor-id           : Set the id of camera sensor to use. Default 0.
                    flags: readable, writable
                    Integer. Range: 0 - 255 Default: 0
./test-launch "nvarguscamerasrc sensor-id=0 ! video/x-raw(memory:NVMM), format=NV12, width=1920, height=1080, framerate=30/1 ! nvvidconv ! video/x-raw, width=640, height=480, format=NV12, framerate=30/1 ! omxh265enc ! rtph265pay name=pay0 pt=96 config-interval=1" & ./test-launch -p 8555 "nvarguscamerasrc sensor-id=1 ! video/x-raw(memory:NVMM), format=NV12, width=1920, height=1080, framerate=30/1 ! nvvidconv ! video/x-raw, width=640, height=480, format=NV12, framerate=30/1 ! omxh265enc ! rtph265pay name=pay0 pt=96 config-interval=1" &