AlexxIT / go2rtc

Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc.
https://github.com/AlexxIT/Blog
MIT License
3.78k stars 307 forks source link

go2rtc 1.7.0 broke HTTP-FLV from Reolink cameras #916

Open gregtakacs opened 5 months ago

gregtakacs commented 5 months ago

I updated to the latest Frigate today which comes bundled with go2rtc 1.8.4 and my logs became atrocious dropping frames. I sideloaded 1.6.2 and things went back to working "fine" (I still miss recordings on occasion but nothing like the errors I got with 1.8.4).

I sideloaded 1.7.0 and the errors match that of 1.8.4 and 1.8.5 so whatever 1.7.0 introduced persists in all future versions.

2024-01-31 19:11:10.070662199  [INFO] Preparing new go2rtc config...
2024-01-31 19:11:10.250144512  [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2024-01-31 19:11:10.271361672  [INFO] Starting go2rtc...
2024-01-31 19:11:10.345045465  19:11:10.344 INF go2rtc version 1.8.4 linux/amd64
2024-01-31 19:11:10.345167439  19:11:10.345 TRC [api] register path path=/
2024-01-31 19:11:10.345173756  19:11:10.345 TRC [api] register path path=/api
2024-01-31 19:11:10.345178331  19:11:10.345 TRC [api] register path path=/api/config
2024-01-31 19:11:10.345182236  19:11:10.345 TRC [api] register path path=/api/exit
2024-01-31 19:11:10.345186124  19:11:10.345 TRC [api] register path path=/api/restart
2024-01-31 19:11:10.345309763  19:11:10.345 TRC [api] register path path=/api/ws
2024-01-31 19:11:10.345442687  19:11:10.345 TRC [api] register path path=/api/streams
2024-01-31 19:11:10.345595074  19:11:10.345 INF [rtsp] listen addr=:8554
2024-01-31 19:11:10.345620238  19:11:10.345 INF [api] listen addr=:1984
2024-01-31 19:11:10.346545502  19:11:10.346 INF [webrtc] listen addr=:8555
2024-01-31 19:11:10.346554142  19:11:10.346 TRC [api] register path path=/api/webrtc
2024-01-31 19:11:10.346558367  19:11:10.346 TRC [api] register path path=/api/frame.mp4
2024-01-31 19:11:10.346568200  19:11:10.346 TRC [api] register path path=/api/stream.mp4
2024-01-31 19:11:10.346571832  19:11:10.346 TRC [api] register path path=/api/stream.m3u8
2024-01-31 19:11:10.346575356  19:11:10.346 TRC [api] register path path=/api/hls/playlist.m3u8
2024-01-31 19:11:10.346582556  19:11:10.346 TRC [api] register path path=/api/hls/segment.ts
2024-01-31 19:11:10.346589330  19:11:10.346 TRC [api] register path path=/api/hls/init.mp4
2024-01-31 19:11:10.346599235  19:11:10.346 TRC [api] register path path=/api/hls/segment.m4s
2024-01-31 19:11:10.346602934  19:11:10.346 TRC [api] register path path=/api/frame.jpeg
2024-01-31 19:11:10.346621566  19:11:10.346 TRC [api] register path path=/api/stream.mjpeg
2024-01-31 19:11:10.346747831  19:11:10.346 TRC [api] register path path=/static
2024-01-31 19:11:10.346752423  19:11:10.346 TRC [api] register path path=/streams
2024-01-31 19:11:10.346756059  19:11:10.346 TRC [api] register path path=/stream/
2024-01-31 19:11:10.346770339  19:11:10.346 TRC [api] register path path=/api/hass
2024-01-31 19:11:10.346771417  19:11:10.346 TRC [api] register path path=/onvif/
2024-01-31 19:11:10.346778549  19:11:10.346 TRC [api] register path path=/api/onvif
2024-01-31 19:11:10.346888144  19:11:10.346 TRC [api] register path path=/api/webtorrent
2024-01-31 19:11:10.346989352  19:11:10.346 TRC [api] register path path=/api/stream.flv
2024-01-31 19:11:10.347100255  19:11:10.347 TRC [api] register path path=/api/ffmpeg/devices
2024-01-31 19:11:10.347105122  19:11:10.347 TRC [api] register path path=/api/ffmpeg/hardware
2024-01-31 19:11:10.347109000  19:11:10.347 TRC [api] register path path=/api/stream
2024-01-31 19:11:10.347114288  19:11:10.347 TRC [api] register path path=/api/dvrip
2024-01-31 19:11:10.347118275  19:11:10.347 TRC [api] register path path=/api/stream.ts
2024-01-31 19:11:10.347122822  19:11:10.347 TRC [api] register path path=/api/stream.aac
2024-01-31 19:11:10.347130480  19:11:10.347 TRC [api] register path path=/api/roborock
2024-01-31 19:11:10.347230514  19:11:10.347 TRC [api] register path path=/api/homekit
2024-01-31 19:11:10.347234905  19:11:10.347 TRC [api] register path path=/api/nest
2024-01-31 19:11:10.347247108  19:11:10.347 TRC [api] register path path=/api/gopro
2024-01-31 19:11:10.347454119  19:11:10.347 TRC [api] register path path=/api/stack
2024-01-31 19:11:10.975251751  19:11:10.975 DBG [rtsp] new consumer stream=doorbell_sub
2024-01-31 19:11:10.981732322  19:11:10.981 DBG [rtsp] new consumer stream=doorbell
2024-01-31 19:11:10.981840864  19:11:10.981 DBG [rtsp] new consumer stream=family_room_sub
2024-01-31 19:11:10.981845438  19:11:10.981 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.2.150/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=frigate&password=zdgYjK0i6eRuRfx8bDER -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2024-01-31 19:11:10.986064382  19:11:10.985 DBG [rtsp] new consumer stream=entryway_sub
2024-01-31 19:11:10.990348755  19:11:10.990 DBG [rtsp] new consumer stream=family_room
2024-01-31 19:11:10.990513257  19:11:10.990 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.2.150/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=frigate&password=zdgYjK0i6eRuRfx8bDER -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -application:a:1 lowdelay -frame_duration 20 -min_comp 0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2024-01-31 19:11:10.994742658  19:11:10.994 DBG [rtsp] new consumer stream=patio_sub
2024-01-31 19:11:10.999508696  19:11:10.999 DBG [rtsp] new consumer stream=entryway
2024-01-31 19:11:11.000629078  19:11:11.000 DBG [rtsp] new consumer stream=front_garage_sub
2024-01-31 19:11:11.003490499  19:11:11.003 DBG [rtsp] new consumer stream=patio
2024-01-31 19:11:11.006645593  19:11:11.006 DBG [rtsp] new consumer stream=rear_garage_sub
2024-01-31 19:11:11.006980144  19:11:11.006 DBG [rtsp] new consumer stream=front_garage
2024-01-31 19:11:11.013990577  19:11:11.013 DBG [rtsp] new consumer stream=rear_garage
2024-01-31 19:11:11.015502908  19:11:11.015 DBG [rtsp] new consumer stream=driveway_sub
2024-01-31 19:11:11.017751380  19:11:11.017 DBG [rtsp] new consumer stream=game_room_sub
2024-01-31 19:11:11.022254518  19:11:11.022 DBG [rtsp] new consumer stream=front_yard_right_sub
2024-01-31 19:11:11.025384847  19:11:11.025 DBG [rtsp] new consumer stream=game_room
2024-01-31 19:11:11.027929537  19:11:11.027 DBG [rtsp] new consumer stream=front_yard_left_sub
2024-01-31 19:11:11.028173375  19:11:11.028 DBG [rtsp] new consumer stream=driveway
2024-01-31 19:11:11.029327068  19:11:11.029 DBG [rtsp] new consumer stream=front_yard_right
2024-01-31 19:11:11.037779741  19:11:11.037 DBG [rtsp] new consumer stream=front_yard_left
2024-01-31 19:11:14.230215523  19:11:14.230 DBG [exec] run launch=3.248285026s
2024-01-31 19:11:14.685335437  19:11:14.685 DBG [exec] run launch=3.694787501s
2024-01-31 19:11:14.761959251  19:11:14.761 TRC [api] GET /api 127.0.0.1:49822
2024-01-31 19:11:20.068656246  [INFO] Starting go2rtc healthcheck service...
2024-01-31 19:11:50.079244520  19:11:50.079 TRC [api] GET /api/streams 127.0.0.1:47944
2024-01-31 19:12:20.092857505  19:12:20.092 TRC [api] GET /api/streams 127.0.0.1:35590
2024-01-31 19:12:21.013457229  19:12:21.013 DBG [rtsp] handle=EOF
2024-01-31 19:12:21.013762218  19:12:21.013 DBG [rtsp] disconnect stream=doorbell_sub
2024-01-31 19:12:21.027855373  19:12:21.027 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:39418: read: connection reset by peer
2024-01-31 19:12:21.027875563  19:12:21.027 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:39400: read: connection reset by peer
2024-01-31 19:12:21.027955994  19:12:21.027 DBG [rtsp] disconnect stream=front_garage_sub
2024-01-31 19:12:21.027987651  19:12:21.027 DBG [rtsp] disconnect stream=entryway_sub
2024-01-31 19:12:21.075401639  19:12:21.075 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:39480: read: connection reset by peer
2024-01-31 19:12:21.075554688  19:12:21.075 DBG [rtsp] disconnect stream=front_yard_right_sub
2024-01-31 19:12:21.086611579  19:12:21.086 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:39470: read: connection reset by peer
2024-01-31 19:12:21.086694224  19:12:21.086 DBG [rtsp] disconnect stream=game_room_sub
2024-01-31 19:12:21.109691352  19:12:21.109 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:39454: read: connection reset by peer
2024-01-31 19:12:21.109846637  19:12:21.109 DBG [rtsp] disconnect stream=driveway_sub
2024-01-31 19:12:21.114359287  19:12:21.114 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:39426: read: connection reset by peer
2024-01-31 19:12:21.114416266  19:12:21.114 DBG [rtsp] disconnect stream=rear_garage_sub
2024-01-31 19:12:21.179021218  19:12:21.178 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:39406: read: connection reset by peer
2024-01-31 19:12:21.179200266  19:12:21.179 DBG [rtsp] disconnect stream=patio_sub
2024-01-31 19:12:21.209494358  19:12:21.209 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:39494: read: connection reset by peer
2024-01-31 19:12:21.209673052  19:12:21.209 DBG [rtsp] disconnect stream=front_yard_left_sub
2024-01-31 19:12:31.037734121  19:12:31.037 DBG [rtsp] new consumer stream=doorbell_sub
2024-01-31 19:12:31.049511303  19:12:31.049 DBG [rtsp] new consumer stream=entryway_sub
2024-01-31 19:12:31.050886120  19:12:31.050 DBG [rtsp] new consumer stream=front_garage_sub
2024-01-31 19:12:31.098974319  19:12:31.098 DBG [rtsp] new consumer stream=front_yard_right_sub
2024-01-31 19:12:31.107606185  19:12:31.107 DBG [rtsp] new consumer stream=game_room_sub
2024-01-31 19:12:31.131797182  19:12:31.131 DBG [rtsp] new consumer stream=driveway_sub
2024-01-31 19:12:31.137383917  19:12:31.137 DBG [rtsp] new consumer stream=rear_garage_sub
2024-01-31 19:12:31.203938910  19:12:31.203 DBG [rtsp] new consumer stream=patio_sub
2024-01-31 19:12:31.234704548  19:12:31.234 DBG [rtsp] new consumer stream=front_yard_left_sub
2024-01-31 19:12:50.107960423  19:12:50.107 TRC [api] GET /api/streams 127.0.0.1:59032
2024-01-31 19:13:20.121182388  19:13:20.121 TRC [api] GET /api/streams 127.0.0.1:50966
2024-01-31 19:13:41.044156650  19:13:41.044 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:54470: read: connection reset by peer
2024-01-31 19:13:41.044324135  19:13:41.044 DBG [rtsp] disconnect stream=doorbell_sub
2024-01-31 19:13:41.090190231  19:13:41.090 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:54472: read: connection reset by peer
2024-01-31 19:13:41.090269031  19:13:41.090 DBG [rtsp] disconnect stream=entryway_sub
2024-01-31 19:13:41.098735624  19:13:41.098 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:54484: read: connection reset by peer
2024-01-31 19:13:41.098834456  19:13:41.098 DBG [rtsp] disconnect stream=front_garage_sub
2024-01-31 19:13:41.135802475  19:13:41.135 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:54506: read: connection reset by peer
2024-01-31 19:13:41.135911292  19:13:41.135 DBG [rtsp] disconnect stream=game_room_sub
2024-01-31 19:13:41.156891288  19:13:41.156 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:54536: read: connection reset by peer
2024-01-31 19:13:41.157021805  19:13:41.156 DBG [rtsp] disconnect stream=rear_garage_sub
2024-01-31 19:13:41.161041362  19:13:41.160 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:54494: read: connection reset by peer
2024-01-31 19:13:41.161139410  19:13:41.161 DBG [rtsp] disconnect stream=front_yard_right_sub
2024-01-31 19:13:41.234998980  19:13:41.234 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:54538: read: connection reset by peer
2024-01-31 19:13:41.235179426  19:13:41.235 DBG [rtsp] disconnect stream=patio_sub
2024-01-31 19:13:50.134454767  19:13:50.134 TRC [api] GET /api/streams 127.0.0.1:43674
2024-01-31 19:13:51.066904758  19:13:51.066 DBG [rtsp] new consumer stream=doorbell_sub
2024-01-31 19:13:51.115573660  19:13:51.115 DBG [rtsp] new consumer stream=entryway_sub
2024-01-31 19:13:51.121402388  19:13:51.121 DBG [rtsp] new consumer stream=front_garage_sub
2024-01-31 19:13:51.165653353  19:13:51.165 DBG [rtsp] new consumer stream=game_room_sub
2024-01-31 19:13:51.179226935  19:13:51.179 DBG [rtsp] new consumer stream=rear_garage_sub
2024-01-31 19:13:51.180357451  19:13:51.180 DBG [rtsp] new consumer stream=front_yard_right_sub
2024-01-31 19:13:51.261737999  19:13:51.261 DBG [rtsp] new consumer stream=patio_sub
2024-01-31 19:13:51.283282342  19:13:51.283 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:54522: read: connection reset by peer
2024-01-31 19:13:51.283414399  19:13:51.283 DBG [rtsp] disconnect stream=driveway_sub
2024-01-31 19:13:51.410109533  19:13:51.409 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:54552: read: connection reset by peer
2024-01-31 19:13:51.410246693  19:13:51.410 DBG [rtsp] disconnect stream=front_yard_left_sub
2024-01-31 19:14:01.087795566  19:14:01.087 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:39394: read: connection reset by peer
2024-01-31 19:14:01.087948853  19:14:01.087 DBG [rtsp] disconnect stream=doorbell
2024-01-31 19:14:01.115604277  19:14:01.115 DBG [rtsp] new consumer stream=doorbell
2024-01-31 19:14:01.127964469  19:14:01.127 DBG [rtsp] handle=EOF
2024-01-31 19:14:01.128144358  19:14:01.128 DBG [rtsp] disconnect stream=entryway
2024-01-31 19:14:01.163432096  19:14:01.163 DBG [rtsp] new consumer stream=entryway
2024-01-31 19:14:01.188040574  19:14:01.187 DBG [rtsp] handle=EOF
2024-01-31 19:14:01.188112436  19:14:01.188 DBG [rtsp] disconnect stream=front_garage
2024-01-31 19:14:01.192731885  19:14:01.192 DBG [rtsp] handle=EOF
2024-01-31 19:14:01.192911767  19:14:01.192 DBG [rtsp] disconnect stream=game_room
2024-01-31 19:14:01.200930417  19:14:01.200 DBG [rtsp] handle=EOF
2024-01-31 19:14:01.201092431  19:14:01.201 DBG [rtsp] disconnect stream=rear_garage
2024-01-31 19:14:01.210827912  19:14:01.210 DBG [rtsp] handle=EOF
2024-01-31 19:14:01.210883338  19:14:01.210 DBG [rtsp] disconnect stream=front_yard_right
2024-01-31 19:14:01.212949495  19:14:01.212 DBG [rtsp] new consumer stream=game_room
2024-01-31 19:14:01.226787124  19:14:01.226 DBG [rtsp] new consumer stream=rear_garage
2024-01-31 19:14:01.254516630  19:14:01.254 DBG [rtsp] new consumer stream=front_garage
2024-01-31 19:14:01.263634710  19:14:01.263 DBG [rtsp] new consumer stream=front_yard_right
2024-01-31 19:14:01.308215867  19:14:01.308 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:39420: read: connection reset by peer
2024-01-31 19:14:01.308375252  19:14:01.308 DBG [rtsp] disconnect stream=patio
2024-01-31 19:14:01.312965397  19:14:01.312 DBG [rtsp] new consumer stream=driveway_sub
2024-01-31 19:14:01.324483636  19:14:01.324 DBG [rtsp] handle=EOF
2024-01-31 19:14:01.324625128  19:14:01.324 DBG [rtsp] disconnect stream=driveway
2024-01-31 19:14:01.339898834  19:14:01.339 DBG [rtsp] new consumer stream=patio
2024-01-31 19:14:01.359931956  19:14:01.359 DBG [rtsp] new consumer stream=driveway
2024-01-31 19:14:01.435255532  19:14:01.435 DBG [rtsp] new consumer stream=front_yard_left_sub
2024-01-31 19:14:01.459424097  19:14:01.459 DBG [rtsp] handle=EOF
2024-01-31 19:14:01.459544572  19:14:01.459 DBG [rtsp] disconnect stream=front_yard_left
2024-01-31 19:14:01.480392780  19:14:01.480 DBG [rtsp] new consumer stream=front_yard_left
2024-01-31 19:14:20.151623281  19:14:20.151 TRC [api] GET /api/streams 127.0.0.1:54244
2024-01-31 19:14:50.167672979  19:14:50.167 TRC [api] GET /api/streams 127.0.0.1:50304
2024-01-31 19:15:01.150468945  19:15:01.150 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:40046: read: connection reset by peer
2024-01-31 19:15:01.150512301  19:15:01.150 DBG [rtsp] disconnect stream=doorbell_sub
2024-01-31 19:15:01.199776669  19:15:01.199 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:40058: read: connection reset by peer
2024-01-31 19:15:01.199961079  19:15:01.199 DBG [rtsp] disconnect stream=entryway_sub
2024-01-31 19:15:01.257132969  19:15:01.256 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:40068: read: connection reset by peer
2024-01-31 19:15:01.257361265  19:15:01.257 DBG [rtsp] disconnect stream=game_room_sub
2024-01-31 19:15:01.292668280  19:15:01.292 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:40060: read: connection reset by peer
2024-01-31 19:15:01.292987937  19:15:01.292 DBG [rtsp] disconnect stream=front_garage_sub
2024-01-31 19:15:11.172726443  19:15:11.172 DBG [rtsp] new consumer stream=doorbell_sub
2024-01-31 19:15:11.222926314  19:15:11.222 DBG [rtsp] new consumer stream=entryway_sub
2024-01-31 19:15:11.271711067  19:15:11.271 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:40088: read: connection reset by peer
2024-01-31 19:15:11.271922184  19:15:11.271 DBG [rtsp] disconnect stream=front_yard_right_sub
2024-01-31 19:15:11.280146875  19:15:11.280 DBG [rtsp] new consumer stream=game_room_sub
2024-01-31 19:15:11.286839250  19:15:11.286 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:40078: read: connection reset by peer
2024-01-31 19:15:11.286913794  19:15:11.286 DBG [rtsp] disconnect stream=rear_garage_sub
2024-01-31 19:15:11.307024063  19:15:11.306 DBG [rtsp] new consumer stream=front_garage_sub
2024-01-31 19:15:11.451450005  19:15:11.451 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:40098: read: connection reset by peer
2024-01-31 19:15:11.451572170  19:15:11.451 DBG [rtsp] disconnect stream=patio_sub
2024-01-31 19:15:11.522629669  19:15:11.522 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:40550: read: connection reset by peer
2024-01-31 19:15:11.522745844  19:15:11.522 DBG [rtsp] disconnect stream=driveway_sub
2024-01-31 19:15:20.180258280  19:15:20.180 TRC [api] GET /api/streams 127.0.0.1:48274
2024-01-31 19:15:21.299376599  19:15:21.299 DBG [rtsp] new consumer stream=front_yard_right_sub
2024-01-31 19:15:21.312895887  19:15:21.312 DBG [rtsp] new consumer stream=rear_garage_sub
2024-01-31 19:15:21.470155313  19:15:21.470 DBG [rtsp] new consumer stream=patio_sub
2024-01-31 19:15:21.549667995  19:15:21.549 DBG [rtsp] new consumer stream=driveway_sub
2024-01-31 19:15:21.637301976  19:15:21.637 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:40566: read: connection reset by peer
2024-01-31 19:15:21.637429477  19:15:21.637 DBG [rtsp] disconnect stream=front_yard_left_sub
2024-01-31 19:15:31.655913761  19:15:31.655 DBG [rtsp] new consumer stream=front_yard_left_sub
2024-01-31 19:15:50.194486870  19:15:50.194 TRC [api] GET /api/streams 127.0.0.1:45658
2024-01-31 19:16:20.209547474  19:16:20.209 TRC [api] GET /api/streams 127.0.0.1:40444
2024-01-31 19:16:21.201450158  19:16:21.201 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:54918: read: connection reset by peer
2024-01-31 19:16:21.201635427  19:16:21.201 DBG [rtsp] disconnect stream=doorbell_sub
2024-01-31 19:16:21.239350121  19:16:21.239 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:54932: read: connection reset by peer
2024-01-31 19:16:21.239616155  19:16:21.239 DBG [rtsp] disconnect stream=entryway_sub
2024-01-31 19:16:21.344487390  19:16:21.344 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:54936: read: connection reset by peer
2024-01-31 19:16:21.344619581  19:16:21.344 DBG [rtsp] disconnect stream=game_room_sub
2024-01-31 19:16:31.224784812  19:16:31.224 DBG [rtsp] new consumer stream=doorbell_sub
2024-01-31 19:16:31.266135597  19:16:31.265 DBG [rtsp] new consumer stream=entryway_sub
2024-01-31 19:16:31.367984691  19:16:31.367 DBG [rtsp] new consumer stream=game_room_sub
2024-01-31 19:16:31.415263651  19:16:31.415 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:54948: read: connection reset by peer
2024-01-31 19:16:31.415337155  19:16:31.415 DBG [rtsp] disconnect stream=front_garage_sub
2024-01-31 19:16:41.311392705  19:16:41.311 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:34384: read: connection reset by peer
2024-01-31 19:16:41.311453135  19:16:41.311 DBG [rtsp] disconnect stream=front_yard_right_sub
2024-01-31 19:16:41.363831315  19:16:41.363 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:34386: read: connection reset by peer
2024-01-31 19:16:41.363880394  19:16:41.363 DBG [rtsp] disconnect stream=rear_garage_sub
2024-01-31 19:16:41.442670572  19:16:41.442 DBG [rtsp] new consumer stream=front_garage_sub
2024-01-31 19:16:41.583055782  19:16:41.582 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:34400: read: connection reset by peer
2024-01-31 19:16:41.583175749  19:16:41.583 DBG [rtsp] disconnect stream=patio_sub
2024-01-31 19:16:41.735575156  19:16:41.735 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:34406: read: connection reset by peer
2024-01-31 19:16:41.735687394  19:16:41.735 DBG [rtsp] disconnect stream=driveway_sub
2024-01-31 19:16:50.221619682  19:16:50.221 TRC [api] GET /api/streams 127.0.0.1:54586
2024-01-31 19:16:51.247872465  19:16:51.247 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:40486: read: connection reset by peer
2024-01-31 19:16:51.247999234  19:16:51.247 DBG [rtsp] disconnect stream=doorbell
2024-01-31 19:16:51.271193458  19:16:51.271 DBG [rtsp] new consumer stream=doorbell
2024-01-31 19:16:51.287913768  19:16:51.287 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:40492: read: connection reset by peer
2024-01-31 19:16:51.288021586  19:16:51.287 DBG [rtsp] disconnect stream=entryway
2024-01-31 19:16:51.311212992  19:16:51.311 DBG [rtsp] new consumer stream=entryway
2024-01-31 19:16:51.333481751  19:16:51.333 DBG [rtsp] new consumer stream=front_yard_right_sub
2024-01-31 19:16:51.384632362  19:16:51.384 DBG [rtsp] handle=EOF
2024-01-31 19:16:51.384857566  19:16:51.384 DBG [rtsp] disconnect stream=front_yard_right
2024-01-31 19:16:51.388620542  19:16:51.388 DBG [rtsp] new consumer stream=rear_garage_sub
2024-01-31 19:16:51.392285164  19:16:51.392 DBG [rtsp] handle=read tcp 127.0.0.1:8554->127.0.0.1:40508: read: connection reset by peer
gregtakacs commented 5 months ago

Logs from 1.6.2:

2024-01-31 20:36:56.976873575  [INFO] Preparing new go2rtc config...
2024-01-31 20:36:57.183188807  [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2024-01-31 20:36:57.204276861  [WARN] Using go2rtc binary from '/config/go2rtc' instead of the embedded one
2024-01-31 20:36:57.204281681  [INFO] Starting go2rtc...
2024-01-31 20:36:57.275975873  20:36:57.275 INF go2rtc version 1.6.2 linux/amd64
2024-01-31 20:36:57.276003339  20:36:57.275 TRC [api] register path path=/
2024-01-31 20:36:57.276004576  20:36:57.275 TRC [api] register path path=/api
2024-01-31 20:36:57.276008153  20:36:57.276 TRC [api] register path path=/api/config
2024-01-31 20:36:57.276014145  20:36:57.276 TRC [api] register path path=/api/exit
2024-01-31 20:36:57.276158911  20:36:57.276 INF [api] listen addr=0.0.0.0:1984
2024-01-31 20:36:57.276230709  20:36:57.276 TRC [api] register path path=/api/ws
2024-01-31 20:36:57.276385697  20:36:57.276 TRC [api] register path path=/api/streams
2024-01-31 20:36:57.276514661  20:36:57.276 INF [rtsp] listen addr=0.0.0.0:8554
2024-01-31 20:36:57.277612330  20:36:57.277 INF [webrtc] listen addr=:8555
2024-01-31 20:36:57.277614757  20:36:57.277 TRC [api] register path path=/api/webrtc
2024-01-31 20:36:57.277616325  20:36:57.277 TRC [api] register path path=/api/frame.mp4
2024-01-31 20:36:57.277620395  20:36:57.277 TRC [api] register path path=/api/stream.mp4
2024-01-31 20:36:57.277621931  20:36:57.277 TRC [api] register path path=/api/stream.m3u8
2024-01-31 20:36:57.277623152  20:36:57.277 TRC [api] register path path=/api/hls/playlist.m3u8
2024-01-31 20:36:57.277634308  20:36:57.277 TRC [api] register path path=/api/hls/segment.ts
2024-01-31 20:36:57.277635704  20:36:57.277 TRC [api] register path path=/api/hls/init.mp4
2024-01-31 20:36:57.277636825  20:36:57.277 TRC [api] register path path=/api/hls/segment.m4s
2024-01-31 20:36:57.277637878  20:36:57.277 TRC [api] register path path=/api/frame.jpeg
2024-01-31 20:36:57.277654355  20:36:57.277 TRC [api] register path path=/api/stream.mjpeg
2024-01-31 20:36:57.277695469  20:36:57.277 TRC [api] register path path=/static
2024-01-31 20:36:57.277700918  20:36:57.277 TRC [api] register path path=/streams
2024-01-31 20:36:57.277703933  20:36:57.277 TRC [api] register path path=/stream/
2024-01-31 20:36:57.277714538  20:36:57.277 TRC [api] register path path=/api/hass
2024-01-31 20:36:57.277718518  20:36:57.277 TRC [api] register path path=/onvif/
2024-01-31 20:36:57.277725101  20:36:57.277 TRC [api] register path path=/api/onvif
2024-01-31 20:36:57.277836004  20:36:57.277 TRC [api] register path path=/api/webtorrent
2024-01-31 20:36:57.277838969  20:36:57.277 TRC [api] register path path=/api/stream.flv
2024-01-31 20:36:57.277949934  20:36:57.277 TRC [api] register path path=/api/ffmpeg/devices
2024-01-31 20:36:57.277954641  20:36:57.277 TRC [api] register path path=/api/ffmpeg/hardware
2024-01-31 20:36:57.277965892  20:36:57.277 TRC [api] register path path=/api/dvrip
2024-01-31 20:36:57.277971132  20:36:57.277 TRC [api] register path path=/api/stream.ts
2024-01-31 20:36:57.277976828  20:36:57.277 TRC [api] register path path=/api/roborock
2024-01-31 20:36:57.277981782  20:36:57.277 TRC [api] register path path=/api/homekit
2024-01-31 20:36:57.277984509  20:36:57.277 TRC [api] register path path=/api/nest
2024-01-31 20:36:57.278209665  20:36:57.278 INF [srtp] listen addr=0.0.0.0:8443
2024-01-31 20:36:57.278218795  20:36:57.278 TRC [api] register path path=/api/stack
2024-01-31 20:36:57.871953121  20:36:57.871 DBG [rtsp] new consumer stream=doorbell_sub
2024-01-31 20:36:57.875660640  20:36:57.875 DBG [rtsp] new consumer stream=family_room_sub
2024-01-31 20:36:57.875771983  20:36:57.875 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.2.150/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=frigate&password=zdgYjK0i6eRuRfx8bDER -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2024-01-31 20:36:57.879735156  20:36:57.879 DBG [rtsp] new consumer stream=entryway_sub
2024-01-31 20:36:57.879830274  20:36:57.879 DBG [rtsp] new consumer stream=doorbell
2024-01-31 20:36:57.884170296  20:36:57.884 DBG [rtsp] new consumer stream=family_room
2024-01-31 20:36:57.884239965  20:36:57.884 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.2.150/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=frigate&password=zdgYjK0i6eRuRfx8bDER -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -min_comp 0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2024-01-31 20:36:57.889250087  20:36:57.889 DBG [rtsp] new consumer stream=entryway
2024-01-31 20:36:57.889266855  20:36:57.889 DBG [rtsp] new consumer stream=patio_sub
2024-01-31 20:36:57.894689197  20:36:57.894 DBG [rtsp] new consumer stream=front_garage_sub
2024-01-31 20:36:57.899844289  20:36:57.899 DBG [rtsp] new consumer stream=patio
2024-01-31 20:36:57.903619150  20:36:57.903 DBG [rtsp] new consumer stream=rear_garage_sub
2024-01-31 20:36:57.907808628  20:36:57.907 DBG [rtsp] new consumer stream=front_garage
2024-01-31 20:36:57.908867830  20:36:57.908 DBG [rtsp] new consumer stream=driveway_sub
2024-01-31 20:36:57.911472501  20:36:57.911 DBG [rtsp] new consumer stream=rear_garage
2024-01-31 20:36:57.916711256  20:36:57.916 DBG [rtsp] new consumer stream=game_room_sub
2024-01-31 20:36:57.916841589  20:36:57.916 DBG [rtsp] new consumer stream=driveway
2024-01-31 20:36:57.921833839  20:36:57.921 DBG [rtsp] new consumer stream=front_yard_right_sub
2024-01-31 20:36:57.925701335  20:36:57.925 DBG [rtsp] new consumer stream=game_room
2024-01-31 20:36:57.927569027  20:36:57.927 DBG [rtsp] new consumer stream=front_yard_left_sub
2024-01-31 20:36:57.931539521  20:36:57.931 DBG [rtsp] new consumer stream=front_yard_right
2024-01-31 20:36:57.934395956  20:36:57.934 DBG [rtsp] new consumer stream=front_yard_left
2024-01-31 20:37:00.698435910  20:37:00.698 DBG [exec] run launch=2.822427813s
2024-01-31 20:37:01.124064622  20:37:01.123 DBG [exec] run launch=3.239532615s
2024-01-31 20:37:06.974458531  [INFO] Starting go2rtc healthcheck service...
2024-01-31 20:37:36.987589611  20:37:36.987 TRC [api] GET /api/streams 127.0.0.1:48464
2024-01-31 20:38:07.003901408  20:38:07.003 TRC [api] GET /api/streams 127.0.0.1:34412
2024-01-31 20:38:37.015769519  20:38:37.015 TRC [api] GET /api/streams 127.0.0.1:60448
2024-01-31 20:39:07.030552629  20:39:07.030 TRC [api] GET /api/streams 127.0.0.1:48836
2024-01-31 20:39:37.045023166  20:39:37.044 TRC [api] GET /api/streams 127.0.0.1:56264
2024-01-31 20:40:07.058048585  20:40:07.057 TRC [api] GET /api/streams 127.0.0.1:60772
2024-01-31 20:40:37.072601825  20:40:37.072 TRC [api] GET /api/streams 127.0.0.1:45348
2024-01-31 20:41:07.086659330  20:41:07.086 TRC [api] GET /api/streams 127.0.0.1:35336
2024-01-31 20:41:37.101477030  20:41:37.101 TRC [api] GET /api/streams 127.0.0.1:45808
2024-01-31 20:42:07.116659883  20:42:07.116 TRC [api] GET /api/streams 127.0.0.1:45876
2024-01-31 20:42:37.130854703  20:42:37.130 TRC [api] GET /api/streams 127.0.0.1:40468
2024-01-31 20:43:07.144997058  20:43:07.144 TRC [api] GET /api/streams 127.0.0.1:54876
2024-01-31 20:43:37.157642851  20:43:37.157 TRC [api] GET /api/streams 127.0.0.1:46246
2024-01-31 20:44:07.172861595  20:44:07.172 TRC [api] GET /api/streams 127.0.0.1:35430
2024-01-31 20:44:37.188483655  20:44:37.188 TRC [api] GET /api/streams 127.0.0.1:60810
2024-01-31 20:45:07.201999040  20:45:07.201 TRC [api] GET /api/streams 127.0.0.1:49914
2024-01-31 20:45:37.215174056  20:45:37.215 TRC [api] GET /api/streams 127.0.0.1:48282
2024-01-31 20:46:07.229934232  20:46:07.229 TRC [api] GET /api/streams 127.0.0.1:33886
gregtakacs commented 5 months ago

My config:

go2rtc:
  ffmpeg:
    input_args: -rtsp_transport tcp
    bin: ffmpeg
    volume: "-af \"volume=20dB\""
  streams:
    # doorbell_2way:
    # - rtsp://${{FRIGATE_CAMERA_USER}}:${{FRIGATE_CAMERA_PASSWORD}}@192.168.2.151:554/h264Preview_01_sub
    # - ffmpeg:doorbell_2way#audio=pcm#audio=volume
    family_room:
      - "ffmpeg:http://192.168.2.150/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}#video=copy#audio=copy#audio=opus"
    family_room_sub:
      - "ffmpeg:http://192.168.2.150/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}"
    doorbell:
      - http://192.168.2.151/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
      - "ffmpeg:doorbell#audio=opus"
    doorbell_sub:
      - http://192.168.2.151/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
    entryway:
      - http://192.168.2.152/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
      - "ffmpeg:entryway#audio=opus"
    entryway_sub:
      - http://192.168.2.152/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
    patio:
      - http://192.168.2.153/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
      - "ffmpeg:patio#audio=opus"      
    patio_sub:
      - http://192.168.2.153/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
    rear_garage:
      - http://192.168.2.154/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
      - "ffmpeg:rear_garage#audio=opus"      
    rear_garage_sub:
      - http://192.168.2.154/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
    front_garage:
      - http://192.168.2.155/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
      - "ffmpeg:front-garage#audio=opus"      
    front_garage_sub:
      - http://192.168.2.155/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
    driveway:
      - http://192.168.2.156/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
      - "ffmpeg:driveway#audio=opus"      
    driveway_sub:
      - http://192.168.2.156/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
    game_room:
      - http://192.168.2.157/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
      - "ffmpeg:game_room#audio=opus"
    game_room_sub:
      - http://192.168.2.157/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
    front_yard_right:
      - http://192.168.2.158/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
      - "ffmpeg:front_yard_right#audio=opus"
    front_yard_right_sub:
      - http://192.168.2.158/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
    front_yard_left:
      - http://192.168.2.160/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
      - "ffmpeg:front_yard_left#audio=opus"
    front_yard_left_sub:
      - http://192.168.2.160/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
  log:
    level: info # default level
    api: trace
    exec: debug
    ngrok: info
    rtsp: debug
    stream: debug
    webrtc: debug
  webrtc:
    candidates:
      - 192.168.2.141:8555
      - stun:8555
AlexxIT commented 5 months ago

https://github.com/AlexxIT/go2rtc/releases/tag/v1.7.0

AlexxIT commented 5 months ago

You can use ffmpeg source or old go2rtc version before this will be fixed

NickM-27 commented 5 months ago

@gregtakacs see the recommended reolink config https://docs.frigate.video/configuration/camera_specific#reolink-cameras

henne49 commented 5 months ago

@NickM-27 should this also fix reolink http-flv in go2rtc 1.8.4? As I cannot get http streams working on latest one. rtsp is much more stable than any http flv

NickM-27 commented 5 months ago

not sure what you mean, but the docs I linked is recommended for anyone using frigate with a reolink camera

henne49 commented 5 months ago

As this recommendation is not working anymore on latest go2tc in frigate 0.13, as this issue states

NickM-27 commented 5 months ago

@henne49 incorrect, this issue is not using the recommended config. It is using native http-flv in go2rtc meanwhile the frigate recommendation is to use ffmpeg http-flv in go2rtc

NickM-27 commented 5 months ago

Also as an additional point, in the last few days since 0.13 launch many users were not using the recommended config and were seeing issues. When they switched to it they confirmed it fixed their issues as well

henne49 commented 5 months ago

apologies, if I did get it wrong, this is what I have:

since 0.13 this did not work anymore, I switched to 0.13 because I wanted to use https (httpx for selfsigned https):

    Einfahrt:
      - httpx://192.168.1.2/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=******min&password=******
      - "ffmpeg:Einfahrt#video=copy#audio=copy#audio=opus"
    Einfahrt_sub:
      - httpx://192.168.1.2/flv?port=1935&app=bcs&stream=channel0_sub.bcs&user=******&password=******
      - "ffmpeg:Einfahrt_sub"

but reading the documentation it should be now:

    Einfahrt:
      - "ffmpeg:httpx://192.168.1.2/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=******min&password=******#video=copy#audio=copy#audio=opus"
    Einfahrt_sub:
      - "ffmpeg:httpx://192.168.1.2/flv?port=1935&app=bcs&stream=channel0_sub.bcs&user=******&password=******"

Maybe I'm not getting it right and can you help me to clarify?

One addition this seems to work for me now best:

    Einfahrt:
      - rtsp://******:******0@192.168.1.2:554/h264Preview_01_main
      - "ffmpeg:Einfahrt#video=copy#audio=copy#audio=opus"
    Einfahrt_sub:
      - rtsp://******:******0@192.168.1.2:554/h264Preview_01_sub
      - "ffmpeg:Einfahrt_sub"
NickM-27 commented 5 months ago

ffmpeg doesn't support httpx as far as I know

henne49 commented 5 months ago

so this should still work:

    Einfahrt:
      - "ffmpeg:http://192.168.1.2/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=******min&password=******#video=copy#audio=copy#audio=opus"
    Einfahrt_sub:
      - "ffmpeg:http://192.168.1.2/flv?port=1935&app=bcs&stream=channel0_sub.bcs&user=******&password=******"
NickM-27 commented 5 months ago

assuming something on the reolink camera side hasn't been messed with

henne49 commented 5 months ago

mmh it does not for me:


2024-02-02 23:14:54.256394162  [2024-02-02 23:14:54] asyncio                        DEBUG   : Using selector: EpollSelector
2024-02-02 23:14:54.319982282  [2024-02-02 23:14:54] asyncio                        DEBUG   : Using selector: EpollSelector
2024-02-02 23:14:54.627539449  [2024-02-02 23:14:54] frigate.video                  ERROR   : Einfahrt: Unable to read frames from ffmpeg process.
2024-02-02 23:14:54.628050088  [2024-02-02 23:14:54] frigate.video                  ERROR   : Einfahrt: ffmpeg process is not running. exiting capture thread...
2024-02-02 23:14:54.695382300  [2024-02-02 23:14:54] frigate.video                  ERROR   : Haustuer: Unable to read frames from ffmpeg process.
2024-02-02 23:14:54.695385891  [2024-02-02 23:14:54] frigate.video                  ERROR   : Haustuer: ffmpeg process is not running. exiting capture thread...
2024-02-02 23:14:54.695718601  [2024-02-02 23:14:54] frigate.video                  ERROR   : Kellertuer: Unable to read frames from ffmpeg process.
2024-02-02 23:14:54.695721031  [2024-02-02 23:14:54] frigate.video                  ERROR   : Kellertuer: ffmpeg process is not running. exiting capture thread...
2024-02-02 23:14:59.256991435  [2024-02-02 23:14:59] asyncio                        DEBUG   : Using selector: EpollSelector
2024-02-02 23:14:59.264605100  [2024-02-02 23:14:59] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for Einfahrt. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-02-02 23:14:59.265291941  [2024-02-02 23:14:59] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for Haustuer. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-02-02 23:14:59.266127274  [2024-02-02 23:14:59] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for Kellertuer. Keeping the 6 most recent segments out of 7 and discarding the rest...
2024-02-02 23:14:59.519322043  [2024-02-02 23:14:59] watchdog.Einfahrt              ERROR   : Ffmpeg process crashed unexpectedly for Einfahrt.
2024-02-02 23:14:59.525181021  [2024-02-02 23:14:59] watchdog.Einfahrt              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2024-02-02 23:14:59.525186944  [2024-02-02 23:14:59] ffmpeg.Einfahrt.detect         ERROR   : rtsp://127.0.0.1:8554/Einfahrt_sub: Invalid data found when processing input
2024-02-02 23:14:59.593149118  [2024-02-02 23:14:59] watchdog.Haustuer              ERROR   : Ffmpeg process crashed unexpectedly for Haustuer.
2024-02-02 23:14:59.593152919  [2024-02-02 23:14:59] watchdog.Haustuer              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2024-02-02 23:14:59.593154867  [2024-02-02 23:14:59] ffmpeg.Haustuer.detect         ERROR   : rtsp://127.0.0.1:8554/Haustuer_sub: Invalid data found when processing input
2024-02-02 23:14:59.593156667  [2024-02-02 23:14:59] watchdog.Kellertuer            ERROR   : Ffmpeg process crashed unexpectedly for Kellertuer.
2024-02-02 23:14:59.593158378  [2024-02-02 23:14:59] watchdog.Kellertuer            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2024-02-02 23:14:59.593160132  [2024-02-02 23:14:59] ffmpeg.Kellertuer.detect       ERROR   : rtsp://127.0.0.1:8554/Kellertuer_sub: Invalid data found when processing input
2024-02-02 23:15:04.256477036  [2024-02-02 23:15:04] asyncio                        DEBUG   : Using selector: EpollSelector
2024-02-02 23:15:04.319516283  [2024-02-02 23:15:04] asyncio                        DEBUG   : Using selector: EpollSelector
henne49 commented 5 months ago

apologies, found it :-( I used sub instead of ext in the url

gregtakacs commented 5 months ago

Just to provide update: I did update to use the correct config, however 6 out of my 10 Reolink cameras would go dead and provide no data what-so-ever and no amount of reset fixed them. I noticed that the cameras that were not working were incidentally all the same kinds RLC-510WA while my E-10 Zoom indoors and my Door bell were still working.

So I dug a bit deeper and found that despite Reolink not providing an official firmware update for my 510WAs the Reolink firmware repository github did have newer firmwares that mimicked the setting that of my E10s (fixed bitrate, 1x frame interleave). Once I updated all 6 of my cameras to this firmware they all started working perfectly, even with the baked in 1.8.4 version of go2rtc.

This is my stream setup now, although the biggest difference was the latest firmware:

    patio:
    - ffmpeg:http://192.168.2.153/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}#video=copy#audio=copy#audio=opus
    patio_sub:
    - ffmpeg:http://192.168.2.153/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=${{FRIGATE_CAMERA_USER}}&password=${{FRIGATE_CAMERA_PASSWORD}}
AlexxIT commented 5 months ago

Issue not fixed yet

AlexxIT commented 1 month ago

Unfortunately, I can't replicate the problem on my camera. Everything works fine with no breaks.