Second argus stream breaks first

If I run this command to boot a Gstreamer pipeline:

gst-launch-1.0 nvarguscamerasrc num-buffers=1000 ! 'video/x-raw(memory:NVMM),width=2880, height=1860, framerate=20/1, format=NV12' ! omxh265enc ! qtmux ! filesink location=test.mp4 -e

Then, run this command in a separate window:

gst-launch-1.0 nvarguscamerasrc sensor-id=1 num-buffers=1000 ! 'video/x-raw(memory:NVMM),width=2880, height=1860, framerate=20/1, format=NV12' ! omxh265enc ! qtmux ! filesink location=test.mp4 -e

My first stream crashes and I get this error:

ERROR: from element /GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0: TIMEOUT
Additional debug info:
Argus Error Status

I’ve followed the instructions here, applying a patch to gstnvarguscamerasrc.cpp to increase ACQUIRE_FRAME_TIMEOUT to 5000000000, but still have this error. I can run two v4l2 streams simultaneously without issues:

v4l2-ctl -d /dev/video0 --set-fmt-video=width=2880,height=1860,pixelformat=RG12 --stream-count=1000 --stream-mmap --stream-to=csi0.raw --verbose


v4l2-ctl -d /dev/video1 --set-fmt-video=width=2880,height=1860,pixelformat=RG12 --stream-count=1000 --stream-mmap --stream-to=csi1.raw --verbose

Would like to get more information. Please share which camera sensors you use, brand and model ID(such as Sony imx219). Is the camera module from our partners? And which release version you are using.

Hey @DaneLLL, I’m using Sony IMX490s from Leopard Imaging. Using r32.5.0 currently.

Increasing ACQUIRE_FRAME_TIMEOUT to 10000000000 actually allows me load two streams simultaneously through Gstreamer, but if I try to launch my Gstreamer application with 3 or more, it breaks

Is the camera LI-IMX490-GMSL2? Are you running the camera on Nvidia Jetson AGX Xavier Developer kit or a 3-rd party’s carrier board? Could you let us know which driver you are using (driver guide name if possible)?

@SimonZhu I’m using LI-IMX490-FPDLinkIII on the Nvidia Jetson AGX Xavier Developer kit. We are using a custom driver since Leopard does not currently offer one for this camera

Yes, we don’t have the Xavier driver for LI-IMX490-FPDLINKIII yet. The issue is probably caused by the driver. Have you checked with the driver developer about this issue?
You can also try below command to see if it works.
gst-launch-1.0 nvarguscamerasrc sensor-id=0 num-buffers=1000 ! ‘video/x-raw(memory:NVMM), width=2880, height=1860, framerate=20/1’ ! nvtee ! omxh264enc bitrate=2000000 ! qtmux ! filesink location=video.mp4

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

Hi @jack31
Please update latest status if you still observe the issue. Thanks.

@DaneLLL @SimonZhu We developed the driver ourselves! We are still experiencing this issue.

We’re able to run the linked command. Here is the patch we are using to increase ACQUIRE_FRAME_TIMEOUT:

diff --git a/gstnvarguscamerasrc.cpp b/gstnvarguscamerasrc.cpp
--- a/gstnvarguscamerasrc.cpp
+++ b/gstnvarguscamerasrc.cpp
@@ -81,7 +81,7 @@
 #define GST_NVARGUS_MEMORY_TYPE "nvarguscam"
 static const int DEFAULT_FPS        = 30;
 static const uint64_t TIMEOUT_FIVE_SECONDS  = 5000000000;
-static const uint64_t ACQUIRE_FRAME_TIMEOUT = 1000000000;
+static const uint64_t ACQUIRE_FRAME_TIMEOUT = 5000000000;
 #ifdef __cplusplus
 extern "C"

This should be the driver issue. We don’t have Jetson Xavier driver for LI-IMX490-FPDLINKIII yet.
We plan to build one and provide the code to you for reference. You can contact to check the driver status.

@SimonZhu Hey simon, we are aware that Leopard doesn’t currently offer a driver for this camera. Nvidia has requested that we post about this issue on the forums for advice from them directly.

@DaneLLL any thoughts on how to move forward here?

Hi @jack31 ,
We would need camera partner’s assistance for driver porting. Please wait for the release. We will work with Leopard.

The Jetson Xavier driver will be ready in 1 week or 2. Please contact to get the driver code.