Hi!
On a Dragonboard 410C, when I was trying to live stream video from dual OV5645 camera modules connected to a AISTARVISION MIPI adapter, I encountered some strange issue . Each of these two OV5645 works fine as long as they are not working in the same time. When both of them are live streaming video in the same time, at least one of the video will be “damaged.”
Here is how I configure their pipelines:
sudo media-ctl -d /dev/media0 -l '"msm_csiphy0":1->"msm_csid0":0[1],"msm_csid0":1->"msm_ispif0":0[1],"msm_ispif0":1->"msm_vfe0_rdi0":0[1]'
sudo media-ctl -d /dev/media0 -V '"ov5645 4-003b":0[fmt:UYVY8_2X8/2592x1944 field:none],"msm_csiphy0":0[fmt:UYVY8_2X8/2592x1944 field:none],"msm_csid0":0[fmt:UYVY8_2X8/2592x1944 field:none],"msm_ispif0":0[fmt:UYVY8_2X8/2592x1944 field:none],"msm_vfe0_rdi0":0[fmt:UYVY8_2X8/2592x1944 field:none]'
sudo media-ctl -d /dev/media0 -l '"msm_csiphy1":1->"msm_csid1":0[1],"msm_csid1":1->"msm_ispif1":0[1],"msm_ispif1":1->"msm_vfe0_rdi1":0[1]'
sudo media-ctl -d /dev/media0 -V '"ov5645 4-003a":0[fmt:UYVY8_2X8/2592x1944 field:none],"msm_csiphy1":0[fmt:UYVY8_2X8/2592x1944 field:none],"msm_csid1":0[fmt:UYVY8_2X8/2592x1944 field:none],"msm_ispif1":0[fmt:UYVY8_2X8/2592x1944 field:none],"msm_vfe0_rdi1":0[fmt:UYVY8_2X8/2592x1944 field:none]'
And then use GStreamer to get video streams from them:
gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,format=UYVY,width=2592,height=1944' ! glimagesink
gst-launch-1.0 v4l2src device=/dev/video1 ! 'video/x-raw,format=UYVY,width=2592,height=1944' ! glimagesink
If only one OV5645 (either the front one or the rear one) is activated to send video stream, then it will work fine. However, if both of them are activated, then somehow the two video streams will be damaged like this (they are shown side by side):
I’m wondering if I’ve incorrectly configured these two cameras?
Any comment will be highly appreciated!