Closed kev24uk closed 2 months ago
Did a bit of digging - it looks like the ExtendRtspStream functionality returns a new access token, which in turn invalidates the old rtsp url and requires a new one (with the new access token query parameter ?auth=g.0.
in it)
This means that the extend functionality actually needs to start a new ffmpeg process with the new url, rather than expecting it to continue working as the code does now.
Would be nice if Google documented this better (or actually implemented it so the existing access token continued to work rather than requiring a new one...)
Which version are you using?
v1.0.1
Which operating system are you using?
Describe the issue
Camera stops streaming after a short period, appears to be due to the url coming from google being incorrect. To note: this did not happen in nest-rtsp, in case that helps to diagnose a difference here!
Describe how to replicate the issue
Add a nest wired doorbell camera, start the container and after a random amount of time (usually a few minutes) the stream fails and does not work until the docker container is restarted (sometimes disabling and enabling the camera works but this is not consistent)
Did you attach the server logs?
Did you attach a network dump?
no