-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is no retry mechanism for timeouts #39
Comments
I'm seeing similar behavior. I have a FOSCAM camera that loves to occasionally drop off of wifi then immediately reconnect. I am restarting the go2rtc add-on several times a day in response which... isn't ideal. Great tool though, outside of this one issue I love the add-on! |
Same behavior here as well, however these are wired cameras. Never had an issue before using RTSPtoWeb, but switched to go2rtc and occasionally random cameras will drop requiring a restart of go2rtc |
Really great project here, works great with ring-mqtt project and gives fast camera startup and low latency. I'd like to start recommending this to ring-mqtt users as the preferred setup, but the retry issue is a little bit of a blocker as these cameras timeout a live view after 10 minutes and, after that, the only recourse is to restart go2rtc. Would be really nice if the retry timeout was configurable vs hard coded. Thanks again for all of your hard work on this! |
I proposed a short-term solution at: |
Having same issue, especially on dashboards that load up 6+ cameras at once. Previously fine using other WebRTC solutions but they are too high cpu usage. |
Should be fixed in https://github.com/AlexxIT/go2rtc/releases/tag/v0.1-rc.1 go2rtc will try to instant reconnect to source. And will continue to try each 30 sec. |
I still get timeouts and they don't seem to attempt a reconnection... |
This works perfectly for me now. All streams have been up for several days now where before it would only be a few hours. |
I noticed that this is still an issue on the latest release 0.1-rc.5. Here are some logs that I see after noticing that no streams are available anymore:
|
Don't understand what you mean about "without loading the config yaml file". The restart mechanism works, as shown by your logs. |
The config file Now if an error occurs (like in the logs above) go2rtc restarts but doesn't load this config file. It behaves as if there was no config file, aka no cameras have been defined. So I can't access any stream until I manually restart the container. |
@otherippo you're probably experiencing #116 |
@NickM-27 yes it is exactly the same problem |
There is no retry mechanism for timeouts
I'm through FRP camera port public network, such as RTSP: / / 192.168.4.190:554 / ch01, the port 554 through the public network, and then to public server, link through the server, run for a few hours, if the network fluctuations, or FRP penetration is not stable, lead to broken links, Go2rtc, there is no way to re-link, can only restart GO2RTC
err log
�[36murl=�[0m"ffmpeg:rtsp://127.0.0.1:54189/ch0#channel=1#subtype=0#audio=opus#unicast=true#resolution=1280x720#video=vp9#raw=-vf transpose=2"
�[90m09:25:04.397�[0m �[1m�[31mERR�[0m�[0m [exec] timeout �[36murl=�[0m"exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -rtsp_transport tcp -i rtsp://127.0.0.1:54189/ch0 -vf transpose=2 -codec:a libopus -ar 48000 -ac 2 -rtsp_transport tcp -f rtsp rtsp://localhost:8554/d40d0930ba209bfe3ee7a339de5253e4"
The text was updated successfully, but these errors were encountered: