How to use ov5640 on banana pi BPI-M3

Step 1: Install git

$ sudo apt-get install git

Step 2: Update bpi-tools

$ git clone GitHub - BPI-SINOVOIP/bpi-tools: tools for Banana Pi $ cd bpi-tools $ sudo ./bpi-tools -u -U

Step 3: Use bpi-update to update kerenl

$ mkdir update_file $ cd update_file $ sudo bpi-update -c bpi-m3.conf $ sudo reboot

Step 4: Check again to see if the kernel’s been updated. The version should be newer than Thu Nov 17 08:10:07 UTC 2.016

$ sudo uname -a

pi@bpi-iot-ros-ai:~$ uname -a
Linux bpi-iot-ros-ai 3.4.39-BPI-M3-Kernel #4 SMP PREEMPT Thu Nov 17 08:10:07 UTC 2016 armv7l armv7l armv7l GNU/Linux

Step 5: Run command (use the ov5640 record video)

$ sudo ffmpeg-3.1.4 -f v4l2 -channel 0 -video_size 1920x1080 -i /dev/video0 -pix_fmt nv12 -r 22 -c:v cedrus264 bpi-m3_ov5640_test_1920x1080.mp4


Video Demo:

1 Like