I’m running into some issues and hopefully someone is able to help.
I’m running version 1.1.1 of Go2RTC in a docker container. I’m running HA 2023.2.2, have RTSPtoWebRTC installed and connected to the docker instance. Got my Ring camera’s and Imou camera working just fine.
I now have bought a Reolink 811a to replace one of my Ring cameras, but for some reason I can’t get the main stream to work inside of HA.
I have tried a bunch of scenario’s and hopefully you guys can help figuring out what’s wrong.
I added the RTSP stream to the config file of Go2RTC:
fietsen_reolink264: rtsp://user:[email protected]:554/h264Preview_01_main
fietsen_reolink265: rtsp://user:[email protected]:554/h265Preview_01_main
Both run fine through the web gui of Go2RTC. I can start both and have both image and sound.
I added both to HA. But can’t start the streams. Both have different errors:
H264:
11:17:52.132 DBG [rtsp] disconnect stream=fietsen_reolink264
11:17:52.188 DBG [rtsp] new consumer stream=fietsen_reolink264
11:17:52.188 DBG [streams] probe producer url=rtsp://user:[email protected]:554/h264Preview_01_main
11:17:52.244 DBG [streams] start producer url=rtsp://user:[email protected]:554/h264Preview_01_main
11:18:13.981 DBG [rtsp] new consumer stream=fietsen_reolink264
11:18:14.158 WRN github.com/AlexxIT/go2rtc/cmd/webrtc/webrtc.go:198 > stream.AddConsumer error="codecs not match: H265,AAC"
11:18:14.159 ERR [api.hass] exchange SDP error="codecs not match: H265,AAC"
H265:
11:13:45.130 DBG [rtsp] new consumer stream=fietsen_reolink265
11:13:47.259 DBG [rtsp] handle=read tcp 192.168.20.79:8554->192.168.21.92:42484: read: connection reset by peer
11:13:47.260 DBG [rtsp] disconnect stream=fietsen_reolink265
11:13:47.315 DBG [rtsp] new consumer stream=fietsen_reolink265
11:14:00.808 DBG [rtsp] new consumer stream=fietsen_reolink265
11:14:00.972 DBG [streams] probe producer url=rtsp://user:[email protected]:554/h264Preview_01_main
11:14:01.014 DBG [streams] stop producer url=rtsp://user:[email protected]:554/h264Preview_01_main
11:14:01.015 WRN github.com/AlexxIT/go2rtc/cmd/webrtc/webrtc.go:198 > stream.AddConsumer error="codecs not match: H265,AAC"
11:14:01.015 ERR [api.hass] exchange SDP error="codecs not match: H265,AAC"
Another approach is through the official Reolink addin. Which is configured to use the RTSP stream within the configuration of the integration. I can start the sub stream without issues, the main stream results in a error message:
Failed to start WebRTC stream: Timeout handling WebRTC offer
No errros in the Go2RTC logs neither in the HA logs apart from:
Error from stream worker: Stream has no video
Which doesn’t say much.
Now my best bet would be it has something to do with the audio codecs since in most cases it references to AAC.
I can’t find any method to change the source audio protocol. But I don’t even know if this is the right path.
When removing the RTSPtothewebRTC component and only run plain HA and thus won’t use WebRTC, the main stream results in an error too as can be seen on Reolink RLC-811a video feed timeout - thumbnail works?, there have been a number of reports like this, but none are conclusive.
edit:
The sub stream works, it’s just the main stream which doesn’t. I’m wondering what this can be.