go2rtc: Error: RTP header size insufficient for extension

I’m using go2rtc bundled with Frigate. When I bring up Frigate I get the following errors in the go2rtc log:

2023-05-05 13:08:24.622564176  [INFO] Preparing go2rtc config...
2023-05-05 13:08:24.984340158  [INFO] Starting go2rtc...
2023-05-05 13:08:25.066940427  13:08:25.066 INF go2rtc version 1.2.0 linux/amd64
2023-05-05 13:08:25.067284885  13:08:25.067 INF [api] listen addr=:1984
2023-05-05 13:08:25.067754446  13:08:25.067 INF [rtsp] listen addr=:8554
2023-05-05 13:08:25.068289373  13:08:25.068 INF [srtp] listen addr=:8443
2023-05-05 13:08:25.068653837  13:08:25.068 INF [webrtc] listen addr=:8555
2023-05-05 13:08:34.628404338  [INFO] Starting go2rtc healthcheck service...
2023-05-05 13:09:43.125095785  13:09:43.124 WRN github.com/AlexxIT/go2rtc/cmd/streams/producer.go:133 > error="size 61343 < 185640: RTP header size insufficient for extension" url=rtsp://home_assistant:W6!KzBEWiT3rzMg9@10.0.0.111:554/Streaming/Channels/101
2023-05-05 13:10:45.725703414  13:10:45.725 WRN github.com/AlexxIT/go2rtc/cmd/streams/producer.go:133 > error="read tcp 172.24.0.2:42078->10.0.0.108:554: read: connection reset by peer" url=rtsp://home_assistant:W6!KzBEWiT3rzMg9@10.0.0.108:554/Streaming/Channels/101
2023-05-05 13:17:01.432985194  13:17:01.432 WRN github.com/AlexxIT/go2rtc/cmd/streams/producer.go:133 > error="buffer too small" url=rtsp://home_assistant:W6!KzBEWiT3rzMg9@10.0.0.106:554/Streaming/Channels/101

The camera is a HIKVision. I’m running Frigate in Docker on Ubuntu on a Mac Mini (Intel). It’s version 1.2.

I would try a newer version of go2rtc if I knew which one. Would it be go2rtc_linux_amd64? Has the problem already been fixed since 1.2?

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 21 (11 by maintainers)

Most upvoted comments

My other computers run MacOS and I only use go2rtc with Frigate. I’ve backed it out of my Frigate config and all the Frigate errors have gone away. My viewcam app video feeds from the same camera still lock up every few hours so I’m not completely problem free. I’ll try again in some future release of Frigate as I had no pressing need for it. You can close this issue installation specific if you like. Thanks for your help.