GithubHelp home page GithubHelp logo

bemasher / pmvr Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 5.0 98 KB

Raspberry Pi Motion Video Recorder

License: GNU Affero General Public License v3.0

Go 100.00%
raspberry ffmpeg raspivid motion-vectors motion security camera raspberry-pi raspberry-pi-camera

pmvr's Introduction

PMVR

The Raspberry Pi Motion Video Recorder 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 get -v github.com/bemasher/pmvr
go install -v github.com/bemasher/pmvr

Running

pmvr

Resource Usage

Except for determining magnitude of motion over each frame, we're just shuffling data around. PMVR is very light on resources:

PMVR Running on an RPi3 with NOIR Camera V1

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.

pmvr's People

Contributors

bemasher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.