two camera preview at the same time on i.mx8m

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

two camera preview at the same time on i.mx8m

863 Views
richard_hu
Contributor V

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

https://medium.com/@petehouston/play-two-webcams-in-mjpg-format-simultaneously-using-gstreamer-2302c...

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

https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=207953&p=1287530#p1288133

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 ! \
mix.

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

Thank you~!

BR,

Richard

Labels (1)
0 Kudos
1 Reply

587 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

I am confirmed it for you, when I get update I will give reply to you as soon as possible.

0 Kudos