AlexxIT / WebRTC

Home Assistant custom component for real-time viewing of almost any camera stream using WebRTC and other technologies.
https://github.com/AlexxIT/Blog
MIT License
1.55k stars 183 forks source link

Issue with unifi protect `producer.go:170 > error=EOF` #718

Closed onedr0p closed 2 months ago

onedr0p commented 5 months ago

Issue

Logs are spammed in go2rtc when viewing the cameras in home assistant using the WebRTC card and NOT when viewing the RTC streams in the go2rtc web app (from what I can tell anyways). Things appear to be working but figured I would raise this issue if there's a way to have these logs moved to debug or the problem fixed

go2rtc Config

---
api:
  listen: :80
rtsp:
  listen: :554
webrtc:
  listen: :8555
  candidates:
    - 192.168.42.124:8555
    - stun:8555
  ice_servers:
    - urls:
       - stun:stun.cloudflare.com:3478
streams:
  driveway:
    - rtspx://192.168.1.1:7441/xxx
  garage:
    - rtspx://192.168.1.1:7441/xxx
  porch:
    - rtspx://192.168.1.1:7441/xxx
  river:
    - rtspx://192.168.1.1:7441/xxx
  study:
    - rtspx://192.168.1.1:7441/xxx
  living_room:
    - rtspx://192.168.1.1:7441/xxx
  basement:
    - rtspx://192.168.1.1:7441/xxx

hass card config example

server: http://go2rtc.default.svc.cluster.local
streams:
  - url: driveway
media: video
mode: webrtc

Logs

21:26:02.632 INF go2rtc platform=linux/amd64 revision=a4885c2 version=1.9.4
21:26:02.632 INF config path=/config/go2rtc.yaml
21:26:02.632 INF [rtsp] listen addr=:554
21:26:02.632 INF [api] listen addr=:80
21:26:02.633 INF [webrtc] listen addr=:8555
21:26:34.205 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:170 > error=EOF url=rtspx://192.168.1.1:7441/xxx
21:26:34.222 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:170 > error=EOF url=rtspx://192.168.1.1:7441/xxx
21:26:34.392 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:170 > error=EOF url=rtspx://192.168.1.1:7441/xxx
21:26:34.550 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:170 > error=EOF url=rtspx://192.168.1.1:7441/xxx
21:26:34.765 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:170 > error=EOF url=rtspx://192.168.1.1:7441/xxx
21:26:35.143 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:170 > error=EOF url=rtspx://192.168.1.1:7441/xxx
21:26:35.193 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:170 > error=EOF url=rtspx://192.168.1.1:7441/xxx
21:26:35.230 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:170 > error=EOF url=rtspx://192.168.1.1:7441/xxx
21:26:35.587 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:170 > error=EOF url=rtspx://192.168.1.1:7441/xxx

Versions

go2rtc version: 1.9.4 UniFi protect version: 4.0.33 Hass version: 2024.6.3 webrtc hass integration version: 3.5.2

onedr0p commented 5 months ago

Feel free to transfer this issue to the go2rtc repo, I wasn't sure which one to create it on :/

AlexxIT commented 2 months ago

At this point, it is unclear why this is happening