I’ve got existing code for the RPi based around v4l2 that I’m trying to port to the Nano.
I’ve connected a Rpi V2 NoIR camera and confirmed that it’s working with gstreamer.
Unfortunately, I’m not having any luck with the supplied camera_v4l2_cuda example. I’ve compiled it successfully, but any attempt to run it using the RPi cam, e.g.:
./camera_v4l2_cuda -d /dev/video0 -s 1280x720 -f MJPEG
results in an error like: “The desired format is not supported”. That command runs successfully on /dev/video1 which is a USB Webcam.
Would very appreciate if someone could point me to a working v4l2-based sample.