frigate: [Support]: Audio with go2rtc is not recorded after some time and when I restart the container, it becomes unhealthy
Describe the problem you are having
Cameras are configured properly and audio is recorded and playable on the recorded video. Everything is ok… but after some time, the recordings come without audio… if I try to restart frigate from the UI page, the container goes it unhealthy state and I need to stop and start it again.
2024-02-12 09:50:16.565286628 09:50:16.565 WRN [rtsp] error=“streams: dial tcp 192.168.1.23:8554: i/o timeout, exec: exit status 1” stream=Viale 2024-02-12 09:50:16.565403130 09:50:16.565 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error=“write tcp 127.0.0.1:8554->127.0.0.1:36472: write: broken pipe” 2024-02-12 09:50:21.681748534 09:50:21.681 WRN [rtsp] error=“streams: dial tcp 192.168.1.23:8554: connect: no route to host, exec: exit status 1” stream=Viale 2024-02-12 09:50:21.681856261 09:50:21.681 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error=“write tcp 127.0.0.1:8554->127.0.0.1:36972: write: broken pipe” 2024-02-12 09:50:26.797889625 09:50:26.797 WRN [rtsp] error=“streams: dial tcp 192.168.1.23:8554: i/o timeout, exec: exit status 1” stream=Viale 2024-02-12 09:50:26.797998590 09:50:26.797 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error=“write tcp 127.0.0.1:8554->127.0.0.1:43202: write: broken pipe” 2024-02-12 09:50:37.031240295 09:50:37.031 WRN [rtsp] error=“streams: dial tcp 192.168.1.23:8554: i/o timeout, exec: exit status 1” stream=Viale 2024-02-12 09:50:37.031363017 09:50:37.031 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error=“write tcp 127.0.0.1:8554->127.0.0.1:43228: write: broken pipe” 2024-02-12 09:50:47.266216483 09:50:47.266 WRN [rtsp] error=“streams: dial tcp 192.168.1.23:8554: i/o timeout, exec: exit status 1” stream=Viale 2024-02-12 09:50:47.266297892 09:50:47.266 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error=“write tcp 127.0.0.1:8554->127.0.0.1:53280: write: broken pipe” 2024-02-12 09:50:57.498954727 09:50:57.498 WRN [rtsp] error=“streams: dial tcp 192.168.1.23:8554: i/o timeout, exec: exit status 1” stream=Viale 2024-02-12 09:50:57.499069482 09:50:57.498 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error=“write tcp 127.0.0.1:8554->127.0.0.1:58202: write: broken pipe” 2024-02-12 09:51:02.613909845 09:51:02.613 WRN [rtsp] error=“streams: dial tcp 192.168.1.23:8554: connect: no route to host, exec: exit status 1” stream=Viale 2024-02-12 09:51:02.614001878 09:51:02.613 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error=“write tcp 127.0.0.1:8554->127.0.0.1:53292: write: broken pipe” 2024-02-12 09:51:07.727821233 09:51:07.727 WRN [rtsp] error=“streams: dial tcp 192.168.1.23:8554: i/o timeout, exec: exit status 1” stream=Viale 2024-02-12 09:51:07.727937653 09:51:07.727 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error=“write tcp 127.0.0.1:8554->127.0.0.1:44382: write: broken pipe” 2024-02-12 09:51:23.078106491 09:51:23.077 WRN [rtsp] error=“streams: dial tcp 192.168.1.23:8554: i/o timeout, exec: exit status 1, dial tcp 192.168.1.23:8554: connect: no route to host” stream=Viale 2024-02-12 09:51:23.078218982 09:51:23.078 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error=“write tcp 127.0.0.1:8554->127.0.0.1:47410: write: broken pipe”
Version
0.13.1-34FB1C2
Frigate config file
go2rtc:
streams:
Veranda:
- rtsp://admin:XXX@192.168.XX.XX:XXX/tcp/av0_0
- "ffmpeg:Veranda#audio=aac"
Cancello:
- rtsp://admin:XXX@192.168.1.XX:XXX/Streaming/Channels/101
- "ffmpeg:Cancello#audio=aac"
cameras:
Veranda:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Veranda
input_args: preset-rtsp-restream
roles:
- detect
- record
- audio
output_args:
record: preset-record-generic-audio-aac
motion:
mask:
- 0,0,670,0,666,22,0,265
- 1075,292,943,314,908,284,791,191,713,145,624,194,613,244,633,276,805,409,772,498,996,689,1206,576
objects:
track:
- person
- dog
- cat
- bicycle
- car
- motorcycle
detect:
width: 1280
height: 720
fps: 15
record:
enabled: True
retain:
days: 7
mode: motion
Cancello:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Cancello
input_args: preset-rtsp-restream
roles:
- detect
- record
- audio
output_args:
record: preset-record-generic-audio-aac
objects:
track:
- person
- dog
- cat
- bicycle
- car
- motorcycle
detect:
width: 2304
height: 1296
fps: 15
record:
enabled: True
retain:
days: 7
mode: motion
Relevant log output
2024-02-12 09:50:16.565286628 09:50:16.565 WRN [rtsp] error="streams: dial tcp 192.168.1.23:8554: i/o timeout, exec: exit status 1" stream=Viale
2024-02-12 09:50:16.565403130 09:50:16.565 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:36472: write: broken pipe"
2024-02-12 09:50:21.681748534 09:50:21.681 WRN [rtsp] error="streams: dial tcp 192.168.1.23:8554: connect: no route to host, exec: exit status 1" stream=Viale
2024-02-12 09:50:21.681856261 09:50:21.681 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:36972: write: broken pipe"
2024-02-12 09:50:26.797889625 09:50:26.797 WRN [rtsp] error="streams: dial tcp 192.168.1.23:8554: i/o timeout, exec: exit status 1" stream=Viale
2024-02-12 09:50:26.797998590 09:50:26.797 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:43202: write: broken pipe"
2024-02-12 09:50:37.031240295 09:50:37.031 WRN [rtsp] error="streams: dial tcp 192.168.1.23:8554: i/o timeout, exec: exit status 1" stream=Viale
2024-02-12 09:50:37.031363017 09:50:37.031 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:43228: write: broken pipe"
2024-02-12 09:50:47.266216483 09:50:47.266 WRN [rtsp] error="streams: dial tcp 192.168.1.23:8554: i/o timeout, exec: exit status 1" stream=Viale
2024-02-12 09:50:47.266297892 09:50:47.266 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:53280: write: broken pipe"
2024-02-12 09:50:57.498954727 09:50:57.498 WRN [rtsp] error="streams: dial tcp 192.168.1.23:8554: i/o timeout, exec: exit status 1" stream=Viale
2024-02-12 09:50:57.499069482 09:50:57.498 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:58202: write: broken pipe"
2024-02-12 09:51:02.613909845 09:51:02.613 WRN [rtsp] error="streams: dial tcp 192.168.1.23:8554: connect: no route to host, exec: exit status 1" stream=Viale
2024-02-12 09:51:02.614001878 09:51:02.613 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:53292: write: broken pipe"
2024-02-12 09:51:07.727821233 09:51:07.727 WRN [rtsp] error="streams: dial tcp 192.168.1.23:8554: i/o timeout, exec: exit status 1" stream=Viale
2024-02-12 09:51:07.727937653 09:51:07.727 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:44382: write: broken pipe"
2024-02-12 09:51:23.078106491 09:51:23.077 WRN [rtsp] error="streams: dial tcp 192.168.1.23:8554: i/o timeout, exec: exit status 1, dial tcp 192.168.1.23:8554: connect: no route to host" stream=Viale
2024-02-12 09:51:23.078218982 09:51:23.078 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:47410: write: broken pipe"
FFprobe output from your camera
-
Frigate stats
No response
Operating system
Debian
Install method
Docker Compose
Coral version
USB
Network connection
Wired
Camera make and model
Codnida 2K
Any other information that may be helpful
No response
About this issue
- Original URL
- State: open
- Created 5 months ago
- Comments: 27
the dbfs just comes from audio, there is no way to check recordings directly other than checking the file. In any case restarting is not a true fix, the fix would need to come from go2rtc.
A workaround would be changing your config to
changing the preset won’t help. The reason this happens is because go2rtc stream is started and you can’t add additional tracks after the stream starts. So after some time a stream restarts without audio and then audio can’t be added later