Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

GStreamer video motion detection plugin.

branch: master
Octocat-spinner-32 src Initial commit November 28, 2011
Octocat-spinner-32 .gitignore Initial commit November 28, 2011
Octocat-spinner-32 AUTHORS Initial commit November 28, 2011
Octocat-spinner-32 COPYING Initial commit November 28, 2011
Octocat-spinner-32 ChangeLog Initial commit November 28, 2011
Octocat-spinner-32 Makefile.am Initial commit November 28, 2011
Octocat-spinner-32 NEWS Initial commit November 28, 2011
Octocat-spinner-32 README Update README pipeline November 28, 2011
Octocat-spinner-32 autogen.sh Initial commit November 28, 2011
Octocat-spinner-32 configure.ac Initial commit November 28, 2011
README
GStreamer Motion Detector Plugin
================================

This is a simple GStreamer plugin that detects motion in a video
stream in a Gstreamer pipeline.  The element has one sink pad and
one source pad, both only support 24-bit RGB formats.

Connect the element inline with your video stream and either watch
the elements `notify::motion-detected` signal or watch for application
bus messages containing motion information.

The plugin uses OpenCV to find moving blobs against an averaged
background scene.  It's not super-robust but it's still quite
accurate.  You can tweak the element properties to improve detection
somewhat.

Here's a sample pipeline:

	$ gst-launch -v --gst-plugin-path=$PLUGIN_PATH \
          autovideosrc ! \
          video/x-raw-rgb ! \
          motiondetector draw_motion=true rate_limit=500 ! \
          ffmpegcolorspace ! \
          queue ! \
          autovideosink
Something went wrong with that request. Please try again.