Project ODASHI (Onboard Diagnostics Assistant Serving Helpful Information) is a Raspberry Pi-based CAN-Bus reader and dash-cam system. It is designed to be a cost-effective solution for handling a variety of smart-car features in a secure manner. The system utilizes a Raspberry Pi 5, USB camera, and CAN-Bus interface to provide the following features:
v4l2-ctl --list-devices to show you your
webcam's information
#!/bin/bash
cd /home/pi/videos
find /home/pi/videos -type f -name "*.mjpeg" -mtime +14 -delete
ffmpeg -f v4l2 -input_format mjpeg -video_size 1280x720 -framerate 30 -i /dev/video0 -c:v copy -f segment -segment_time 60 -segment_atclocktime 1 -strftime 1 "dashcam_%Y%m%d_%H%M%S.mjpeg"