Motion - Signal Loss Detection Patch

SignalLossDetectionPatch

Introduction

This patch does work but it is NOT ready for general use yet for a number of reasons:
  • Updates to motion-control not done yet
  • Works with both V4L and V4L2 but needs configure updating for V4L2
  • Only tested with BTTV driver

Description of Patch

This patch adds another config file option onsignallosscommand which is the name of an executable script to be called when either the video signal is lost or regained. If the video signal is lost the script the parameter passed to the executable is 0 when it is regained it is passed 1.

A new call is added the XMLRPC: motion.detection.status this returns either 1 or 0 to reflect the current state of the video signal for the specified camera.

Installation of Patch

zcat signal-loss.patch.gz | patch -p1

Discussion and Comments

One of the main issues with this patch is the it will not work with USB cameras, since when a USB camera is unplugged the motion thread hangs. There is some talk about fixing this with MotionWatchdog.


Topic revision: r2 - 27 Jun 2005, KennethLavrsen
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.