How should I get the frame from libargus?

Hi.
I am using the IMX296 sensor on the jetson Orin board. When I use the following command v4l2-ctl, I receive the frame without any problem. But when I try to use libargus I have problem. How should I get the frame from libargus?
Of course, I use oneShot to capture a frame.

./argus_oneshot

Executing Argus Sample: argus_oneshot
Argus Version: 0.99.3.3 (multi-process)
No camera devices are available.
Camera devices: 0
Error generated. oneShot/main.cpp, 86 Failed to get ICameraProperties int

When I use the “sudo enableCamInfiniteTimeout=1 nvargus-daemon” command:

=== NVIDIA Libargus Camera Service (0.99.33)=== Listening for connections...=== argus_oneshot[11603]: Connection established (FFFF924FC900)OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
---- imager: No override file found. ----
(NvCamV4l2) Error ModuleNotPresent: V4L2Device not available (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function findDevice(), line 256)
(NvCamV4l2) Error ModuleNotPresent:  (propagating from /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function initialize(), line 60)
(NvOdmDevice) Error ModuleNotPresent:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function initialize(), line 107)
NvPclDriverInitializeData: Unable to initialize driver v4l2_sensor
NvPclInitializeDrivers: error: Failed to init camera sub module v4l2_sensor
NvPclStartPlatformDrivers: Failed to start module drivers
NvPclDriver_V4L2_Focuser_Stub_Close: Invalid NULL input pPclDriver
NvPclStateControllerOpen: Failed ImagerGUID 1. (error 0xA000E)
NvPclOpen: PCL Open Failed. Error: 0xf
SCF: Error BadParameter: Sensor could not be opened. (in src/services/capture/CaptureServiceDeviceSensor.cpp, function getSourceFromGuid(), line 689)
SCF: Error BadParameter:  (propagating from src/services/capture/CaptureService.cpp, function addSourceByGuid(), line 453)
SCF: Error BadParameter:  (propagating from src/api/CameraDriver.cpp, function addSourceByIndex(), line 333)
SCF: Error BadParameter:  (propagating from src/api/CameraDriver.cpp, function getSource(), line 505)
=== argus_oneshot[11603]: CameraProvider initialized (0xffff8c6ae5c0)=== argus_oneshot[11603]: CameraProvider destroyed (0xffff8c6ae5c0)=== argus_oneshot[11603]: Connection closed (FFFF924FC900)=== argus_oneshot[11603]: Connection cleaned up (FFFF924FC900)

when use gstreamer:

gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),width=1440, height=1088, framerate=30/1, format=NV12' ! nvjpegenc quality=100 ! filesink location=frame.jpg

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:751 No cameras available
Got EOS from element "pipeline0".
Execution ended after 0:00:00.005060086
Setting pipeline to NULL ...
Freeing pipeline ...

No cameras available could be the context of the tegra_camera_platform{} incorrect. Could be the devname incorrect or something else.

That means I should look for fixing the problem in the camera driver or in the device tree?

Need fix by device tree.

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