Page 1 of 1

Dual 4MP camera video record

Posted: Mon Feb 11, 2019 9:00 am
by mos100
Hi,

How can i record from 2 video cameras connected to MIPI (MCAM400) simultaneously using HW ISP and openCV?

Thanks.

Re: Dual 4MP camera video record

Posted: Wed Feb 13, 2019 6:48 am
by ayaromenok
Look like it's impossible now due to 4CSI/MIPI line nature of 4MP cameras, while Rk3399 itself have only 6 CSI lines(info from another board).

probably, if you manage to configure cameras with only 2 CSI/MIPI per camera, it would be possible to use two of them simultaneously with follow code

Code: Select all

    cv::VideoCapture capture(" rkisp device=/dev/video0 sensor-id=1 io-mode=4 path-iqf=/etc/cam_iq/rk-ov4689.xml ! video/x-raw,format=NV12,width=672,height=380,framerate=30/1 ! videoconvert ! appsink", cv::CAP_GSTREAMER);
    cv::VideoCapture capture2(" rkisp device=/dev/video4 sensor-id=5 io-mode=4 path-iqf=/etc/cam_iq/rk-ov4689.xml ! video/x-raw,format=NV12,width=672,height=380,framerate=30/1 ! videoconvert ! appsink", cv::CAP_GSTREAMER);


PS: Raspberry PI stereo-camera setup use 2x2CSI lines config(but all RPi cameras use 2CSI line mode only)