EwingKang / raspisense

A synchronized logger for raspicam and UBlox M8N for sensor fusion / VIO project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RaspiSense project

Build project

Prepare prerequisite

  • Install the Raspberry Pi VideoCore library.
    • It's under /opt/vc. This directory usually comes with the RPI image.
    • It can also be install with apt, according to the "VideoCore" section of this tutorial,
    • or it can be built from source with [this] if it's not already under /opt/vc.

Clone the project

git clone git@github.com:EwingKang/raspisense.git
cd raspisense
git submodule --update --init --recursive

Build the project

mkdir build && build/
cmake .. -G Ninja
ninja

Execution

socat -d -d pty,raw,echo=0 pty,raw,echo=0
 
 # Running encoder with callback
 cd build/module/rpicam_cpp/
 ./rpicam_cpp_test --save-pts timestamp.csv --nopreview --output vid.h264 --raw raw.yuv --raw-pts raw_pts.csv -t 10000 -v

ffmpeg -r 30 -i video.h264 -fflags +genpts -vcodec copy video.mp4
ffmpeg -r 30 -i video.h264 -vcodec copy video.mp4

TODO

About

A synchronized logger for raspicam and UBlox M8N for sensor fusion / VIO project

License:GNU General Public License v3.0


Languages

Language:C++ 75.6%Language:C 24.1%Language:CMake 0.3%