JVital2013 / RoadApplePi

An elegent "Black Box" solution that can be retrofitted into any car with an OBD(II) port for minimal cost.
GNU General Public License v3.0
234 stars 67 forks source link

Record video off the CSI connection? #2

Open marketmaster80 opened 5 years ago

marketmaster80 commented 5 years ago

Does RoadapplePi record directly off the CSI connection without modifying the software? I saw you used an USB webcam in development and did not see information about the CSI connection.

Also, is there plans to add GPS data? I would be interested in potentially funding both of those options.

MonsterITServices commented 5 years ago

+1 on that. Would love to know.

MonsterITServices commented 5 years ago

@marketmaster80 i've made a simple script to record from CSI rather than video0/1 https://github.com/alextovey/cardashcam

Beenay25 commented 5 years ago

Another +1 for the CSI cam. I'm trying to build something super small and a webcam will add a lot of bulk to the project

DogsbodyServices commented 5 years ago

I am recording Video on the RPi Zero W using the Noir camera on Raspbian Lite successfully.

I needed to add a symbolic link at /usr/local/bin/ffmpeg pointing to /usr/bin/ffmpeg and also load bcm2835-v4l2 to get it working.

Hope this is of some help to somebody.

P.S. I also had to install ffmpeg myself after the install script had ran but i think that was due to an issue i caused rather than the script itself.

marketmaster80 commented 5 years ago

@thedcspace , do you have a complete code that includes this modification? It would be greatly appreciated.

DogsbodyServices commented 5 years ago

I have forked the project to make changes directly to the code but i have not yet tested the changes, you might be better served making the changes manually.

Run the below to enable the module to load at boot: cat <<EOF>> /etc/modules-load.d/picamera.conf bcm2835-v4l2 EOF

Run the below to create the symbolic Link: ln -s /usr/bin/ffmpeg /usr/local/bin/ffmpeg

Your mileage may vary but that got it working for me.