Motion - Support Question 2013x 02x 26x 154851

Calling an external program when the capture device fails?

Question

Hi, I'm using Motion with a Logitech Quickcam Sphere MP on a Raspberry Pi. They work perfectly most of the time, but after every few days it would silently stop working, with the captured frames turning into grey frames with the "UNABLE TO OPEN VIDEO DEVICE" message on the top left. It goes away after I reboot the system, but right now I have to manually check whether the system still works.

Is it possible for Motion to call an external program when the capture device stops working? This way I can let the Raspberry Pi reboot itself when the camera fails. Thanks!


Environment

Motion version: 3.2.12
ffmpeg version:  
Libraries: ffmpeg
Server OS: Raspbian wheezy
-- JimmyYen - 26 Feb 2013

Answer

Sadly Motion does not have any events triggered or status information that says a camera is no longer passing video frames

-- KennethLavrsen - 01 Mar 2013
Topic revision: r2 - 01 Mar 2013, 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.