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