For all other people who look for an example on two(or more, if modified) camera v4l2src’s I provide the code here.
You need the yolo file and the code from to run yolo inference on the video. But the pipeline is the same.
How to do this nicely with a decode_bin instead of stacking all sources I dont know yet, but still a crude example that can take some of people further.
Note that the pgie_src_pad_buffer_probe contains a fram_meta.frame_num and with the camera there is no frame to fetch.
Secondly it for some reason does not print the FPS for both sources, only one…
tutorial_cam_source2.zip (2.6 KB)