gst-launch-1.0 -v\
nvcompositor name=comp \
sink_0::xpos=0 sink_0::ypos=0 sink_0::width=$width sink_0::height=$height \
sink_1::xpos=0 sink_1::ypos=0 sink_1::width=$width sink_1::height=$height \
sink_2::xpos=$width sink_2::ypos=0 sink_2::width=$width sink_2::height=$height \
sink_3::xpos=$width sink_3::ypos=$height sink_3::width=$width sink_3::height=$height \
sink_4::xpos=0 sink_4::ypos=$height sink_4::width=$width sink_4::height=$height \
! queue ! nvvidconv ! video/x-raw ! queue ! xvimagesink \
videotestsrc is-live=1 ! "video/x-raw,format=RGBA,framerate=$FRAMERATE/1,width=$width,height=$height" ! nvvidconv ! comp.sink_0 \
nvarguscamerasrc sensor-id=1 ! "video/x-raw(memory:NVMM),width=$width,height=$height,framerate=$FRAMERATE/1" ! nvvidconv ! "video/x-raw,format=RGBA,framerate=$FRAMERATE/1,width=$width,height=$height" ! nvvidconv ! queue ! comp.sink_1 \
nvarguscamerasrc sensor-id=0 ! "video/x-raw(memory:NVMM),width=$width,height=$height,framerate=$FRAMERATE/1" ! nvvidconv ! "video/x-raw,format=RGBA,framerate=$FRAMERATE/1,width=$width,height=$height" ! nvvidconv ! queue ! comp.sink_2 \
nvarguscamerasrc sensor-id=3 ! "video/x-raw(memory:NVMM),width=$width,height=$height,framerate=$FRAMERATE/1" ! nvvidconv ! "video/x-raw,format=RGBA,framerate=$FRAMERATE/1,width=$width,height=$height" ! nvvidconv ! queue ! comp.sink_3 \
nvarguscamerasrc sensor-id=2 ! "video/x-raw(memory:NVMM),width=$width,height=$height,framerate=$FRAMERATE/1" ! nvvidconv ! "video/x-raw,format=RGBA,framerate=$FRAMERATE/1,width=$width,height=$height" ! nvvidconv ! queue ! comp.sink_4
The above works but with just removing the videotestsrc completely fails
gst-launch-1.0 -v\
nvcompositor name=comp \
sink_0::xpos=0 sink_0::ypos=0 sink_0::width=$width sink_0::height=$height \
sink_1::xpos=0 sink_1::ypos=0 sink_1::width=$width sink_1::height=$height \
sink_2::xpos=$width sink_2::ypos=0 sink_2::width=$width sink_2::height=$height \
sink_3::xpos=$width sink_3::ypos=$height sink_3::width=$width sink_3::height=$height \
sink_4::xpos=0 sink_4::ypos=$height sink_4::width=$width sink_4::height=$height \
! queue ! nvvidconv ! video/x-raw ! queue ! xvimagesink \
nvarguscamerasrc sensor-id=1 ! "video/x-raw(memory:NVMM),width=$width,height=$height,framerate=$FRAMERATE/1" ! nvvidconv ! "video/x-raw,format=RGBA,framerate=$FRAMERATE/1,width=$width,height=$height" ! nvvidconv ! queue ! comp.sink_1 \
nvarguscamerasrc sensor-id=0 ! "video/x-raw(memory:NVMM),width=$width,height=$height,framerate=$FRAMERATE/1" ! nvvidconv ! "video/x-raw,format=RGBA,framerate=$FRAMERATE/1,width=$width,height=$height" ! nvvidconv ! queue ! comp.sink_2 \
nvarguscamerasrc sensor-id=3 ! "video/x-raw(memory:NVMM),width=$width,height=$height,framerate=$FRAMERATE/1" ! nvvidconv ! "video/x-raw,format=RGBA,framerate=$FRAMERATE/1,width=$width,height=$height" ! nvvidconv ! queue ! comp.sink_3 \
nvarguscamerasrc sensor-id=2 ! "video/x-raw(memory:NVMM),width=$width,height=$height,framerate=$FRAMERATE/1" ! nvvidconv ! "video/x-raw,format=RGBA,framerate=$FRAMERATE/1,width=$width,height=$height" ! nvvidconv ! queue ! comp.sink_4
I get a SIGSEGV and nvcompositor fails and quits without much else information.
To note: The cameras take a good 0.5-1s to spin up.