tegra_multimedia_api/samples/cuda examples doesn't work

Folks,

I am looking to learn about reading frame from camera, passing it to cuda kernel, and doing something with output of cuda kernel. I am using following examples. They all do not seem to work, and idea, about what could be my mistake ?

Thanks,

  1. ubuntu@tegra-ubuntu:~/tegra_multimedia_api/samples/12_camera_v4l2_cuda$ ./camera_v4l2_cuda -d /dev/video0 -s 640x480 -f YUYV -n 10 -c
    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

  2. ubuntu@tegra-ubuntu:~/tegra_multimedia_api/samples/v4l2cuda$ ./capture-cuda -d /dev/video0 -s 640x480 -u
    VIDIOC_S_FMT error 22, Invalid argument

  3. ubuntu@tegra-ubuntu:~/tegra_multimedia_api/samples/13_camera_v4l2_cuda$ ./camera_v4l2_cuda -d /dev/video0 -s 640x480 -f YUYV -n 30 -c
    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

I am using Sony IMX274, from Leopard Imaging.
Thanks,

Hi dumbogeorge,
It is expected. These samples are for USB cameras or YUV sensors without going through Tegra ISP. Sony IMX274 is a bayer sensor and requires ISP.