请问X5是否支持两路mipi同时接入相同型号的摄像头

我的X5主板同时接了2个摄像头,videoIndex分别是0,2单独打开都可以,同时打开时第二个摄像头打开失败,我的摄像头型号为两个IMX477, pipeId配置相同或者不同都是如此:

2025/07/14 13:09:47.400 !INFO [OpenCamera][0450]hbn module
set camera fps: 50,width: 1920,height: 1080
Camera 0:
mipi_host: 0
Camera 1:
mipi_host: 2
Camera 2:
mipi_host: 0
Camera 3:
mipi_host: 0
Mipi csi0 has been used, please use other Cam interfaces
2025/07/14 13:09:47.400 ERROR [CamInitParam][0283]No camera sensor found, please check whether the camera connection or video_idx is correct.

2025/07/14 13:09:47.400 ERROR [OpenCamera][0498]CamInitParam failed error(-1)
[ERROR] [2025-07-14 13:09:47] open camera2 failed , camera2PipeId=1, camera2VideoIndex=2,width=1920,height=1080,fps=50 ret=-1
Cannot open file /sys/kernel/debug/vpu/venc.Cannot open file /sys/kernel/debug/vpu/vdec.Cannot open file /sys/kernel/debug/jpu/jenc.2025/07/14 13:09:47.440 ERROR [GetImageFrame][0690]get chn from 1920x1080 failed
[ERROR] [2025-07-14 13:09:47] Camera: sp_vio_get_frame ModelImage failed 1, ret=-1

请问如何解决?我项目上需要同时接入2路摄像头

1 个赞

那位大佬能知道如何解决吗,多谢了

从日志看:

Camera 0: mipi_host: 0
Camera 1: mipi_host: 2
Camera 2: mipi_host: 0   <-- 冲突
Camera 3: mipi_host: 0

说明:

  • 第一个摄像头使用了 mipi_host=0
  • 第二个摄像头也被分配了 mipi_host=0,导致冲突;

需要修改配置,确保使用不同的 MIPI Host

(帖子已被作者删除)

mipi host是修改程序中开流函数cam.open_cam(cam_id, 0, 30, 1920, 1080)吗