motioneye-project / motioneye

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

RTSP stream losing connection to the camera in a loop #901

Open ketansingh opened 6 years ago

ketansingh commented 6 years ago

Hi,

I am using ccrisan/motioneye:dev-armhf docker image on a Raspberry Pi. From what I understand it comes with its own motion binary. I added my Wyze camera to it using an rtsp stream with the web interface. I enabled debug logs and saw a lot of the following line being repeated:

netcam_handler_loop: Bad image. Reconnecting with camera....

I wanted to store the motion detected video recordings on an external usb drive. I mounted my usb drive at /mnt/usb and passed it to the motioneye container using my docker-compose.yaml. I set the appropriate mapped path as my Custom Path location via the web UI. I saw the folder being created on disk but videos were not being recorded and saved to the folder. I am sure that motion detection was being triggered because I saw something like this:

motion_detected: Motion detected - starting event 1

Then it lost connection to the camera. I also tried storing the videos locally on the Raspberry Pi but it did not help. I tried rebooting the camera as well as Raspberry Pi to no avail.

Do you guys have any suggestions as to what the problem might be? I would be happy to provide more more information if necessary. I really appreciate your help and thankful for your time.

Thanks!

rainman-ph commented 6 years ago

Can you enable and post the log?