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.
- Host: GitHub
- URL: https://github.com/thinkski/coralvid
- Owner: thinkski
- License: gpl-2.0
- Created: 2020-02-03T03:13:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-04T10:12:09.000Z (over 5 years ago)
- Last Synced: 2025-06-09T18:56:57.429Z (4 months ago)
- Topics: coral, coral-dev-board, coral-tpu, edgetpu, google-coral, h264, video
- Language: C++
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 bitrateusage: 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
```