go2rtc icon indicating copy to clipboard operation
go2rtc copied to clipboard

Not able to connect to camera after the frame dropout happened

Open devdems opened this issue 1 year ago • 1 comments

Hi,

so i have an issue where I thought the problem was with Frigate but in fact, we realized the issue is connected to the go2rtc.

I have a camera that occasionally has some dropouts from WiFi. The issue is that Frigate cannot establish a connection to the camera after the dropout happens but the issue is not present anymore. I thought the issue is Frigate but in fact, I'm using go2rtc to provide the streaming from the camera to Frigate.

When I connect directly to the camera rtsp stream it works normally. When I stop and start a docker container where frigate and go2rtc are running, the stream shows again.

I have Frigate version frigate:0.14.1 so I think the go2rtc used in this version of the image is 1.9.2. @hawkeye217 correct me if I'm wrong.

Those are errors that are population my error log:

2024-09-25 08:19:59.575155615  08:19:59.575 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:19:59.575194960  08:19:59.575 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:41732: write: broken pipe"
2024-09-25 08:20:03.164452034  08:20:03.164 WRN [rtsp] error="streams: exec: rtsp://127.0.0.1:8554/street?video: Invalid data found when processing input\n" stream=street_sub
2024-09-25 08:20:03.560229174  08:20:03.560 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:20:04.693262219  08:20:04.693 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:20:04.693298279  08:20:04.693 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:46894: write: broken pipe"
2024-09-25 08:20:08.560858830  08:20:08.560 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:20:09.813825536  08:20:09.813 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:20:09.813829149  08:20:09.813 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:50312: write: broken pipe"
2024-09-25 08:20:13.561264555  08:20:13.561 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:20:14.933178361  08:20:14.933 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:20:14.933182680  08:20:14.933 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:46940: write: broken pipe"
2024-09-25 08:20:18.206135438  08:20:18.206 WRN [rtsp] error="streams: exec: rtsp://127.0.0.1:8554/street?video: Invalid data found when processing input\n" stream=street_sub
2024-09-25 08:20:18.561964739  08:20:18.561 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:20:20.051479254  08:20:20.051 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:20:20.051516446  08:20:20.051 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:53728: write: broken pipe"
2024-09-25 08:20:23.562167614  08:20:23.562 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:20:25.171193264  08:20:25.171 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:20:25.171246765  08:20:25.171 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:50320: write: broken pipe"
2024-09-25 08:20:28.562970076  08:20:28.562 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:20:30.289986817  08:20:30.289 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:20:30.290031135  08:20:30.289 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:50328: write: broken pipe"
2024-09-25 08:20:33.249073539  08:20:33.248 WRN [rtsp] error="streams: exec: rtsp://127.0.0.1:8554/street?video: Invalid data found when processing input\n" stream=street_sub
2024-09-25 08:20:33.563495764  08:20:33.563 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:20:35.409051418  08:20:35.408 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:20:35.409143203  08:20:35.409 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:50342: write: broken pipe"
2024-09-25 08:20:38.563693944  08:20:38.563 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:20:40.526848911  08:20:40.526 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:20:40.526893621  08:20:40.526 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:55414: write: broken pipe"
2024-09-25 08:20:43.564639685  08:20:43.564 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:20:45.647380148  08:20:45.647 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:20:45.647422328  08:20:45.647 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:46944: write: broken pipe"
2024-09-25 08:20:48.290536742  08:20:48.290 WRN [rtsp] error="streams: exec: rtsp://127.0.0.1:8554/street?video: Invalid data found when processing input\n" stream=street_sub
2024-09-25 08:20:48.564863633  08:20:48.564 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:20:50.768588374  08:20:50.768 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:20:50.768591878  08:20:50.768 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:55404: write: broken pipe"
2024-09-25 08:20:53.565025591  08:20:53.564 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:20:55.888870814  08:20:55.888 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:20:55.888919149  08:20:55.888 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:54870: write: broken pipe"
2024-09-25 08:20:58.565416470  08:20:58.565 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:21:01.008831883  08:21:01.008 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:21:01.008910689  08:21:01.008 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:55418: write: broken pipe"
2024-09-25 08:21:03.333333317  08:21:03.333 WRN [rtsp] error="streams: exec: rtsp://127.0.0.1:8554/street?video: Invalid data found when processing input\n" stream=street_sub
2024-09-25 08:21:03.566521966  08:21:03.566 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:21:06.127951575  08:21:06.127 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:21:06.127991285  08:21:06.127 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:55434: write: broken pipe"
2024-09-25 08:21:08.567051667  08:21:08.566 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:21:11.247103733  08:21:11.247 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:21:11.247143901  08:21:11.247 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:54896: write: broken pipe"
2024-09-25 08:21:13.567290578  08:21:13.567 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:21:16.365975649  08:21:16.365 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:21:16.366017605  08:21:16.365 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:54880: write: broken pipe"
2024-09-25 08:21:18.376226967  08:21:18.376 WRN [rtsp] error="streams: exec: rtsp://127.0.0.1:8554/street?video: Invalid data found when processing input\n" stream=street_sub
2024-09-25 08:21:18.567553414  08:21:18.567 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:21:21.486148061  08:21:21.486 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:21:21.486229660  08:21:21.486 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:54892: write: broken pipe"
2024-09-25 08:21:23.568248907  08:21:23.568 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:21:26.605105666  08:21:26.605 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:21:26.605153263  08:21:26.605 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:41994: write: broken pipe"
2024-09-25 08:21:28.568737642  08:21:28.568 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:21:31.724924317  08:21:31.724 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:21:31.724938689  08:21:31.724 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:55400: write: broken pipe"
2024-09-25 08:21:33.420102515  08:21:33.420 WRN [rtsp] error="streams: exec: rtsp://127.0.0.1:8554/street?video: Invalid data found when processing input\n" stream=street_sub
2024-09-25 08:21:33.569117945  08:21:33.568 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:21:36.844216063  08:21:36.844 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:21:36.844261502  08:21:36.844 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:41998: write: broken pipe"
2024-09-25 08:21:38.569343363  08:21:38.569 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:21:41.963775560  08:21:41.963 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:21:41.963814270  08:21:41.963 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:55376: write: broken pipe"
2024-09-25 08:21:43.570156002  08:21:43.570 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:21:47.082546657  08:21:47.082 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:21:47.082720481  08:21:47.082 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:55384: write: broken pipe"
2024-09-25 08:21:48.467400267  08:21:48.467 WRN [rtsp] error="streams: exec: rtsp://127.0.0.1:8554/street?video: Invalid data found when processing input\n" stream=street_sub
2024-09-25 08:21:48.570222755  08:21:48.570 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:21:52.204120996  08:21:52.204 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:21:52.204176939  08:21:52.204 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:41538: write: broken pipe"
2024-09-25 08:21:53.570422340  08:21:53.570 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:21:57.323093629  08:21:57.323 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:21:57.323143236  08:21:57.323 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:55408: write: broken pipe"
2024-09-25 08:21:58.570551968  08:21:58.570 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:22:02.442272292  08:22:02.442 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:22:02.442325519  08:22:02.442 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:41570: write: broken pipe"
2024-09-25 08:22:03.514372545  08:22:03.514 WRN [rtsp] error="streams: exec: rtsp://127.0.0.1:8554/street?video: Invalid data found when processing input\n" stream=street_sub
2024-09-25 08:22:03.571119934  08:22:03.571 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:22:07.561319504  08:22:07.561 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:22:07.561369512  08:22:07.561 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:39670: write: broken pipe"
2024-09-25 08:22:08.571493213  08:22:08.571 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:22:12.680248894  08:22:12.680 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:22:12.680292647  08:22:12.680 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:41558: write: broken pipe"
2024-09-25 08:22:13.571793070  08:22:13.571 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:22:17.799316899  08:22:17.799 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:22:17.799367637  08:22:17.799 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:41548: write: broken pipe"
2024-09-25 08:22:18.556271131  08:22:18.556 WRN [rtsp] error="streams: exec: rtsp://127.0.0.1:8554/street?video: Invalid data found when processing input\n" stream=street_sub
2024-09-25 08:22:18.572166891  08:22:18.572 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"
2024-09-25 08:22:22.918522454  08:22:22.918 WRN [rtsp] error="streams: write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout, exec: rtsp://127.0.0.1:8554/street?video&audio: Invalid data found when processing input\n" stream=street
2024-09-25 08:22:22.918527924  08:22:22.918 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:38830: write: broken pipe"
2024-09-25 08:22:23.572994713  08:22:23.572 INF [streams] can't get track error="write tcp 172.17.0.3:46938->xx.xx.xx.70:554: i/o timeout"

Here is also the link to the ticket I initially created in Frigate git. https://github.com/blakeblackshear/frigate/discussions/13823#

devdems avatar Sep 25 '24 06:09 devdems

Try to use ffmpeg source. So it will handle connection issue.

AlexxIT avatar Oct 06 '24 09:10 AlexxIT