jetson-inference icon indicating copy to clipboard operation
jetson-inference copied to clipboard

"video-viewer" Timeout Error with e-CAM25_CUONX Camera on Jetson Orin NX

Open Phantom-00 opened this issue 1 year ago • 6 comments
trafficstars

I am experiencing an issue with accessing my e-CAM25_CUONX camera using the video-viewer application on my Jetson Orin NX. While the camera works perfectly with gst-launch-1.0, I encounter a timeout error with video-viewer.

Steps I did:

Connect the e-CAM25_CUONX camera to the Jetson Orin NX.

Verify camera functionality using the following GStreamer pipeline, which works without any issues: gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 !
"video/x-raw(memory:NVMM), format=(string)UYVY, width=(int)1920, height=(int)1080" !
nvvidconv ! "video/x-raw(memory:NVMM), format=(string)I420, width=(int)1920, height=(int)1080" !
nv3dsink sync=false

Attempt to access the camera using the video-viewer application:

video-viewer /dev/video0

Behavior: [gstreamer] gstCamera::Capture() -- a timeout occurred waiting for the next image buffer Additional Information:

The camera specifications, including resolution and frame rate, are supported. Attempting to run video-viewer with explicit parameters did not resolve the issue.

Any help to resolve this issue would be greatly appreciated.

Phantom-00 avatar Jun 04 '24 19:06 Phantom-00

Chiming in. I'm having the same issue, albeit sturdecam20 and Orin Nano. Did you resolve your problem?

andanders avatar Jul 15 '24 11:07 andanders

Yes, switching from 4-lane to 2-lane has solved the problem.

Phantom-00 avatar Jul 15 '24 11:07 Phantom-00

Sorry... what does that mean?

andanders avatar Jul 15 '24 11:07 andanders

@andanders I think they mean the cable that connects the MIPI CSI camera to the Jetson. I haven't exhaustively tested jetson-inference/jetson-utils with 3rd-party CSI cameras, so YMMV if you need to adjust the GStreamer pipeline to get video out of it.

edit - try using nvarguscamerasrc instead of V4L2 https://github.com/dusty-nv/ros_deep_learning/issues/139#issuecomment-2229558884

dusty-nv avatar Jul 15 '24 22:07 dusty-nv

When you install the driver, you will be asked in the terminal whether you want to install 2 lane or 4 lane drivers. You must therefore reinstall the driver and select 2 lane.

Phantom-00 avatar Jul 16 '24 08:07 Phantom-00

I reinstalled the drivers and was not prompted to select number of lanes. But I suspect that the drivers default to 2 lanes by looking at the install script and dmesg

[ 13.872095] Device No of MIPI lane configuration is 2

andanders avatar Jul 17 '24 12:07 andanders