AnsweredAssumed Answered

two camera preview at the same time on i.mx8m

Question asked by Richard Hu on Jul 17, 2018
Latest reply on Sep 30, 2018 by Rita Wang

Hello, Sir:


Our board have two MIPI-CSI2 interfaces and I can have two camera preview separately (not the same time).


I'm trying to enable two camera preview simultaneously on HDMI on i.mx8m.

I use gstreamer to output to waylandsink or kmssink but can't get it work.


The software is Yocto rocko (linux 4.9.88 BSP).


I refer to

to give instruction:

gst-launch-1.0 tee name=splitter \
v4l2src io-mode=2 device=/dev/video0 \
! video/x-raw,width=640, height=480 \
! waylandsink splitter. v4l2src io-mode=2 device=/dev/video1 \
! video/x-raw,width=640, height=480 \
! waylandsink splitter.

refer to

to give instruction:

gst-launch-1.0 -vv \
v4l2src io-mode=2 device=/dev/video0 ! \
videobox autocrop=true border-alpha=0 top=-70 bottom=-70 right=-220 ! \
videomixer name=mix ! \
video/x-raw,width=640, height=480 ! \
waylandsink \
v4l2src io-mode=2 device=/dev/video1 ! \
videobox autocrop=true border-alpha=0 top=-70 bottom=-70 left=-220 ! \


Is there any way to preview two MIPI-CSI2 camera at the same time?


Thank you~!