An open API service indexing awesome lists of open source software.

https://github.com/thinkski/coralvid

Command line tool for capturing video with the Google Coral EdgeTPU camera module. Akin to raspivid for the Raspberry Pi.
https://github.com/thinkski/coralvid

coral coral-dev-board coral-tpu edgetpu google-coral h264 video

Last synced: 4 months ago
JSON representation

Command line tool for capturing video with the Google Coral EdgeTPU camera module. Akin to raspivid for the Raspberry Pi.

Awesome Lists containing this project

README

          

coralvid
========

Command line tool for capturing video with the Google Coral EdgeTPU camera
module.

## Quickstart

Build:
```
mendel@edgetpu:~/coralvid$ mkdir build
mendel@edgetpu:~/coralvid$ cd build
mendel@edgetpu:~/coralvid/build$ cmake -DCMAKE_BUILD_TYPE=Release ..
mendel@edgetpu:~/coralvid/build$ make
mendel@edgetpu:~/coralvid/build$ sudo make install
```
The above is for on-target builds. Cross-compilation is left as an exercise to the reader.

Print usage:
```
mendel@edgetpu:~$ coralvid --help
Capture H264 from CSI/MIPI camera at the requested bitrate

usage: coralvid [options]

Options:
-b, --bitrate= Bitrate in Kbps (default: 1000)
-f, --fps= Frame rate (default: 30)
-h, --height= Frame height (default: 720)
-w, --width= Frame width (default: 1280)
-i, --input= Input device (default: /dev/video0)
-n, --num-buffers= Number of video buffers (default: 4)
-o, --output= Output file (default: stdout)
-p, --profile= H.264 profile (default: baseline)
-t, --timeout= Seconds to capture (default: 10)
--autofocus Enable autofocus
--help Print this message
-v, --version Print version
--verbose Print frames/sec information
```

Capture sample:
```
mendel@edgetpu:~$ coralvid -o sample.264
```