Hello everyone,
I am currently facing an issue with an OpenCV and GStreamer setup on my Jetson Orion Nano. When trying to run the following code, I encounter the error:
/home/stuart/opencv/modules/videoio/src/cap_gstreamer.cpp:1611: error: (-215:Assertion failed) frameSize.width > 0 && frameSize.height > 0 in function ‘open’
Here’s the segment of code where the error occurs:
cpp
Code
videos[i].open(
videoName,
cv::VideoWriter::fourcc(‘a’,‘v’,‘c’,‘1’),
pCamera_Array[i]->AcquisitionResultingFrameRate.GetValue(),
cv::Size(imageWidth_, imageHeight_),
true);
This code and camera setup work perfectly fine on a Jetson Xavier AGX. I have verified that the OpenCV installation and other configuration settings are the same on both devices. The camera is recognized and other utilities run well, so this specific error is puzzling.
Has anyone encountered a similar issue, or does anyone have insights into what might be causing this discrepancy between the two Jetson platforms? Any help or suggestions would be greatly appreciated!
Thank you!