https://github.com/bemasher/pmvr
Raspberry Pi Motion Video Recorder
https://github.com/bemasher/pmvr
camera ffmpeg motion motion-vectors raspberry raspberry-pi raspberry-pi-camera raspivid security
Last synced: 5 months ago
JSON representation
Raspberry Pi Motion Video Recorder
- Host: GitHub
- URL: https://github.com/bemasher/pmvr
- Owner: bemasher
- License: agpl-3.0
- Created: 2017-04-30T00:42:32.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-08T23:10:34.000Z (about 7 years ago)
- Last Synced: 2025-02-01T12:44:08.032Z (5 months ago)
- Topics: camera, ffmpeg, motion, motion-vectors, raspberry, raspberry-pi, raspberry-pi-camera, raspivid, security
- Language: Go
- Size: 95.7 KB
- Stars: 23
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PMVR
The Raspberry **P**i **M**otion **V**ideo **R**ecorder is a proof of concept daemon that makes use of the motion estimation vectors available from the RPi's hardware accelerated H.264 encoder to detect and save clips of motion.# Setup
* Requires the Go toolchain (>=go1.8)
* I've not checked this for standard library compatibility with anything prior to `go1.8`. It may or may not work on versions prior to that.
* Raspivid
* On Arch Linux this is provided as part of `raspberrypi-firmware` but is not listed in the path. It must be in the path.
* FFmpeg (or avconv symlinked as ffmpeg, if you must)
* A named pipe for motion vectors: `mkfifo motion_vectors.fifo`# Installation
```go
go get -v github.com/bemasher/pmvr
go install -v github.com/bemasher/pmvr
```# Running
```bash
pmvr
```# Resource Usage
Except for determining magnitude of motion over each frame, we're just shuffling data around. PMVR is very light on resources:
# Improvements and Feature Requests
Have any improvements or feature requests? Submit an issue and we'll discuss feasibility.# ToDo
- [ ] Add command line flags for:
- [ ] Motion detection thresholds.
- [ ] Raspivid command line options.
- [ ] FFmpeg command line options.