Camera - FriendlyELEC WiKi (original) (raw)

查看中文

Contents

1 How to test CAM415 MIPI camera

1.1 Supported Operating Systems

1.2 CAM415 Out-of-the-Box Ready Boards

1.3 How to connect the camera

Which CSI interface should the camera connect to? Please refer to the table on the DTS files page for details.

1.4 Testing the Camera in Desktop System

On Debian 11 Desktop, you can use Cheese to record video and capture photos with a MIPI camera. Launch Cheese via Applications → Multimedia → Cheese. The interface appears as shown above:
Desktop11-cheese.png

1.5 Testing with GStreamer

1.5.1 Pre-test Setup

sudo apt update sudo apt install gstreamer1.0-tools gstreamer1.0-plugins-bad

1.5.2 Wayland

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/gstreamer-1.0 gst-launch-1.0 v4l2src device=/dev/video-camera0 ! video/x-raw,format=NV12,width=1920,height=1080, framerate=30/1 ! waylandsink

1.5.3 X11

export DISPLAY=:0.0 gst-launch-1.0 v4l2src device=/dev/video-camera0 ! video/x-raw,format=NV12,width=1920,height=1080, framerate=30/1 ! xvimagesink

1.5.4 Command Line

gst-launch-1.0 v4l2src num-buffers=20 device=/dev/video-camera0 ! video/x-raw,format=NV12,width=1920,height=1080, framerate=30/1 !
jpegenc ! multifilesink location="frame%d.jpg"

2 Frequently Asked Questions and Debugging Methods

2.1 Green Image Display (No 3A)

2.2 No Image

sudo dpkg -l | grep rkaiq

pi@NanoPC-T6-LTS:$ ls /dev/video-camera0 /dev/video-camera0 pi@NanoPC-T6-LTS:$ ls /dev/video-camera1 /dev/video-camera1

2.3 Cheese Application Error or No Image

Currently, only the Cheese application on Debian 11 is supported. For other systems, please use GStreamer for camera preview.