Dual imx219 cameras with Orin NX 8GB on Jetpack 5.1.1

Dear All,

Only one camera works for dual imx219 settings. Are there any suggestions?

Setup:
OrinNX 8GB JP5.1.1 R35.3.1
Two IMX219 M12/CS mount CMOS Cameras
Seeed J401 carrier

Error:

nvarguscamerasrc sensor-id=0 ! video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)20/1 ! nvvidconv flip-method=0 ! video/x-raw, width=(int)960, height=(int)540, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3280 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 3280 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 2
Output Stream W = 1920 H = 1080
seconds to Run = 0
Frame Rate = 29.999999
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:694 NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:247 (propagating)

Thanks.

Hi,zeyu:
Looking at the reasons for your error, I guess you can use the following methods to solve it, I hope it will be helpful to you:
1. Restart the camera or restart your NVIDIA host
Restarting the program to run again (I used a jetson tx2 connected to a Cheetah camera) also encountered related issues
sudo systemctl restart nvargus-daemon
After the nvargus-daemon is restarted, it can run normally

2. Install ros’ csi camera package (theory: I’ve done this on linux but I haven’t tried one on NVIDIA), I’ve put the link up on github: GitHub - peter-moran/jetson_csi_cam: A ROS package making it simple to use CSI cameras on the Nvidia Jetson TK1, TX1, or TX2 with ROS.

Dear Jostar,

Is this method work for both camera at the same time ?

Hi,vincentng:
In theory, it is OK, as long as the configuration and startup is no problem, there should be no problem (Forgive me :smiling_face_with_tear:, I have not tried whether it can be applied to two cameras, ha ha, because I do not know dual cameras, the above problems are the problems I encountered when using ordinary cameras and solutions, I also hope that if you can have capable friends can try and share :star_struck:
Jostar

Thanks Jostar, will try on it.