WebRTC - not working?

I’m trying SHS on Unraid. Webrtc is failing for me - anyone got any ideas? I had the same issue with SHS on Synology, but this works fine on my Mac.

It looks like it registers fine, but then does work?…

Homey [log][ManagerCloud] Proxy POST /api/manager/videos/video/79aeb04d-8c4d-4f8d-b570-ada424720ba7/offer
Server HTTP POST /manager/videos/video/79aeb04d-8c4d-4f8d-b570-ada424720ba7/offer
Homey [log][ManagerVideosLocal] Converting non-WebRTC stream (type=rtsp) to WebRTC for video 79aeb04d-8c4d-4f8d-b570-ada424720ba7
Homey [log][ManagerVideosLocal] Registering stream video_79aeb04d-8c4d-4f8d-b570-ada424720ba7 with go2rtc for video 79aeb04d-8c4d-4f8d-b570-ada424720ba7
Service:go2rtc Registering stream video_79aeb04d-8c4d-4f8d-b570-ada424720ba7 with sources: rtsp://192.168.1.1:7447/XXXXXXXXXXXXX
Service:go2rtc PUT URL: http://127.0.0.1:1984/api/streams?name=video_79aeb04d-8c4d-4f8d-b570-ada424720ba7&src=rtsp%3A%2F%2F192.168.1.1%3A7447%2FXXXXXXXXXXXXX
Service:go2rtc Successfully registered stream video_79aeb04d-8c4d-4f8d-b570-ada424720ba7
Homey [log][ManagerVideosLocal] WebRTC offer for stream video_79aeb04d-8c4d-4f8d-b570-ada424720ba7
Service:go2rtc WebRTC offer for stream: video_79aeb04d-8c4d-4f8d-b570-ada424720ba7
Service:go2rtc WebRTC offer failed: Not Found: 404 page not found

Server HTTP POST /manager/videos/video/79aeb04d-8c4d-4f8d-b570-ada424720ba7/offer → Error 500: WebRTC offer failed: Not Found: 404 page not found

Is your SHS on the latest version?

Yep. I’ve even tried pulling the beta image.

If I dig into the docker container, go2rtc’s bind is failing (when in host networking mode) claiming the port is already in use. It isn’t - and I can change (using the env vars) the port to other values and I get the same error.

The only process on that port is SHS’s own go2rtc listener.

OK. I tracked it down. It’s a known bug in go2rtc 1.9.13, which is fixed in 1.9.14.

https://github.com/AlexxIT/go2rtc/issues/1892

I downloaded and replaced the binary in the docker image and it works fine - hopefully Athom will fix the upstream image version at some point!

1 Like