This library has worked great for single videocapture but when I try to do 2 at the same time eventually my jetson freezes and stops responding to mouse and keyboard inputs. I posted an example usage of videocapture.
cv::VideoCapture cap1(pipeline1, cv::CAP_GSTREAMER);