Skip to content

A dash cam using raspberry pi and rpi camera, long-duration recording without frame drop

License

Notifications You must be signed in to change notification settings

xeonqq/rpi_dash_cam

Repository files navigation

Raspberry pi Dashcam

rpi dash cam uses raspberrypi + rpi camera to create your own dashcam. It supports button control and LED indication. Very simple and minmal code. Most importantly, it has no frame drop!

During recording rpi dash cam requires very little CPU and memory source, it uses techniques like Theading and Event Queue to handle the workload between capturing and buffer saving. Thus solves the frame dropping problem many people are facing when recording long-duration video.

Tested on RPI3 model B with rpi camera V2. Demo video.

Buy me a coffee 😇Buy me a coffee 😇

Installation

ssh pi@raspberrypi.local
cd ~
git clone https://github.com/xeonqq/rpi_dash_cam.git camera_record
cd camera_record
pip3 install -r requirements.txt
sudo apt-get install gpac # for MP4Box, or build standalone binary from [source](https://github.com/gpac/gpac/wiki/GPAC-Build-Guide-for-Linux#mp4box-only) to save disk space

Hardwares

  • LED light on pin 10
  • button on pin 8
  • exteral usb stick for saving the videos. To mount it at boot refer to mount external-storage

Execute

python3 record.py

Usage:

  • LED constant on indicating ready to record
  • Press button once to start recording, LED start blinking in 1 sec interval
  • Press button again to stop recording

Start RPI dash-cam on boot

sudo apt-get install supervisor
sudo cp rpicam-record-proccess.conf /etc/supervisor/conf.d/

About

A dash cam using raspberry pi and rpi camera, long-duration recording without frame drop

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages