AlexxIT / hassio-addons

Hass.io addons: go2rtc and SSH Tunnel
https://www.youtube.com/c/AlexxIT
87 stars 19 forks source link

Intermittent fails to play #18

Closed tunerooster closed 2 years ago

tunerooster commented 2 years ago

First, I have been highly impressed and satisfied with this plugin. Before this, all options were totally inadequate. Thank you for this!

I have, however, encountered an intermittent failure where the video fails to play (says: no video). In trying to troubleshoot this I encountered the following:

After killing rtsp2webrtc (it restarts automatically), netstat shows only 4 listeners and lsof shows only 2 open fd's.

I don't have any additional data at present, but I can run any additional diagnostics you would like, when it re-occurs.

Please advise...

P.S. I am running HA 2021.12.8 I couldn't find how to display the rtps2webrtv version, but a ps shows rtsp2webrtc_v5_amd64

tunerooster commented 2 years ago

It has happened again... Almost 500 repeating lines of:

rtsp2webr 22578 root  410u     IPv4 142154278      0t0       UDP *:mdns 
rtsp2webr 22578 root  411u     IPv4 142158064      0t0       UDP *:mdns 
rtsp2webr 22578 root  412u     IPv4 142156263      0t0       UDP *:mdns 
rtsp2webr 22578 root  413u     IPv4 142158911      0t0       UDP *:mdns 
rtsp2webr 22578 root  414u     IPv4 142159415      0t0       UDP *:mdns 
rtsp2webr 22578 root  415u     IPv4 142158525      0t0       UDP *:mdns 
rtsp2webr 22578 root  416u     IPv4 142160927      0t0       UDP *:mdns 
...

Please advise.

AlexxIT commented 2 years ago

This addon is no longer supported. Use the integration: https://github.com/AlexxIT/WebRTC

tunerooster commented 2 years ago

I am using the WebRTC HACS integration. I must just be posting on the wrong github page. I will repost in the correct place.

Thanks for directing me...

AlexxIT commented 2 years ago

No video is a keyframe problem. WebRTC starts the stream after receiving the first keyframe within 10 seconds. Otherwise the connection to the camera is dropped.

tunerooster commented 2 years ago

I'm not familiar technically to understand what you are saying. Are you saying this is not a WebRTC issue?

With no other solution, I would be tempted to write a script to count the occurrences of open fd's from lsof -p and if there are are to many, to kill the webrtc process and let it restart.

Doing this manually seems to work to force start the video in HA panels which are showing "no video", but it seems like a klugy thing to do. I was hoping there would be a fix to correct the underlying problem.

Please advise further...

Thanks!

AlexxIT commented 2 years ago

This is your camera settings issue