QuantumEntangledAndy / neolink

An RTSP bridge to Reolink IP cameras
GNU Affero General Public License v3.0
357 stars 49 forks source link

Question: paused RTSP streams and Frigate #317

Open andrebrait opened 5 days ago

andrebrait commented 5 days ago

I've removed the template because this is not a feature nor a bug, but rather a question that hopefully, once answered, might be indexed by Google, as I've tried to find the answer elsewhere but couldn't

I'm well aware that Frigate requires a continuous video stream to work and do its magic, but I've been thinking about the paused RTSP stream feature as well as the possibility to spoof such stream in some way as to allow for using battery cameras with Frigate. I've read elsewhere that it isn't possible, but I decided to ask here to get an official answer.

Reolink's movement detection seems to work great, so I suppose it would still serve the purpose of resuming the real stream to Frigate when it gets triggered?

andrebrait commented 5 days ago

I guess this answers my question, but let me know if you have anything to add: https://github.com/QuantumEntangledAndy/neolink/issues/300#issuecomment-2373168084

QuantumEntangledAndy commented 5 days ago

There is something we could do. You could use gstreamer freezeframe to repeat the last frame. The problem with it and why I haven't implemented it. Is it's computational cost. It will require a full decode and re-encode of the frames.

andrebrait commented 4 days ago

Any chance this could be hardware-accelerated via QuickSync so it can be power efficient? That way it shouldn't be too bad to re-encode, power-wise

QuantumEntangledAndy commented 4 days ago

There are a couple of different options for that. But it's a bit of work on my end to setup, I'd need a reliable way to detect what acceleration was available. Select it and then alter the gstreamer pipeline accordingly.

QuantumEntangledAndy commented 4 days ago

Should also point out that since Google dropped support for the push notification api we were hijacking there's no reliable way to wake up the camera on motion detection