Frames are dropped when I use the following command
GST_DEBUG_DUMP_DOT_DIR=/media/Data/log 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 bitrate=$bitrate_preview ! h264parse ! flvmux ! rtmpsink blocksize=24834048 location='rtmp://127.0.0.1/live/mux4' nvarguscamerasrc sensor-id=0 wbmode=0 ee-mode=0 saturation=0 blocksize=99336192 ! '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 blocksize=4096 location=$FILE_HOME_DIR/$TIMESTAMPS-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=$shutter_record capture-io-mode=2 maxperf-enable=true ! h265parse ! mp4mux ! filesink location=$FILE_HOME_DIR/$TIMESTAMPS-cam-0.mp4 nvarguscamerasrc sensor-id=1 wbmode=0 ee-mode=0 saturation=0 blocksize=99336192 ! '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 blocksize=4096 location=$FILE_HOME_DIR/$TIMESTAMPS-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=$shutter_record capture-io-mode=2 maxperf-enable=true ! h265parse ! mp4mux ! filesink location=$FILE_HOME_DIR/$TIMESTAMPS-cam-1.mp4 nvarguscamerasrc sensor-id=2 wbmode=0 ee-mode=0 saturation=0 blocksize=99336192 ! '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 blocksize=4096 location=$FILE_HOME_DIR/$TIMESTAMPS-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=$shutter_record capture-io-mode=2 maxperf-enable=true ! h265parse ! mp4mux ! filesink location=$FILE_HOME_DIR/$TIMESTAMPS-cam-2.mp4 nvarguscamerasrc sensor-id=3 wbmode=0 ee-mode=0 saturation=0 blocksize=99336192 ! '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 blocksize=4096 location=$FILE_HOME_DIR/$TIMESTAMPS-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=$shutter_record capture-io-mode=2 maxperf-enable=true ! h265parse ! mp4mux ! filesink location=$FILE_HOME_DIR/$TIMESTAMPS-cam-3.mp4
The printed log is as follows:
Acquired Frame: 1948, time sec 194 msec 71 id:281469658321376 timespace:29276500356000
Acquired Frame: 1948, time sec 194 msec 87 id:281469633143264 timespace:29276516196000
Acquired Frame: 1948, time sec 194 msec 122 id:281469885997536 timespace:29276551058000
Acquired Frame: 1948, time sec 194 msec 134 id:281469911175648 timespace:29276563934000
Acquired Frame: 1949, time sec 194 msec 171 id:281469658321376 timespace:29276600769000
Acquired Frame: 1949, time sec 194 msec 223 id:281469633143264 timespace:29276652740000
Acquired Frame: 1949, time sec 194 msec 264 id:281469885997536 timespace:29276693542000
Acquired Frame: 1950, time sec 194 msec 310 id:281469911175648 timespace:29276739808000
Acquired Frame: 1950, time sec 194 msec 359 id:281469658321376 timespace:29276788765000
Acquired Frame: 1951, time sec 194 msec 402 id:281469633143264 timespace:29276831663000
Acquired Frame: 1951, time sec 194 msec 450 id:281469885997536 timespace:29276879199000
Acquired Frame: 1952, time sec 194 msec 492 id:281469911175648 timespace:29276921962000
Acquired Frame: 1952, time sec 194 msec 545 id:281469658321376 timespace:29276974531000
Acquired Frame: 1953, time sec 194 msec 588 id:281469633143264 timespace:29277017273000
Acquired Frame: 1953, time sec 194 msec 635 id:281469885997536 timespace:29277064990000
Acquired Frame: 1954, time sec 194 msec 673 id:281469911175648 timespace:29277103013000
Acquired Frame: 1954, time sec 194 msec 690 id:281469658321376 timespace:29277119922000
Acquired Frame: 1954, time sec 194 msec 722 id:281469633143264 timespace:29277151977000
Acquired Frame: 1954, time sec 194 msec 756 id:281469885997536 timespace:29277185281000
Then I found in the process of debugging that the entire function below did not respond.From the log, we can see that the frame number has been accumulating, indicating that this frame has been accepted at the bottom level, but I do not know why it was discarded, and dmesg has no discarded log information, I want to know where the source code of the bottom level of the frame number is accumulated? I need to investigate this issue further.
iEventProvider_ptr->waitForEvents(src->queue.get(), WAIT_FOR_EVENT_TIMEOUT);