The demo code of 12_camera_v4l2_cuda is fatal error

Please check if the source supports YUV422 such as YUYV or UYVY. RGB24 is not supported. The supported formats are listed in

-f              Set output pixel format of video device (supports only YUYV/YVYU/UYVY/VYUY/GREY/MJPEG)

You may also check Jetson Nano FAQ

Q: I have a USB camera. How can I launch it on Jetson Nano?