Hi Guys,
I am trying to understand the sample code available in tegra multimedia api called “12_camera_v4l2_cuda”. When I build the code and run command mentioned in USAGE , I seem to be getting an error.
Command :
./camera_v4l2_cuda -d /dev/video0 -s 640x480 -f YUYV -n 30 -c
Error :
ERROR: camera_initialize(): (line:238) Failed to set camera output format: Invalid argument (22)
ERROR: init_components(): (line:336) Failed to initialize camera device
ERROR: main(): (line:718) Failed to initialize v4l2 components
App run failed
When I checked /dev folder I could find video0 device. Hence, from my guess there is something else which has not been set correctly ( eg. pixel format ) . Please let me know how to resolve this error.
Thanks.