I encountered a problem. After the agx orin platform was powered on and started, I got stuck when I used gst-launch-1.0 to splice the four-way and rtmp push streams at the same time for the first time. I’m not sure why this is, but if there’s only one flow, it works, and then after you’ve successfully pushed the flow all the way, all four will work.
gst-launch-1.0 nvcompositor name=comp sink_0::xpos=0 sink_0::ypos=0 sink_0::width=960 sink_0::height=540 \
> sink_1::xpos=960 sink_1::ypos=0 sink_1::width=960 sink_1::height=540 \
> sink_2::xpos=0 sink_2::ypos=540 sink_2::width=960 sink_2::height=540 \
> sink_3::xpos=960 sink_3::ypos=540 sink_3::width=960 sink_3::height=540 \
> ! nvvidconv ! 'video/x-raw(memory:NVMM),width=1920,height=1080,format=NV12,framerate=10/1' ! nvv4l2h264enc ! h264parse ! flvmux ! rtmpsink blocksize=24834048 location='rtmp://127.0.0.1/live/mux4' \
> nvarguscamerasrc sensor-id=0 wbmode=0 saturation=0 blocksize=124170240 ! 'video/x-raw(memory:NVMM), width=(int)4128, height=(int)3008,format=(string)NV12, framerate=(fraction)10/1' ! tee name=cam0 ! \
> queue ! nvvidconv ! "video/x-raw(memory:NVMM), width=2064, height=1504, format=(string)NV12" ! nvvidconv ! "video/x-raw" ! multifilesink max-file-size=1862553600 next-file=4 location=cam0_%04d.nv12 -e cam0. ! queue ! comp.sink_0 cam0. ! queue ! nvvidconv ! 'video/x-raw(memory:NVMM),width=3840,height=2160,format=NV12,framerate=10/1' ! nvv4l2h265enc bitrate=20000000 maxperf-enable=true ! h265parse ! mp4mux ! filesink location=cam-0.mp4 \
> nvarguscamerasrc sensor-id=1 wbmode=0 saturation=0 blocksize=124170240 ! 'video/x-raw(memory:NVMM), width=(int)4128, height=(int)3008,format=(string)NV12, framerate=(fraction)10/1' ! tee name=cam1 ! \
> queue ! nvvidconv ! "video/x-raw(memory:NVMM), width=2064, height=1504, format=(string)NV12" ! nvvidconv ! "video/x-raw" ! multifilesink max-file-size=1862553600 next-file=4 location=cam1_%04d.nv12 -e cam1. ! queue ! comp.sink_1 cam1. ! queue ! nvvidconv ! 'video/x-raw(memory:NVMM),width=3840,height=2160,format=NV12,framerate=10/1' ! nvv4l2h265enc bitrate=20000000 maxperf-enable=true ! h265parse ! mp4mux ! filesink location=cam-1.mp4 \
> nvarguscamerasrc sensor-id=2 wbmode=0 saturation=0 blocksize=124170240 ! 'video/x-raw(memory:NVMM), width=(int)4128, height=(int)3008,format=(string)NV12, framerate=(fraction)10/1' ! tee name=cam2 ! \
> queue ! nvvidconv ! "video/x-raw(memory:NVMM), width=2064, height=1504, format=(string)NV12" ! nvvidconv ! "video/x-raw" ! multifilesink max-file-size=1862553600 next-file=4 location=cam2_%04d.nv12 -e cam2. ! queue ! comp.sink_2 cam2. ! queue ! nvvidconv ! 'video/x-raw(memory:NVMM),width=3840,height=2160,format=NV12,framerate=10/1' ! nvv4l2h265enc bitrate=20000000 maxperf-enable=true ! h265parse ! mp4mux ! filesink location=cam-2.mp4 \
> nvarguscamerasrc sensor-id=3 wbmode=0 saturation=0 blocksize=124170240 ! 'video/x-raw(memory:NVMM), width=(int)4128, height=(int)3008,format=(string)NV12, framerate=(fraction)10/1' ! tee name=cam3 ! \
> queue ! nvvidconv ! "video/x-raw(memory:NVMM), width=2064, height=1504, format=(string)NV12" ! nvvidconv ! "video/x-raw" ! multifilesink max-file-size=1862553600 next-file=4 location=cam3_%04d.nv12 -e cam3. ! queue ! comp.sink_3 cam3. ! queue ! nvvidconv ! 'video/x-raw(memory:NVMM),width=3840,height=2160,format=NV12,framerate=10/1' ! nvv4l2h265enc bitrate=20000000 maxperf-enable=true ! h265parse ! mp4mux ! filesink location=cam-3.mp4
Setting pipeline to PAUSED ...
Opening in BLOCKING MODE
Opening in BLOCKING MODE
Opening in BLOCKING MODE
Opening in BLOCKING MODE
Opening in BLOCKING MODE
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Caught SIGSEGV
NvMMLiteOpen : Block : BlockType = 8
Redistribute latency...
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 8
NvMMLiteOpen : Block : BlockType = 8
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 8
NvMMLiteOpen : Block : BlockType = 8
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 8
NvMMLiteOpen : Block : BlockType = 8
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 8
Spinning. Please run 'gdb gst-launch-1.0 2988' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
GST_ARGUS: Creating output stream
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected...
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 4128 x 3008 FR = 28.999999 fps Duration = 34482760 ; Analog Gain range min 1.000000, max 251.188705; Exposure Range min 11000, max 660000000;
GST_ARGUS: Running with following settings:
Camera index = 2
Camera mode = 0
Output Stream W = 4128 H = 3008
seconds to Run = 0
Frame Rate = 28.999999
GST_ARGUS: Available Sensor modes :
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
GST_ARGUS: 4128 x 3008 FR = 28.999999 fps Duration = 34482760 ; Analog Gain range min 1.000000, max 251.188705; Exposure Range min 11000, max 660000000;
GST_ARGUS: Running with following settings:
Camera index = 1
Camera mode = 0
Output Stream W = 4128 H = 3008
seconds to Run = 0
Frame Rate = 28.999999
GST_ARGUS: Available Sensor modes :
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
GST_ARGUS: 4128 x 3008 FR = 28.999999 fps Duration = 34482760 ; Analog Gain range min 1.000000, max 251.188705; Exposure Range min 11000, max 660000000;
GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 0
Output Stream W = 4128 H = 3008
seconds to Run = 0
Frame Rate = 28.999999
GST_ARGUS: Available Sensor modes :
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
GST_ARGUS: 4128 x 3008 FR = 28.999999 fps Duration = 34482760 ; Analog Gain range min 1.000000, max 251.188705; Exposure Range min 11000, max 660000000;
GST_ARGUS: Running with following settings:
Camera index = 3
Camera mode = 0
Output Stream W = 4128 H = 3008
seconds to Run = 0
Frame Rate = 28.999999
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
CONSUMER: Producer has connected; continuing.
CONSUMER: Producer has connected; continuing.
CONSUMER: Producer has connected; continuing.
Acquired Frame: 10, time sec 0 msec 897 id:281469704159712
Acquired Frame: 10, time sec 0 msec 903 id:281469314384352
Acquired Frame: 10, time sec 0 msec 910 id:281469339562464
Acquired Frame: 10, time sec 0 msec 917 id:281469729337824
Acquired Frame: 11, time sec 0 msec 995 id:281469314384352
Acquired Frame: 11, time sec 1 msec 9 id:281469704159712
Acquired Frame: 11, time sec 1 msec 16 id:281469339562464
Acquired Frame: 11, time sec 1 msec 30 id:281469729337824
Acquired Frame: 12, time sec 1 msec 97 id:281469729337824
Acquired Frame: 12, time sec 1 msec 103 id:281469704159712
Acquired Frame: 12, time sec 1 msec 111 id:281469314384352
Acquired Frame: 12, time sec 1 msec 117 id:281469339562464
Acquired Frame: 13, time sec 1 msec 198 id:281469729337824
Acquired Frame: 13, time sec 1 msec 203 id:281469314384352
Acquired Frame: 13, time sec 1 msec 209 id:281469704159712
Acquired Frame: 13, time sec 1 msec 218 id:281469339562464
Acquired Frame: 14, time sec 1 msec 296 id:281469339562464
Acquired Frame: 14, time sec 1 msec 303 id:281469704159712
Acquired Frame: 14, time sec 1 msec 309 id:281469729337824
Acquired Frame: 14, time sec 1 msec 316 id:281469314384352
Acquired Frame: 15, time sec 1 msec 397 id:281469729337824
Acquired Frame: 15, time sec 1 msec 402 id:281469704159712
Acquired Frame: 15, time sec 1 msec 410 id:281469314384352
Acquired Frame: 15, time sec 1 msec 416 id:281469339562464
Acquired Frame: 16, time sec 1 msec 496 id:281469314384352
Acquired Frame: 16, time sec 1 msec 502 id:281469729337824
Acquired Frame: 16, time sec 1 msec 509 id:281469339562464
Acquired Frame: 16, time sec 1 msec 517 id:281469704159712
Acquired Frame: 17, time sec 1 msec 596 id:281469314384352
Acquired Frame: 17, time sec 1 msec 603 id:281469729337824
Acquired Frame: 17, time sec 1 msec 618 id:281469339562464
Acquired Frame: 17, time sec 1 msec 609 id:281469704159712
Acquired Frame: 18, time sec 1 msec 697 id:281469314384352
Acquired Frame: 18, time sec 1 msec 704 id:281469704159712
Acquired Frame: 18, time sec 1 msec 716 id:281469729337824
Acquired Frame: 18, time sec 1 msec 710 id:281469339562464
The above program runs the printed results, from 18 onwards will be stuck, and the previous data is not written to the file, only the file is created, the file size is 0.