MIPI-CSI camera

From Tinker Board Wiki
Jump to navigation Jump to search


Supported Chipsets

Currently MX219 and OV5647 tested & supported

OV5647 commonly used in Raspberry Pi Camera v1

MX219 commonly used in Raspberry Pi Camera v2

Camera Operation


Camera Preview:

Built-in Camera test tool for operation.


  camHalTest.bin 0


  camHalTest.bin 1

0 for show preview on DSI, 1 for HDMI

gStreamer support

On screen video preview:

   gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV12,width=640,height=480 ! videoconvert ! autovideosink

Capture a single JPEG image :

   gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=5 ! video/x-raw,format=NV12,width=640,height=480 ! videoconvert ! jpegenc ! multifilesink location=test.jpg

View captured image:

  gpicview test.jpg


A script for general capture using gstreamer http://github.com/mikerr/tinkercam

Capture JPEG with arbitrary size:

   camstill.sh -e jpeg -w 1280 -h 800

Capture PNG and set filename:

   camstill.sh -e png -f test.png

Capture still with text overlay:

   camstill.sh -t "Experiment 13"

Other apps

Camera output available at /dev/video0 for use with other apps

Video of use: https://youtu.be/43-AAvKdRUg?t=4m27s