Open a-l-e-x-d-s-9 opened 9 years ago
I'm getting a similar problem, internal motion detect seems to turn off after a "Scheduled management tasks. Next at xxx" event.
Log file and motion setting attached.
Simon
Log:-
{2015/11/10 09:47:34} send smd 0 [2015/11/10 09:47:34] Stop capture requested [2015/11/10 09:47:34] Send ca 0 {2015/11/10 09:47:34} Capturing stopped {2015/11/10 09:47:34} Add /var/www/media/vi_0118_20151110_094728.mp4 to Box Queue at pos 8 {2015/11/10 09:47:34} Start boxing /var/www/media/vi_0118_20151110_094728.mp4.h264 to /var/www/media/vi_0118_20151110_094728.mp4 Queue pos 8 {2015/11/10 09:47:35} DEBUG 3 {2015/11/10 09:47:37} Finished boxing /var/www/media/vi_0118_20151110_094728.mp4 from Box Queue at pos 8 {2015/11/10 09:47:40} send smd 1 [2015/11/10 09:47:40] Start capture requested from Pipe [2015/11/10 09:47:40] Send ca 1 {2015/11/10 09:47:40} Capturing started [2015/11/10 09:47:42] Send im {2015/11/10 09:47:42} Capturing image {2015/11/10 09:47:55} send smd 0 [2015/11/10 09:47:55] Stop capture requested [2015/11/10 09:47:55] Send ca 0 {2015/11/10 09:47:56} Capturing stopped {2015/11/10 09:47:56} Add /var/www/media/vi_0119_20151110_094740.mp4 to Box Queue at pos 9 {2015/11/10 09:47:56} Start boxing /var/www/media/vi_0119_20151110_094740.mp4.h264 to /var/www/media/vi_0119_20151110_094740.mp4 Queue pos 9 {2015/11/10 09:47:56} DEBUG 3 {2015/11/10 09:47:59} Finished boxing /var/www/media/vi_0119_20151110_094740.mp4 from Box Queue at pos 9 {2015/11/10 09:48:37} send smd 1 [2015/11/10 09:48:37] Start capture requested from Pipe [2015/11/10 09:48:37] Send ca 1 {2015/11/10 09:48:37} Capturing started [2015/11/10 09:48:39] Send im {2015/11/10 09:48:39} Capturing image {2015/11/10 09:48:50} send smd 0 [2015/11/10 09:48:50] Stop capture requested [2015/11/10 09:48:50] Send ca 0 {2015/11/10 09:48:51} Capturing stopped {2015/11/10 09:48:51} Add /var/www/media/vi_0120_20151110_094837.mp4 to Box Queue at pos 10 {2015/11/10 09:48:51} DEBUG 3 {2015/11/10 09:48:52} Start boxing /var/www/media/vi_0120_20151110_094837.mp4.h264 to /var/www/media/vi_0120_20151110_094837.mp4 Queue pos 10 {2015/11/10 09:48:57} Finished boxing /var/www/media/vi_0120_20151110_094837.mp4 from Box Queue at pos 10 {2015/11/10 09:49:02} send smd 1 [2015/11/10 09:49:02] Start capture requested from Pipe [2015/11/10 09:49:02] Send ca 1 {2015/11/10 09:49:02} Capturing started [2015/11/10 09:49:04] Send im {2015/11/10 09:49:04} Capturing image {2015/11/10 09:49:12} send smd 0 [2015/11/10 09:49:12] Stop capture requested [2015/11/10 09:49:12] Send ca 0 {2015/11/10 09:49:12} Capturing stopped {2015/11/10 09:49:12} Add /var/www/media/vi_0121_20151110_094902.mp4 to Box Queue at pos 11 {2015/11/10 09:49:13} DEBUG 3 {2015/11/10 09:49:13} Start boxing /var/www/media/vi_0121_20151110_094902.mp4.h264 to /var/www/media/vi_0121_20151110_094902.mp4 Queue pos 11 {2015/11/10 09:49:15} Finished boxing /var/www/media/vi_0121_20151110_094902.mp4 from Box Queue at pos 11 {2015/11/10 09:49:19} send smd 1 [2015/11/10 09:49:19] Start capture requested from Pipe [2015/11/10 09:49:19] Send ca 1 {2015/11/10 09:49:19} Capturing started [2015/11/10 09:49:21] Send im {2015/11/10 09:49:21} Capturing image {2015/11/10 09:49:26} send smd 0 [2015/11/10 09:49:26] Stop capture requested [2015/11/10 09:49:26] Send ca 0 {2015/11/10 09:49:27} Capturing stopped {2015/11/10 09:49:27} Add /var/www/media/vi_0122_20151110_094919.mp4 to Box Queue at pos 12 {2015/11/10 09:49:27} Start boxing /var/www/media/vi_0122_20151110_094919.mp4.h264 to /var/www/media/vi_0122_20151110_094919.mp4 Queue pos 12 {2015/11/10 09:49:27} DEBUG 3 {2015/11/10 09:49:29} Finished boxing /var/www/media/vi_0122_20151110_094919.mp4 from Box Queue at pos 12 {2015/11/10 09:49:43} send smd 1 [2015/11/10 09:49:43] Start capture requested from Pipe [2015/11/10 09:49:43] Send ca 1 {2015/11/10 09:49:44} Capturing started [2015/11/10 09:49:46] Send im {2015/11/10 09:49:46} Capturing image {2015/11/10 09:49:50} send smd 0 [2015/11/10 09:49:50] Stop capture requested [2015/11/10 09:49:50] Send ca 0 {2015/11/10 09:49:51} Capturing stopped {2015/11/10 09:49:51} Add /var/www/media/vi_0123_20151110_094944.mp4 to Box Queue at pos 13 {2015/11/10 09:49:51} DEBUG 3 {2015/11/10 09:49:51} Start boxing /var/www/media/vi_0123_20151110_094944.mp4.h264 to /var/www/media/vi_0123_20151110_094944.mp4 Queue pos 13 {2015/11/10 09:49:52} send smd 1 [2015/11/10 09:49:52] Start capture requested from Pipe [2015/11/10 09:49:52] Send ca 1 {2015/11/10 09:49:52} Capturing started [2015/11/10 09:49:54] Send im {2015/11/10 09:49:54} Capturing image {2015/11/10 09:50:00} RaspiMJPEG Version 5.2.11 {2015/11/10 09:50:00} recommended video buffers 1 {2015/11/10 09:50:00} h264 buffers set to recommended 1 {2015/11/10 09:50:00} Set up internal detect width=82 height=61 {2015/11/10 09:50:00} MJPEG streaming, ready to receive commands {2015/11/10 09:50:00} send smd 9 [2015/11/10 09:50:00] Reload parameters command requested [2015/11/10 09:50:00] Scheduler loop is started {2015/11/10 09:50:00} DEBUG 3 [2015/11/10 09:50:01] Scheduled management tasks. Next at 1447152601 [2015/11/10 10:50:02] Scheduled management tasks. Next at 1447156202 [2015/11/10 11:50:03] Scheduled management tasks. Next at 1447159803 [2015/11/10 12:50:04] Scheduled management tasks. Next at 1447163404 [2015/11/10 13:50:05] Scheduled management tasks. Next at 1447167005 [2015/11/10 14:01:33] Saved schedule settings [2015/11/10 14:01:33] Send Schedule reset [2015/11/10 14:01:33] Reload parameters command requested [2015/11/10 14:01:33] Scheduler loop is started [2015/11/10 14:01:34] Scheduled management tasks. Next at 1447167694 {2015/11/10 14:01:40} Internal motion detection started {2015/11/10 14:01:40} recommended video buffers 1 {2015/11/10 14:01:40} h264 buffers set to recommended 1 {2015/11/10 14:01:40} Set up internal detect width=82 height=61 {2015/11/10 14:01:40} DEBUG 3 {2015/11/10 14:02:23} send smd 1 [2015/11/10 14:02:23] Start capture requested from Pipe [2015/11/10 14:02:23] Send ca 1 {2015/11/10 14:02:23} Capturing started [2015/11/10 14:02:25] Send im {2015/11/10 14:02:25} Capturing image {2015/11/10 14:02:29} send smd 0 [2015/11/10 14:02:29] Stop capture requested [2015/11/10 14:02:29] Send ca 0 {2015/11/10 14:02:30} Capturing stopped {2015/11/10 14:02:30} Add /var/www/media/vi_0125_20151110_140223.mp4 to Box Queue at pos 0 {2015/11/10 14:02:30} DEBUG 3 {2015/11/10 14:02:30} Start boxing /var/www/media/vi_0125_20151110_140223.mp4.h264 to /var/www/media/vi_0125_20151110_140223.mp4 Queue pos 0 {2015/11/10 14:02:32} Finished boxing /var/www/media/vi_0125_20151110_140223.mp4 from Box Queue at pos 0 {2015/11/10 14:03:22} send smd 1 [2015/11/10 14:03:22] Start capture requested from Pipe [2015/11/10 14:03:22] Send ca 1 {2015/11/10 14:03:22} Capturing started [2015/11/10 14:03:24] Send im {2015/11/10 14:03:24} Capturing image {2015/11/10 14:03:30} send smd 0 [2015/11/10 14:03:30] Stop capture requested [2015/11/10 14:03:30] Send ca 0 {2015/11/10 14:03:31} Capturing stopped {2015/11/10 14:03:31} Add /var/www/media/vi_0126_20151110_140322.mp4 to Box Queue at pos 1 {2015/11/10 14:03:31} DEBUG 3 {2015/11/10 14:03:31} Start boxing /var/www/media/vi_0126_20151110_140322.mp4.h264 to /var/www/media/vi_0126_20151110_140322.mp4 Queue pos 1 {2015/11/10 14:03:33} Finished boxing /var/www/media/vi_0126_20151110_140322.mp4 from Box Queue at pos 1 {2015/11/10 14:04:21} send smd 1 [2015/11/10 14:04:21] Start capture requested from Pipe [2015/11/10 14:04:21] Send ca 1 {2015/11/10 14:04:21} Capturing started [2015/11/10 14:04:23] Send im {2015/11/10 14:04:23} Capturing image {2015/11/10 14:04:28} send smd 0 [2015/11/10 14:04:28] Stop capture requested [2015/11/10 14:04:28] Send ca 0 {2015/11/10 14:04:29} Capturing stopped {2015/11/10 14:04:29} Add /var/www/media/vi_0127_20151110_140421.mp4 to Box Queue at pos 2 {2015/11/10 14:04:29} Start boxing /var/www/media/vi_0127_20151110_140421.mp4.h264 to /var/www/media/vi_0127_20151110_140421.mp4 Queue pos 2 {2015/11/10 14:04:29} DEBUG 3 {2015/11/10 14:04:31} Finished boxing /var/www/media/vi_0127_20151110_140421.mp4 from Box Queue at pos 2 {2015/11/10 14:05:30} send smd 1 [2015/11/10 14:05:30] Start capture requested from Pipe [2015/11/10 14:05:30] Send ca 1 {2015/11/10 14:05:30} Capturing started [2015/11/10 14:05:32] Send im {2015/11/10 14:05:32} Capturing image {2015/11/10 14:05:37} send smd 0 [2015/11/10 14:05:37] Stop capture requested [2015/11/10 14:05:37] Send ca 0 {2015/11/10 14:05:38} Capturing stopped {2015/11/10 14:05:38} Add /var/www/media/vi_0128_20151110_140530.mp4 to Box Queue at pos 3 {2015/11/10 14:05:38} DEBUG 3 {2015/11/10 14:05:38} Start boxing /var/www/media/vi_0128_20151110_140530.mp4.h264 to /var/www/media/vi_0128_20151110_140530.mp4 Queue pos 3 {2015/11/10 14:05:40} Finished boxing /var/www/media/vi_0128_20151110_140530.mp4 from Box Queue at pos 3 {2015/11/10 14:05:51} send smd 1 [2015/11/10 14:05:51] Start capture requested from Pipe [2015/11/10 14:05:51] Send ca 1 {2015/11/10 14:05:51} Capturing started [2015/11/10 14:05:53] Send im {2015/11/10 14:05:53} Capturing image {2015/11/10 14:05:58} send smd 0 [2015/11/10 14:05:58] Stop capture requested [2015/11/10 14:05:58] Send ca 0 {2015/11/10 14:05:58} Capturing stopped {2015/11/10 14:05:58} Add /var/www/media/vi_0129_20151110_140551.mp4 to Box Queue at pos 4 {2015/11/10 14:05:59} DEBUG 3 {2015/11/10 14:05:59} Start boxing /var/www/media/vi_0129_20151110_140551.mp4.h264 to /var/www/media/vi_0129_20151110_140551.mp4 Queue pos 4 {2015/11/10 14:06:01} Finished boxing /var/www/media/vi_0129_20151110_140551.mp4 from Box Queue at pos 4 {2015/11/10 14:06:11} send smd 1 [2015/11/10 14:06:11] Start capture requested from Pipe [2015/11/10 14:06:11] Send ca 1
In the second log everything is going along Ok until 09:50 then it looks like the raspimjpeg restarted (version number logged). I can't see anything leading up to this that would have caused that.
The normal start up default is motion detect off and then it is only set to on either by a schedule command, by pushing the button or some external command. None of the happen until 14:01:33 when I guess some schedule operation was done. It is possible to set the default start up to be motion detect on by changing motion_detection false to motion_detection true in /etc/raspimjpeg or by adding that to uconfig in the www folder.
Hi,
the schedule is:- [image: Inline images 1]
so I'd expect it to be running all the time.
I'll take a look at the /etc/raspimjpeg file and change the default to true
Thanks
Simon
On 10 November 2015 at 17:25, roberttidey notifications@github.com wrote:
In the second log everything is going along Ok until 09:50 then it looks like the raspimjpeg restarted (version number logged). I can't see anything leading up to this that would have caused that.
The normal start up default is motion detect off and then it is only set to on either by a schedule command, by pushing the button or some external command. None of the happen until 14:01:33 when I guess some schedule operation was done. It is possible to set the default start up to be motion detect on by changing motion_detection false to motion_detection true in /etc/raspimjpeg or by adding that to uconfig in the www folder.
— Reply to this email directly or view it on GitHub https://github.com/silvanmelchior/RPi_Cam_Web_Interface/issues/218#issuecomment-155498520 .
@roberttidey Can you please explain what may cause watchdog error? And if there is some workaround/recovery procedure?
The watchdog is a built in second copy of raspimjpeg which is running and monitoring the main operational copy of raspimjpeg. The main raspimjpeg does some checks whilst it is running like making sure that previews are still being generated and kills itself if it detects an error. This could be caused , for example, by a failure in the camera driver connection. The watchdog raspimjpeg sees this and automatically starts up a fresh copy of raspimjpeg which should then operate normally.
Using Jessie, v6.0.12, RaspiMJPEG Version 5.2.11. Internal motion detection stop working after "Watchdog detected problem".
Configurations:
Log: