Hello
On my custom Board I use a Jetson Orin NX with 4 ar0234 Sensors.
When I run my gstreamer pipeline with 2 nvarguscamerasrc’s everything works as expected.
Whenever I try to run the pipeline with 3 or 4 nvarguscamerasrc’s only 2 sensors will start. It appears to be random which 2 sensors are starting.
I am using the following gstreamer pipeline to test:
gst-launch-1.0
nvarguscamerasrc sensor-id=0 ! ‘video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1’ ! cammux.sink_0
nvarguscamerasrc sensor-id=1 ! ‘video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1’ ! cammux.sink_1
nvarguscamerasrc sensor-id=2 ! ‘video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1’ ! cammux.sink_2
nvarguscamerasrc sensor-id=3 ! ‘video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1’ ! cammux.sink_3
nvstreammux name=cammux width=1920 height=1080 batch-size=8 batched-push-timeout=-1 !
nvmultistreamtiler rows=2 columns=2 width=1920 height=1080 !
nvvidconv flip-method=0 !
“video/x-raw, format=(string)I420” !
jpegenc quality=85 ! “image/jpeg” ! rtpjpegpay mtu=1400 pt=96 !
udpsink host=192.168.13.211 port=5001 sync=false async=false
I see the error:
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:762 Failed to create CaptureSession
In my dmesg output I only see that 2 sensor instances receive the start stream command:
[ 69.179667] nvmap_alloc_handle: PID 1544: gst-launch-1.0: WARNING: All NvMap Allocations must have a tag to identify the subsystem allocating memory.Please pass the tag to the API call NvRmMemHanldeAllocAttr() or relevant.
[ 69.227446] NVRM: The NVIDIA probe routine was not called for 1 device(s).
[ 69.227452] NVRM: This can occur when a driver such as:
NVRM: nouveau, rivafb, nvidiafb or rivatv
NVRM: was loaded and obtained ownership of the NVIDIA device(s).
[ 69.227455] NVRM: Try unloading the conflicting kernel module (and/or
NVRM: reconfigure your kernel without the conflicting
NVRM: driver(s)), then try loading the NVIDIA kernel module
NVRM: again.
[ 69.227456] NVRM: No NVIDIA devices probed.
[ 69.422734] ar0234 31-0018: ar0234_power_on:
[ 69.439608] bwmgr API not supported
[ 69.447451] ar0234 31-0018: ar0234_set_mode: Set mode 0 at CAM0
[ 69.451055] ar0234 31-0018: ar0234_write_table: start write table CAM0
[ 70.042122] ar0234 31-0018: ar0234_set_gain_manual: CAM0 set gain 171
[ 70.042131] ar0234 31-0018: ar0234_set_gain_manual: CAM0 val: 17100 (/100) [times], gain_reg: 0xd
[ 70.042495] ar0234 31-0018: ar0234_set_exposure_manual: CAM0 set exposure val: 27409
[ 70.042499] ar0234 31-0018: ar0234_set_exposure_manual: CAM0 coarse time val:1015
[ 70.042812] ar0234 31-0018: ar0234_set_frame_rate: set frame rate 30 FPS
[ 70.042816] ar0234 31-0018: ar0234_set_frame_rate: val: 30000000, , frame_length: 1220
[ 70.043127] ar0234 31-0018: ar0234_start_streaming: Start stream CAM0
[ 70.043131] ar0234 31-0018: ar0234_write_table: start write table CAM0
[ 70.043857] bwmgr API not supported
[ 70.099201] ar0234 33-0018: ar0234_power_on:
[ 70.117763] bwmgr API not supported
[ 70.117909] ar0234 33-0018: ar0234_set_mode: Set mode 0 at CAM3
[ 70.121591] ar0234 33-0018: ar0234_write_table: start write table CAM3
[ 70.710128] ar0234 33-0018: ar0234_set_gain_manual: CAM3 set gain 171
[ 70.710139] ar0234 33-0018: ar0234_set_gain_manual: CAM3 val: 17100 (/100) [times], gain_reg: 0xd
[ 70.710306] ar0234 33-0018: ar0234_set_exposure_manual: CAM3 set exposure val: 27409
[ 70.710310] ar0234 33-0018: ar0234_set_exposure_manual: CAM3 coarse time val:1015
[ 70.710472] ar0234 33-0018: ar0234_set_frame_rate: set frame rate 30 FPS
[ 70.710476] ar0234 33-0018: ar0234_set_frame_rate: val: 30000000, , frame_length: 1220
[ 70.710640] ar0234 33-0018: ar0234_start_streaming: Start stream CAM3
[ 70.710643] ar0234 33-0018: ar0234_write_table: start write table CAM3
I tried boosting the clocks and setting the power mode to MAX, but it did not change the result.
Any Hints or help is highly appreciated.
Kind Regards