Nvgstcapture-1.0 is no problem, but v4l2-ctl can't get stream

Hi Nvidia team:
we are tuning a camera on JETSON Orin Nano, There is a problem need you help!
Hardware Platform:Jetson Orin Nano Devkit
Jetpack: Jetpack-5.1.1-L4T 35.3.1

when we use nvgstcapture-1.0, bring camera is Ok, the commond:
nvgstcapture-1.0 --sensor-id=1

but when use v4l2-ctl cant to get stream, the commond:

root@nvidia-desktop:/home/nvidia/SG_MIPI_CAM# v4l2-ctl -d /dev/video1 --set-fmt-video=width=2028,height=1112,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --verbose
VIDIOC_QUERYCAP: ok
VIDIOC_S_EXT_CTRLS: ok
VIDIOC_G_FMT: ok
VIDIOC_S_FMT: ok
Format Video Capture:
	Width/Height      : 2028/1112
	Pixel Format      : 'RG10' (10-bit Bayer RGRG/GBGB)
	Field             : None
	Bytes per Line    : 4056
	Size Image        : 4510272
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
		VIDIOC_REQBUFS returned 0 (Success)
		VIDIOC_QUERYBUF returned 0 (Success)
		VIDIOC_QUERYBUF returned 0 (Success)
		VIDIOC_QUERYBUF returned 0 (Success)
		VIDIOC_QUERYBUF returned 0 (Success)
		VIDIOC_QBUF returned 0 (Success)
		VIDIOC_QBUF returned 0 (Success)
		VIDIOC_QBUF returned 0 (Success)
		VIDIOC_QBUF returned 0 (Success)
		VIDIOC_STREAMON returned 0 (Success)
cap dqbuf: 0 seq:      0 bytesused: 4510272 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq:      0 bytesused: 4510272 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:      1 bytesused: 4510272 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq:      2 bytesused: 4510272 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq:      3 bytesused: 4510272 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq:      0 bytesused: 4510272 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq:      0 bytesused: 4510272 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:      1 bytesused: 4510272 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq:      2 bytesused: 4510272 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq:      3 bytesused: 4510272 ts: 0.000000 (error, ts-monotonic, ts-src-eof)

we upload the dmsg & trace log, please help to check this problem!
dmsg.txt (1.6 KB)
trace.log (1.7 MB)

hello chenxinhai,

may I know how many cameras on the system?
please note that… --sensor-id=1 did not equal to -d /dev/video1.

according to error logs.
there’s timeout failure for waiting sensor frames, it’s the camera device using CSI-C.
so… would you please double check the Port Binding, and please Verifying the V4L2 Sensor Driver.

Tks , the problem caused by Port Binding error!

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