motioneye-project / motioneye

A web frontend for the motion daemon.
GNU General Public License v3.0
3.95k stars 650 forks source link

Save image on motion detetection #2567

Open meoluc opened 2 years ago

meoluc commented 2 years ago

Sometimes not save the image saved on motion detection. I save images on internal SSD. I send message in telegram group, the message arrive when motion detetection Is activated, but don't send the ultimate image....

zagrim commented 2 years ago

So you get the notification with no image attached? At least with email notifications that is a known issue when some conditions are met: 1) If there are a lot of media files, the scan of the files could take too long. In this case there should be a clear indication in the log (at least for email: "ERROR: timeout waiting for the media listing process to finish"), but if you are using SSD for storage that might not be the case (unless there's a ton of media files).

2) I'm not 100% sure of this, but based on my own experience I suspect that at least if the Maximum Movie Length if long enough, the still image might not yet be saved when the notification is being sent.

Please see here for more detailed discussion (especially on 2): https://github.com/motioneye-project/motioneye/issues/1956#issuecomment-734061791

If you are not able to sort it out, please do attach log file on a timespan when motion is being detected and notification being sent.