Hi Nvidia:
I bring up a gmsl camera on AGXOrin platform.
It works fine by using v4l2-ctl command and argus_camera in jetson_multimedia_api.
v4l2-ctl command:
argus_camera app:
However, when using gstreamer with nvarguscamerasrc plugin,
gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! ‘video/x-raw(memory:NVMM), width=(int)1280, height=(int)2880, format=(string)NV12, framerate=(fraction)30/1’ ! nvegltransform ! nveglglessink sync=0
it got error:
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. gstnvarguscamerasrc.cpp, threadExecute:694 NvBufSurfaceFromFd Failed.
Error generated. gstnvarguscamerasrc.cpp, threadFunction:247 (propagating)
How to solve this problem?
Appreciate any comments or help.
Thanks in advance!
hello Atehsints0613,
let’s have issue narrow down by excluding the nvegltransform element.
for instance,
pleases give it a try to disable preview and shows frame-rate only.
$ gst-launch-1.0 nvarguscamerasrc sensor-id=0 sensor-mode=0 ! 'video/x-raw(memory:NVMM),width=1280, height=2880, framerate=30/1, format=NV12' ! nvvidconv ! fpsdisplaysink text-overlay=0 name=sink_0 video-sink=fakesink sync=0 -v
Hi Jerry;
thanks for your help.
I got the same error with the command disable preview display.
Is there any other things I can try? Thank you.
hello Atehsints0613,
is it a PWL-WDR sensor mode? I barely see there’s 20bpp->12bpp in your mode index.
Hi Jerry:
Here’s the device-tree setting.
Does it have anything to do with the problem ?
Thank you.
hello Atehsints0613,
we’ve also test locally with IMX185’s PWL-WDR sensor mode. it’s able to stream through nvarguscamerasrc plugin.
since you’ve verified V4L2 IOCTL and also libargus, the sensor driver should be basically valid.
the issue should be nvarguscamerasrc, which always advertises NV12 only.
please give it a try to test with dynamic_pixel_bit_depth = "16"; and please also note that, PWL supports up-to nine control points.
— 🤖 This is an automated AI response. I’m here to help, but please verify important details! —
Based on the provided context, it appears that you are experiencing issues with the nvarguscamerasrc plugin in GStreamer on the Jetson AGX Orin platform. Specifically, you are seeing an error message indicating that NvBufSurfaceFromFd failed.
To address this issue, I would recommend checking the following:
- Camera configuration: Ensure that your camera is properly configured and that the settings are correct. You can try using the
v4l2-ctl command to verify the camera settings.
- GStreamer pipeline: Verify that your GStreamer pipeline is correct and that the
nvarguscamerasrc plugin is properly configured. You can try using the gst-inspect command to inspect the plugin and its properties.
- NvBufSurfaceFromFd: The error message indicates that
NvBufSurfaceFromFd failed. This function is used to create a NvBufSurface from a file descriptor. You can try checking the file descriptor and ensuring that it is valid.
Additionally, you can try the following:
- Check the device tree: Ensure that the device tree is properly configured for your camera.
- Check the kernel logs: Check the kernel logs for any error messages related to the camera or the
nvarguscamerasrc plugin.
- Try a different GStreamer pipeline: Try using a different GStreamer pipeline to see if the issue is specific to the
nvarguscamerasrc plugin.
If none of these suggestions help, please provide more information about your setup and configuration, and I will do my best to assist you further.
Note: The provided context does not mention the specific JetPack or L4T version being used. Please ensure that you are using a compatible version of JetPack or L4T for your Jetson AGX Orin platform.
— We support team will also look into your issue to have further suggestions soon. please stay tuned. —