MV IMX 287 多相机12bit录制问题
-
在Jetson AGX Orin上使用ADP-N4连接两个IMX287相机,0号相机接在bus30,1号相机接在bus31
当i2c设置输出为12bit(2)且v4l2也设置pixelformat为XY12的时候,0相机可以以12bit记录,但是1相机会报错
1相机只要i2c设置为2就无法记录,会报错,且即使v4l2设置为12bit也会以8bit记录
报错信息:v4l2-ctl --stream-mmap --stream-count=1000 -d /dev/video1 --verbose --stream-to=test1.raw VIDIOC_QUERYCAP: ok 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: 382976 ts: 0.000000 (error, ts-monotonic, ts-src-eof) cap dqbuf: 1 seq: 1 bytesused: 382976 ts: 0.000000 (error, ts-monotonic, ts-src-eof) cap dqbuf: 2 seq: 2 bytesused: 382976 ts: 0.000000 (error, ts-monotonic, ts-src-eof) cap dqbuf: 3 seq: 3 bytesused: 382976 ts: 0.000000 (error, ts-monotonic, ts-src-eof)i2c设置:
sudo ./mv_mipi_i2c.sh -w -f pixelformat -p1 2 -b 31 w pixelformat is 2 -
@etherealhorizon
使用mv_mipi_i2c.sh脚本,只是直接写入了摄像头寄存器,配置了摄像头的数据格式,但是v4l2驱动中并未得到通知。建议你采用v4l2-ctl配置相机关于相机分辨率,帧率,数据格式的参数。
比如用下面这个脚本测测看。export WIDTH=704 export HEIGHT=544 export FPS=319 v4l2-ctl --set-ctrl roi_x=0 v4l2-ctl --set-ctrl roi_y=0 v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=XY12 v4l2-ctl --set-ctrl frame_rate=$FPS v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=XY12 --stream-mmap --stream-count=1000 -d /dev/video0 --verbose --stream-to=test1.raw
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login