keshavdv / unifi-cam-proxy

Enable non-Ubiquiti cameras to work with Unifi NVR
MIT License
1.6k stars 226 forks source link

Timelapse scrubbing doesn't work for proxied cameras? #217

Closed andrewbutts closed 2 years ago

andrewbutts commented 2 years ago

Describe the bug I have several unifi cams and one Doorbird Doorstation cam that I'm trying to get working through the Unifi Protect app, since it's miles better than the Doorbird native app. Setting up unifi-cam-proxy went great using rtsp-simple-server to circumvent the 2 connection limit on the Doorbird. But now that the live view is visible in the Unifi Protect app, I'm surprised to see that when I scrub the timeline, the view goes dark until I let go, rather than scrubbing instant timelapse style like the Unifi cameras do.

Does this indicate I've misconfigured the proxy or my Unifi NVR somehow, or is this expected behavior?

Thanks for your great work on this extremely useful project!

keshavdv commented 2 years ago

From what I've seen, Protect uses the screenshot stream to generate these thumbnails. When you open Protect, do you see a valid thumbnail before you open up the live stream? Also, just to double check, please make sure you're on 1.21.3 or lower since there are some issues in the later releases I'm still working around.

andrewbutts commented 2 years ago

Thanks for your fast response! While I did have a valid thumbnail stream, what I didn't realize is that while I was messing around during setup, I had let Protect adopt the unifi-cam-proxy cam while it was in a modified state (missing all the streams but video1). I didn't realize this set of streams would stick after adoption even as I reverted unifi-cam-proxy to an unaltered state (restoring all the streams including the thumbnail stream). That left me in the badly behaving state I described in my original report. Unmanaging then re-adopting the unifi-cam-proxy fixed my thumbnails issue. Thank you again!!