Failed to run the camera sample


I have tried to run the sample12: 12_camera_v412_cuba on my Jetson tx2, and I printed:

./camera_v412_cuba -d /dev/vedio0 -s 640*480 -f YUYV -n 30 -c

and then met an error:

camera_initialize(): ()line: 233) Failed to set camera output format: Invalid argument(22)

How could I sovle it?


It is a sample for usb camera/YUV sensors. Please insert a usb camera and set correct node ‘-d /dev/videoX’ and format ‘-f XXXX’.

Hi, DaneLLL:

Thanks for your help! I will have a try.