About 12_camera_v4l2_cuda sample of mmapi

Hello,

https://docs.nvidia.com/jetson/l4t-multimedia/l4t_mm_12_camera_v4l2_cuda.html
This sample demonstrates how to capture images from a V4L2 YUV type of camera and share the image stream with NVIDIA® CUDA® engines to draw a black box on the upper left corner.

I’m not sure what the output of mmapi sample 12 is.
Can you explain?

Here is my run result:
nvidia@nvidia-desktop:/usr/src/jetson_multimedia_api/samples/12_camera_v4l2_cuda$ ./camera_v4l2_cuda -d /dev/video0 -s 640x480 -f YUYV -n 30 -c
WARN: camera_initialize(): (line:286) The desired format is not supported
[INFO] (NvEglRenderer.cpp:110) Setting Screen width 2592 height 1944
WARN: request_camera_buff(): (line:380) Camera v4l2 buf length is not expected
WARN: request_camera_buff(): (line:380) Camera v4l2 buf length is not expected
WARN: request_camera_buff(): (line:380) Camera v4l2 buf length is not expected
WARN: request_camera_buff(): (line:380) Camera v4l2 buf length is not expected
----------- Element = renderer0 -----------
Total Profiling time = 0
Average FPS = 0
Total units processed = 0
Num. of late units = 0

App run was successful
nvidia@nvidia-desktop:/usr/src/jetson_multimedia_api/samples/12_camera_v4l2_cuda$

Thank you.

Hi,
It looks like you don’t set sensor mode correctly. Please refer to steps in
Jetson Nano FAQ
Q: I have a USB camera. How can I launch it on Jetson Nano?

And try to successfully launch the camera in gst-launch-1.0 first.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.