roleoroleo / yi-hack-Allwinner-v2

Custom firmware for Yi 1080p camera based on Allwinner platform
MIT License
752 stars 90 forks source link

Video/Stream stops for a few seconds after motion detection #878

Open DivineJimmi opened 1 month ago

DivineJimmi commented 1 month ago

Hi, i am using a Yi Dome U (2K).

Whenever motion is detected, the camera stops for a few seconds and is not updating its stream. After the motion detection, it sends an MP4 file to my FTP (Shinobi in my case) and the recorded video does pause too for a few seconds after motion is detected.

This happens: Camera streams fine I walk into the camera, triggering the motion detection The camera streams for about 3 seconds fine then the camera view stops for about 5 seconds Then, when the view is streaming again i walk off the camera A few seconds later the motion-detection-file gets uploaded

The uploaded file shows the same 5-second stop as the preview. I think that the camera has some internal struggle to stream/record at the same time, right after it detected motion. Maybe not enough processing power?

What am i doing wrong? I am already streaming in low-res RTSP. Is there any setting i can tune, to eliminate this behavior? It would be very nice to have a non-stopping video on my FTP-server, in case something bad happens in my home, i dont want my camera to stop for some seconds.

roleoroleo commented 1 month ago

I think this problem depends on the cpu/memory usage. When a motion is detected, the cam tries to take a high resolution snapshot and uses a lot of resourses. Try to:

DivineJimmi commented 1 month ago

Thank you. Disabling the snapshot function solved my problem. I dont need this function anyway.