deepch / RTSPtoWeb

RTSP Stream to WebBrowser
MIT License
1.32k stars 312 forks source link

WebRTC Video freezing after few seconds #246

Closed thommycgn closed 2 years ago

thommycgn commented 2 years ago

I'm using RTSPtoWEB with Home Assistant 2022.11.1 to get the stream of my Reo Cam. The WebRTC Video is freezing all the time after a few seconds. Even if I play the stream directly over the RTSPtoWEB Panel (http://homeassistant.local:8083/pages/player/webrtc/camera.hauseingang/0). HSL going well without issues.

In debug mode I get this in the logfile after video freeze.

time="2022-11-07T20:02:21+01:00" level=error msg="stream no video" call=ErrorStreamNoVideo channel=0 func=HTTPAPIServerStreamWebRTC module=http_webrtc stream=camera.hauseingang

Here the full log:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/01-rtsp-to-web
[20:01:16] INFO: Updating configuration
cont-init: info: /etc/cont-init.d/01-rtsp-to-web exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun rtsp-to-web (no readiness notification)
s6-rc: info: service legacy-services successfully started
[20:01:17] INFO: Starting discovery service
[20:01:17] INFO: Starting RSTPtoWeb
time="2022-11-07T20:01:17+01:00" level=info msg="Server CORE start" func=main module=main
time="2022-11-07T20:01:17+01:00" level=info msg="Server RTSP start" call=Start func=RTSPServer module=rtsp_server
time="2022-11-07T20:01:17+01:00" level=info msg="Server start success a wait signals" func=main module=main
time="2022-11-07T20:01:17+01:00" level=info msg="Server HTTP start" call=Start func=RTSPServer module=http_server
time="2022-11-07T20:01:17+01:00" level=info msg="Run stream" call=Run channel=0 func=StreamServerRunStreamDo module=core stream=camera.hauseingang
time="2022-11-07T20:01:17+01:00" level=info msg="Success connection RTSP" call=Start channel=0 func=StreamServerRunStream module=core stream=camera.hauseingang
[20:01:18] INFO: Successfully send discovery information to Home Assistant (8083).
time="2022-11-07T20:01:31+01:00" level=error msg="stream no video" call=ErrorStreamNoVideo channel=0 func=HTTPAPIServerStreamWebRTC module=http_webrtc stream=camera.hauseingang
time="2022-11-07T20:02:21+01:00" level=error msg="stream no video" call=ErrorStreamNoVideo channel=0 func=HTTPAPIServerStreamWebRTC module=http_webrtc stream=camera.hauseingang
thommycgn commented 2 years ago

After a Firmware update of the camera and changing the wlan from 5G to 2.4G it's working fine now.