MIPI CSI Camera Preview in Linux

cancel
Showing results for 
Search instead for 
Did you mean: 

MIPI CSI Camera Preview in Linux

921 Views
choppad
Contributor II

Hello iMX Community Gurus:

I'm wanting to utilize the i.MX8M-EVK and the MINISASTOCSI2 Camera module to do a camera preview - stream what the camera is pointed towards while in the Linux environment.  As the kit ships with Android loaded in eMMC, I've been able to do camera preview under Android successfully.  I've built a Linux uSD Card which boots into Linux, based upon the Linux Users Guide and it successfully boots into Linux and I can do some 3D demos using the GPU and GLES . 

I would like to evaluate the performance MIPI Camera in Linux to see how the frame latency is as there isn't a hardware H.264 encoder.  And I don't understand how to open the MIPI CSI Camera which appears to be getting mapped to: /dev/video0. 

Will someone please provide a correct step by step sequence to doing sort of demonstration if possible?

Thanks in Advance,

DeWayne

Labels (3)
0 Kudos
1 Reply

239 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi DeWayne,

If MIPI is under you kernel configuration you just need to open the frame:

this is for avi file:

GSTL filesrc location=test.avi typefind=true ! video/x-msvideo
! aiurdemux name=demux demux.
! queue max-size-buffers=0 max-size-time=0 ! avdec_h264
! overlaysink demux.
! queue max-size-buffers=0 max-size-time=0 ! beepdec
! pulsesink

Take a look at the IMX linux user guide.

0 Kudos