Hi Folks,
Our Tx1 board has two CSI cameras. They both are working with following code. When I run, I get few gstreamer warnings - which I am unable to fully understand. Could someone please guide about what is wrong in my Gstreamer pipeline setup which is leading to these warnings ?
Thanks,
My Code
VideoCapture cap1("nvcamerasrc sensor-id=0 fpsRange='30.0 30.0' ! video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, format=(string)I420, framerate=(fraction)60/1 ! nvvidconv flip-method=0 ! video/x-raw, format=(string)I420 ! videoconvert ! video/x-raw, format=(string)BGR ! appsink");
VideoCapture cap2("nvcamerasrc sensor-id=1 fpsRange='30.0 30.0' ! video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, format=(string)I420, framerate=(fraction)60/1 ! nvvidconv flip-method=0 ! video/x-raw, format=(string)I420 ! videoconvert ! video/x-raw, format=(string)BGR ! appsink");
if(!cap1.isOpened()) { // check if we succeeded
cerr << "Fail to open camera " << endl;
return -1;
}
for(;;)
{
Mat frame;
cap1 >> frame;
imshow("cam1", frame);
cap2 >> frame;
imshow("cam2", frame);
waitKey(1);
}
// the camera will be deinitialized automatically in VideoCapture destructor
cap1.release();
cap2.release();
The Warnings
Available Sensor modes :
3840 x 2160 FR=60.000000 CF=0xf09208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
1920 x 1080 FR=60.000000 CF=0xf09208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
NvCameraSrc: Trying To Set Default Camera Resolution. Selected 1280x720 FrameRate = 60.000000 …
(cv_hello:18934): GStreamer-CRITICAL **: gst_element_get_static_pad: assertion ‘GST_IS_ELEMENT (element)’ failed
(cv_hello:18934): GStreamer-CRITICAL **: gst_pad_get_current_caps: assertion ‘GST_IS_PAD (pad)’ failed
(cv_hello:18934): GStreamer-CRITICAL **: gst_caps_get_structure: assertion ‘GST_IS_CAPS (caps)’ failed
(cv_hello:18934): GStreamer-CRITICAL **: gst_structure_get_int: assertion ‘structure != NULL’ failed
(cv_hello:18934): GStreamer-CRITICAL **: gst_structure_get_int: assertion ‘structure != NULL’ failed
(cv_hello:18934): GStreamer-CRITICAL **: gst_structure_get_fraction: assertion ‘structure != NULL’ failed
Available Sensor modes :
3840 x 2160 FR=60.000000 CF=0xf09208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
1920 x 1080 FR=60.000000 CF=0xf09208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
NvCameraSrc: Trying To Set Default Camera Resolution. Selected 1280x720 FrameRate = 60.000000 …
(cv_hello:18934): GStreamer-CRITICAL **: gst_element_get_static_pad: assertion ‘GST_IS_ELEMENT (element)’ failed
(cv_hello:18934): GStreamer-CRITICAL **: gst_pad_get_current_caps: assertion ‘GST_IS_PAD (pad)’ failed
(cv_hello:18934): GStreamer-CRITICAL **: gst_caps_get_structure: assertion ‘GST_IS_CAPS (caps)’ failed
(cv_hello:18934): GStreamer-CRITICAL **: gst_structure_get_int: assertion ‘structure != NULL’ failed
(cv_hello:18934): GStreamer-CRITICAL **: gst_structure_get_int: assertion ‘structure != NULL’ failed
(cv_hello:18934): GStreamer-CRITICAL **: gst_structure_get_fraction: assertion ‘structure != NULL’ failed
Available Sensor modes :
3840 x 2160 FR=60.000000 CF=0xf09208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
1920 x 1080 FR=60.000000 CF=0xf09208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
NvCameraSrc: Trying To Set Default Camera Resolution. Selected 1280x720 FrameRate = 60.000000 …
Available Sensor modes :
3840 x 2160 FR=60.000000 CF=0xf09208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
1920 x 1080 FR=60.000000 CF=0xf09208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
NvCameraSrc: Trying To Set Default Camera Resolution. Selected 1280x720 FrameRate = 60.000000 …