Closed smoksnes closed 1 year ago
the logs you have provided are not helpful and unrelated, you need to provide ALL of the logs from frigate and go2rtc
the logs you have provided are not helpful and unrelated, you need to provide ALL of the logs from frigate and go2rtc
I copied the logs from within frigate and pasted them, but I excluded the nginx-logs, which I have now included. Earlier I also just copied parts of go2rtc-logs before they started repeating. Now they are all included. What logs am I missing?
The go2rtc logs were pasted without any newlines, so they were not visible in the post
I'll manually fix it. Give me one sec.
The go2rtc logs were pasted without any newlines, so they were not visible in the post
Now they are more readable.
there's no reason to set debug
logs for go2rtc across the board. I would suggest doing
go2rtc:
streams:
...
log:
exec: trace
and that will give helpful info to seeing what is going on
there's no reason to set
debug
logs for go2rtc across the board. I would suggest doinggo2rtc: streams: ... log: exec: trace
and that will give helpful info to seeing what is going on
I try to access it from an iPhone on the same LAN, and from another (Windows) computer on the same LAN.
2023-04-20 15:36:59.695169561 [INFO] Preparing go2rtc config...
2023-04-20 15:36:59.911841980 [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2023-04-20 15:36:59.935793042 [INFO] Starting go2rtc...
2023-04-20 15:37:00.093915053 15:37:00.093 INF go2rtc version 1.2.0 linux/amd64
2023-04-20 15:37:00.094258242 15:37:00.094 INF [api] listen addr=:1984
2023-04-20 15:37:00.094524933 15:37:00.094 INF [rtsp] listen addr=:8554
2023-04-20 15:37:00.094873855 15:37:00.094 INF [srtp] listen addr=:8443
2023-04-20 15:37:00.095097227 15:37:00.095 INF [webrtc] listen addr=:8555
2023-04-20 15:37:05.359608519 15:37:05.359 DBG [exec] run url="exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_transport tcp -i rtsp://admin:some_pass@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1 -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/994d3e1dd2f36a670cb80ae094987cae"
2023-04-20 15:37:07.372416062 Input #0, rtsp, from 'rtsp://admin:some_pass@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1':
2023-04-20 15:37:07.372424966 Metadata:
2023-04-20 15:37:07.372429862 title : Media Presentation
2023-04-20 15:37:07.372484903 Duration: N/A, start: 0.000000, bitrate: N/A
2023-04-20 15:37:07.372567271 Stream #0:0: Video: hevc (Main), yuvj420p(pc), 3840x2160 [SAR 1:1 DAR 16:9], 12.50 tbr, 90k tbn
2023-04-20 15:37:07.372736600 Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
2023-04-20 15:37:07.378427760 15:37:07.378 DBG [exec] run launch=2.018780064s
2023-04-20 15:37:07.378743804 Output #0, rtsp, to 'rtsp://localhost:8554/994d3e1dd2f36a670cb80ae094987cae':
2023-04-20 15:37:07.378753828 Metadata:
2023-04-20 15:37:07.378809579 title : Media Presentation
2023-04-20 15:37:07.378816473 encoder : Lavf59.27.100
2023-04-20 15:37:07.378938918 Stream #0:0: Video: hevc (Main), yuvj420p(pc), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 12.50 tbr, 90k tbn
2023-04-20 15:37:07.379097514 Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
2023-04-20 15:37:07.379106751 Stream mapping:
2023-04-20 15:37:07.379168878 Stream #0:0 -> #0:0 (copy)
2023-04-20 15:37:07.379174905 Stream #0:1 -> #0:1 (copy)
2023-04-20 15:37:07.379180896 Press [q] to stop, [?] for help
2023-04-20 15:37:09.703873698 frame= 0 fps=0.0 q=-1.0 size=N/A time=00:00:01.84 bitrate=N/A speed=N/A
frame= 3 fps=0.0 q=-1.0 size=N/A time=00:00:02.36 bitrate=N/A speed=4.44x
frame= 10 fps=9.7 q=-1.0 size=N/A time=00:00:02.84 bitrate=N/A speed=2.75x
frame= 16 fps= 10 q=-1.0 size=N/A time=00:00:03.40 bitrate=N/A speed=2.19x
frame= 22 fps= 11 q=-1.0 size=N/A time=00:00:03.92 bitrate=N/A speed=1.89x
[INFO] Starting go2rtc healthcheck service...
2023-04-20 15:37:10.404964418 frame= 28 fps= 11 q=-1.0 size=N/A time=00:00:04.44 bitrate=N/A speed=1.71x
15:37:10.404 WRN github.com/AlexxIT/go2rtc/cmd/webrtc/candidates.go:20 > error="write udp 10.10.0.8:59585->108.177.14.127:19302: i/o timeout"
2023-04-20 15:38:01.756173065 frame= 34 fps= 11 q=-1.0 size=N/A time=00:00:04.96 bitrate=N/A speed= 1.6x
frame= 41 fps= 11 q=-1.0 size=N/A time=00:00:05.44 bitrate=N/A speed=1.51x
frame= 47 fps= 11 q=-1.0 size=N/A time=00:00:05.96 bitrate=N/A speed=1.45x
frame= 52 fps= 11 q=-1.0 size=N/A time=00:00:06.48 bitrate=N/A speed= 1.4x
frame= 59 fps= 11 q=-1.0 size=N/A time=00:00:07.00 bitrate=N/A speed=1.36x
frame= 65 fps= 11 q=-1.0 size=N/A time=00:00:07.48 bitrate=N/A speed=1.32x
frame= 71 fps= 11 q=-1.0 size=N/A time=00:00:08.00 bitrate=N/A speed=1.29x
frame= 77 fps= 12 q=-1.0 size=N/A time=00:00:08.52 bitrate=N/A speed=1.28x
frame= 83 fps= 12 q=-1.0 size=N/A time=00:00:09.04 bitrate=N/A speed=1.25x
frame= 90 fps= 12 q=-1.0 size=N/A time=00:00:09.56 bitrate=N/A speed=1.24x
frame= 97 fps= 12 q=-1.0 size=N/A time=00:00:10.12 bitrate=N/A speed=1.23x
frame= 103 fps= 12 q=-1.0 size=N/A time=00:00:10.64 bitrate=N/A speed=1.21x
frame= 110 fps= 12 q=-1.0 size=N/A time=00:00:11.16 bitrate=N/A speed=1.19x
frame= 118 fps= 12 q=-1.0 size=N/A time=00:00:11.76 bitrate=N/A speed=1.19x
frame= 123 fps= 12 q=-1.0 size=N/A time=00:00:12.32 bitrate=N/A speed=1.17x
frame= 129 fps= 12 q=-1.0 size=N/A time=00:00:12.88 bitrate=N/A speed=1.17x
frame= 136 fps= 12 q=-1.0 size=N/A time=00:00:13.40 bitrate=N/A speed=1.16x
frame= 142 fps= 12 q=-1.0 size=N/A time=00:00:13.92 bitrate=N/A speed=1.16x
frame= 148 fps= 12 q=-1.0 size=N/A time=00:00:14.36 bitrate=N/A speed=1.14x
frame= 155 fps= 12 q=-1.0 size=N/A time=00:00:14.96 bitrate=N/A speed=1.14x
frame= 160 fps= 12 q=-1.0 size=N/A time=00:00:15.44 bitrate=N/A speed=1.14x
frame= 167 fps= 12 q=-1.0 size=N/A time=00:00:15.92 bitrate=N/A speed=1.13x
frame= 172 fps= 12 q=-1.0 size=N/A time=00:00:16.44 bitrate=N/A speed=1.13x
frame= 179 fps= 12 q=-1.0 size=N/A time=00:00:16.92 bitrate=N/A speed=1.12x
frame= 186 fps= 12 q=-1.0 size=N/A time=00:00:17.56 bitrate=N/A speed=1.12x
frame= 192 fps= 12 q=-1.0 size=N/A time=00:00:18.08 bitrate=N/A speed=1.11x
frame= 198 fps= 12 q=-1.0 size=N/A time=00:00:18.64 bitrate=N/A speed=1.11x
frame= 205 fps= 12 q=-1.0 size=N/A time=00:00:19.16 bitrate=N/A speed=1.11x
frame= 211 fps= 12 q=-1.0 size=N/A time=00:00:19.64 bitrate=N/A speed= 1.1x
frame= 217 fps= 12 q=-1.0 size=N/A time=00:00:20.12 bitrate=N/A speed= 1.1x
frame= 225 fps= 12 q=-1.0 size=N/A time=00:00:20.72 bitrate=N/A speed= 1.1x
frame= 231 fps= 12 q=-1.0 size=N/A time=00:00:21.28 bitrate=N/A speed=1.09x
frame= 237 fps= 12 q=-1.0 size=N/A time=00:00:21.84 bitrate=N/A speed=1.09x
frame= 243 fps= 12 q=-1.0 size=N/A time=00:00:22.36 bitrate=N/A speed=1.09x
frame= 249 fps= 12 q=-1.0 size=N/A time=00:00:22.84 bitrate=N/A speed=1.09x
frame= 255 fps= 12 q=-1.0 size=N/A time=00:00:23.36 bitrate=N/A speed=1.08x
frame= 262 fps= 12 q=-1.0 size=N/A time=00:00:23.88 bitrate=N/A speed=1.08x
frame= 267 fps= 12 q=-1.0 size=N/A time=00:00:24.40 bitrate=N/A speed=1.08x
frame= 274 fps= 12 q=-1.0 size=N/A time=00:00:24.92 bitrate=N/A speed=1.08x
frame= 280 fps= 12 q=-1.0 size=N/A time=00:00:25.40 bitrate=N/A speed=1.08x
frame= 286 fps= 12 q=-1.0 size=N/A time=00:00:25.92 bitrate=N/A speed=1.08x
frame= 293 fps= 12 q=-1.0 size=N/A time=00:00:26.52 bitrate=N/A speed=1.08x
frame= 300 fps= 12 q=-1.0 size=N/A time=00:00:27.04 bitrate=N/A speed=1.07x
frame= 306 fps= 12 q=-1.0 size=N/A time=00:00:27.60 bitrate=N/A speed=1.07x
frame= 311 fps= 12 q=-1.0 size=N/A time=00:00:28.12 bitrate=N/A speed=1.07x
frame= 318 fps= 12 q=-1.0 size=N/A time=00:00:28.60 bitrate=N/A speed=1.07x
frame= 325 fps= 12 q=-1.0 size=N/A time=00:00:29.08 bitrate=N/A speed=1.07x
frame= 332 fps= 12 q=-1.0 size=N/A time=00:00:29.72 bitrate=N/A speed=1.07x
frame= 338 fps= 12 q=-1.0 size=N/A time=00:00:30.24 bitrate=N/A speed=1.06x
frame= 344 fps= 12 q=-1.0 size=N/A time=00:00:30.80 bitrate=N/A speed=1.06x
frame= 350 fps= 12 q=-1.0 size=N/A time=00:00:31.32 bitrate=N/A speed=1.06x
frame= 357 fps= 12 q=-1.0 size=N/A time=00:00:31.84 bitrate=N/A speed=1.06x
frame= 362 fps= 12 q=-1.0 size=N/A time=00:00:32.32 bitrate=N/A speed=1.06x
frame= 369 fps= 12 q=-1.0 size=N/A time=00:00:32.80 bitrate=N/A speed=1.06x
frame= 375 fps= 12 q=-1.0 size=N/A time=00:00:33.36 bitrate=N/A speed=1.06x
frame= 381 fps= 12 q=-1.0 size=N/A time=00:00:33.88 bitrate=N/A speed=1.06x
frame= 387 fps= 12 q=-1.0 size=N/A time=00:00:34.36 bitrate=N/A speed=1.06x
frame= 393 fps= 12 q=-1.0 size=N/A time=00:00:34.88 bitrate=N/A speed=1.06x
frame= 400 fps= 12 q=-1.0 size=N/A time=00:00:35.40 bitrate=N/A speed=1.05x
frame= 406 fps= 12 q=-1.0 size=N/A time=00:00:35.92 bitrate=N/A speed=1.05x
frame= 413 fps= 12 q=-1.0 size=N/A time=00:00:36.48 bitrate=N/A speed=1.05x
frame= 419 fps= 12 q=-1.0 size=N/A time=00:00:37.04 bitrate=N/A speed=1.05x
frame= 426 fps= 12 q=-1.0 size=N/A time=00:00:37.52 bitrate=N/A speed=1.05x
frame= 431 fps= 12 q=-1.0 size=N/A time=00:00:38.08 bitrate=N/A speed=1.05x
frame= 438 fps= 12 q=-1.0 size=N/A time=00:00:38.60 bitrate=N/A speed=1.05x
frame= 444 fps= 12 q=-1.0 size=N/A time=00:00:39.12 bitrate=N/A speed=1.05x
frame= 452 fps= 12 q=-1.0 size=N/A time=00:00:39.72 bitrate=N/A speed=1.05x
frame= 457 fps= 12 q=-1.0 size=N/A time=00:00:40.28 bitrate=N/A speed=1.05x
frame= 464 fps= 12 q=-1.0 size=N/A time=00:00:40.76 bitrate=N/A speed=1.05x
frame= 470 fps= 12 q=-1.0 size=N/A time=00:00:41.28 bitrate=N/A speed=1.05x
frame= 478 fps= 12 q=-1.0 size=N/A time=00:00:41.84 bitrate=N/A speed=1.05x
frame= 482 fps= 12 q=-1.0 size=N/A time=00:00:42.32 bitrate=N/A speed=1.05x
frame= 488 fps= 12 q=-1.0 size=N/A time=00:00:42.84 bitrate=N/A speed=1.05x
frame= 495 fps= 12 q=-1.0 size=N/A time=00:00:43.32 bitrate=N/A speed=1.04x
frame= 501 fps= 12 q=-1.0 size=N/A time=00:00:43.84 bitrate=N/A speed=1.04x
frame= 507 fps= 12 q=-1.0 size=N/A time=00:00:44.32 bitrate=N/A speed=1.04x
frame= 514 fps= 12 q=-1.0 size=N/A time=00:00:44.96 bitrate=N/A speed=1.04x
frame= 521 fps= 12 q=-1.0 size=N/A time=00:00:45.48 bitrate=N/A speed=1.04x
frame= 527 fps= 12 q=-1.0 size=N/A time=00:00:46.04 bitrate=N/A speed=1.04x
frame= 534 fps= 12 q=-1.0 size=N/A time=00:00:46.64 bitrate=N/A speed=1.04x
frame= 541 fps= 12 q=-1.0 size=N/A time=00:00:47.12 bitrate=N/A speed=1.04x
frame= 547 fps= 12 q=-1.0 size=N/A time=00:00:47.68 bitrate=N/A speed=1.04x
frame= 553 fps= 12 q=-1.0 size=N/A time=00:00:48.16 bitrate=N/A speed=1.04x
frame= 559 fps= 12 q=-1.0 size=N/A time=00:00:48.72 bitrate=N/A speed=1.04x
frame= 565 fps= 12 q=-1.0 size=N/A time=00:00:49.24 bitrate=N/A speed=1.04x
frame= 573 fps= 12 q=-1.0 size=N/A time=00:00:49.84 bitrate=N/A speed=1.04x
frame= 579 fps= 12 q=-1.0 size=N/A time=00:00:50.32 bitrate=N/A speed=1.04x
frame= 585 fps= 12 q=-1.0 size=N/A time=00:00:50.88 bitrate=N/A speed=1.04x
frame= 592 fps= 12 q=-1.0 size=N/A time=00:00:51.44 bitrate=N/A speed=1.04x
frame= 598 fps= 12 q=-1.0 size=N/A time=00:00:51.92 bitrate=N/A speed=1.04x
frame= 603 fps= 12 q=-1.0 size=N/A time=00:00:52.44 bitrate=N/A speed=1.04x
frame= 611 fps= 12 q=-1.0 size=N/A time=00:00:53.00 bitrate=N/A speed=1.04x
frame= 616 fps= 12 q=-1.0 size=N/A time=00:00:53.44 bitrate=N/A speed=1.04x
frame= 622 fps= 12 q=-1.0 size=N/A time=00:00:53.96 bitrate=N/A speed=1.04x
frame= 628 fps= 12 q=-1.0 size=N/A time=00:00:54.48 bitrate=N/A speed=1.03x
frame= 634 fps= 12 q=-1.0 size=N/A time=00:00:55.00 bitrate=N/A speed=1.03x
frame= 641 fps= 12 q=-1.0 size=N/A time=00:00:55.52 bitrate=N/A speed=1.03x
frame= 647 fps= 12 q=-1.0 size=N/A time=00:00:56.00 bitrate=N/A speed=1.03x
av_interleaved_write_frame(): Broken pipe
2023-04-20 15:38:01.756264937 Error writing trailer of rtsp://localhost:8554/994d3e1dd2f36a670cb80ae094987cae: Broken pipe
2023-04-20 15:38:01.756268420 frame= 649 fps= 12 q=-1.0 Lsize=N/A time=00:00:56.20 bitrate=N/A speed=1.03x
2023-04-20 15:38:01.756271646 video:26372kB audio:425kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
2023-04-20 15:38:01.756724316 Conversion failed!
2023-04-20 15:38:01.758125728 15:38:01.757 TRC [exec] close url="exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_transport tcp -i rtsp://admin:some_pass@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1 -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/994d3e1dd2f36a670cb80ae094987cae"
So I notice you have some args in the output for recordings, I imagine similar may be needed for go2rtc, I would suggest trying a config like this:
go2rtc:
streams:
carport:
- ffmpeg:rtsp://admin:some_password@192.168.60.30:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1#raw=-tag:v hvc1 -bsf:v hevc_mp4toannexb
altan:
- ffmpeg:rtsp://admin:some_password@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1#raw=-tag:v hvc1 -bsf:v hevc_mp4toannexb
So I notice you have some args in the output for recordings, I imagine similar may be needed for go2rtc, I would suggest trying a config like this:
go2rtc: streams: carport: - ffmpeg:rtsp://admin:some_password@192.168.60.30:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1#raw=-tag:v hvc1 -bsf:v hevc_mp4toannexb altan: - ffmpeg:rtsp://admin:some_password@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1#raw=-tag´':v hvc1 -bsf:v hevc_mp4toannexb
Thanks for the reply. Unfortunately it didn't solve the issue.
Change config to this:
go2rtc:
log:
exec: trace
webrtc:
candidates:
- 192.168.1.220:8555
- stun:8555
streams:
carport:
- ffmpeg:rtsp://admin:some_pass@192.168.60.30:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1#raw=-tag:v hvc1 -bsf:v hevc_mp4toannexb
altan:
- ffmpeg:rtsp://admin:some_pass@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1#raw=-tag:v hvc1 -bsf:v hevc_mp4toannexb
It resulted in this log:
2023-04-20 17:28:01.624568825 [INFO] Preparing go2rtc config...
2023-04-20 17:28:01.844434785 [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2023-04-20 17:28:01.873007269 [INFO] Starting go2rtc...
2023-04-20 17:28:01.997419118 17:28:01.997 INF go2rtc version 1.2.0 linux/amd64
2023-04-20 17:28:01.997785324 17:28:01.997 INF [api] listen addr=:1984
2023-04-20 17:28:01.998068407 17:28:01.998 INF [rtsp] listen addr=:8554
2023-04-20 17:28:01.998417816 17:28:01.998 INF [srtp] listen addr=:8443
2023-04-20 17:28:01.998670201 17:28:01.998 INF [webrtc] listen addr=:8555
2023-04-20 17:28:11.623601108 [INFO] Starting go2rtc healthcheck service...
2023-04-20 17:28:38.671914233 17:28:38.671 DBG [exec] run url="exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_transport tcp -i rtsp://admin:some_pass@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1 -tag:v hvc1 -bsf:v hevc_mp4toannexb -vn -an -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/d13f5af3ac83849967d4daa55ec5b81c"
2023-04-20 17:28:40.790578208 Input #0, rtsp, from 'rtsp://admin:some_pass@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1':
2023-04-20 17:28:40.790587747 Metadata:
2023-04-20 17:28:40.790592776 title : Media Presentation
2023-04-20 17:28:40.790653954 Duration: N/A, start: 0.000000, bitrate: N/A
2023-04-20 17:28:40.790762131 Stream #0:0: Video: hevc (Main), yuvj420p(pc), 3840x2160 [SAR 1:1 DAR 16:9], 12.50 tbr, 90k tbn
2023-04-20 17:28:40.790864020 Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
2023-04-20 17:28:40.791082419 Output #0, rtsp, to 'rtsp://localhost:8554/d13f5af3ac83849967d4daa55ec5b81c':
2023-04-20 17:28:40.791091204 Output file #0 does not contain any stream
2023-04-20 17:28:40.794163416 17:28:40.793 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url="ffmpeg:rtsp://admin:some_pass@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1#raw=-tag:v hvc1 -bsf:v hevc_mp4toannexb"
2023-04-20 17:28:40.794390406 17:28:40.794 DBG [exec] run url="exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_transport tcp -i rtsp://admin:some_pass@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1 -tag:v hvc1 -bsf:v hevc_mp4toannexb -vn -an -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/d13f5af3ac83849967d4daa55ec5b81c"
2023-04-20 17:28:42.798047055 Input #0, rtsp, from 'rtsp://admin:some_pass@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1':
2023-04-20 17:28:42.798055978 Metadata:
2023-04-20 17:28:42.798060775 title : Media Presentation
2023-04-20 17:28:42.798117387 Duration: N/A, start: 0.000000, bitrate: N/A
2023-04-20 17:28:42.798149633 Stream #0:0: Video: hevc (Main), yuvj420p(pc), 3840x2160 [SAR 1:1 DAR 16:9], 12.50 tbr, 90k tbn
2023-04-20 17:28:42.798206336 Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
2023-04-20 17:28:42.798338210 Output #0, rtsp, to 'rtsp://localhost:8554/d13f5af3ac83849967d4daa55ec5b81c':
2023-04-20 17:28:42.798344602 Output file #0 does not contain any stream
2023-04-20 17:28:42.801153652 17:28:42.800 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url="ffmpeg:rtsp://admin:some_pass@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1#raw=-tag:v hvc1 -bsf:v hevc_mp4toannexb"
2023-04-20 17:28:42.801562481 17:28:42.801 DBG [exec] run url="exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_transport tcp -i rtsp://admin:some_pass@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1 -tag:v hvc1 -bsf:v hevc_mp4toannexb -vn -an -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/d13f5af3ac83849967d4daa55ec5b81c"
2023-04-20 17:28:44.958833725 Input #0, rtsp, from 'rtsp://admin:some_pass@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1':
2023-04-20 17:28:44.958842854 Metadata:
2023-04-20 17:28:44.958848013 title : Media Presentation
2023-04-20 17:28:44.958905081 Duration: N/A, start: 0.000000, bitrate: N/A
2023-04-20 17:28:44.958938248 Stream #0:0: Video: hevc (Main), yuvj420p(pc), 3840x2160 [SAR 1:1 DAR 16:9], 12.50 tbr, 90k tbn
2023-04-20 17:28:44.959002826 Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
2023-04-20 17:28:44.959224198 Output #0, rtsp, to 'rtsp://localhost:8554/d13f5af3ac83849967d4daa55ec5b81c':
2023-04-20 17:28:44.959230228 Output file #0 does not contain any stream
2023-04-20 17:28:44.962078082 17:28:44.961 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url="ffmpeg:rtsp://admin:some_pass@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1#raw=-tag:v hvc1 -bsf:v hevc_mp4toannexb"
2023-04-20 17:28:44.962260031 17:28:44.962 DBG [exec] run url="exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_transport tcp -i rtsp://admin:some_pass@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1 -tag:v hvc1 -bsf:v hevc_mp4toannexb -vn -an -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://localhost:8554/d13f5af3ac83849967d4daa55ec5b81c"
2023-04-20 17:28:46.969143575 Input #0, rtsp, from 'rtsp://admin:some_pass@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1':
2023-04-20 17:28:46.969152661 Metadata:
2023-04-20 17:28:46.969157375 title : Media Presentation
2023-04-20 17:28:46.969237098 Duration: N/A, start: 0.000000, bitrate: N/A
2023-04-20 17:28:46.969415264 Stream #0:0: Video: hevc (Main), yuvj420p(pc), 3840x2160 [SAR 1:1 DAR 16:9], 12.50 tbr, 90k tbn
2023-04-20 17:28:46.969519857 Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
2023-04-20 17:28:46.969811364 Output #0, rtsp, to 'rtsp://localhost:8554/d13f5af3ac83849967d4daa55ec5b81c':
2023-04-20 17:28:46.969819953 Output file #0 does not contain any stream
2023-04-20 17:28:46.973012849 17:28:46.972 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url="ffmpeg:rtsp://admin:some_pass@192.168.60.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1#raw=-tag:v hvc1 -bsf:v hevc_mp4toannexb"
Does it have anything with my h.265 codec to do? Or the fact that I'm running it in docker with a bridge netword? The IP is the IP for the host running docker. The container itself has another IP since it has another gateway.
Not sure what the issue is tbh, but you'll likely want to make an issue on go2rtc instead seeing as it works in frigate
Not sure what the issue is tbh, but you'll likely want to make an issue on go2rtc instead seeing as it works in frigate
Ok, thanks for you help anyway. And nice work with the 0.12
release!
Describe the problem you are having
I have two Annke C800, which normally works well. But I can't seem to get it to work with go2rtc. Whenever a stream is requested I get this error:
WRN github.com/AlexxIT/go2rtc/cmd/webrtc/candidates.go:20 > error="write udp 10.10.0.8:50470->108.XXX.14.XXX:19302: i/o timeout"
IP is semi-obfuscated by me. I don't know if it's a network error, or because of H.265. I don't use H.265+ at the moment. The video image is black only.
I tried adding
ffmpeg:rtsp:
to my webrtc settings but it didn't help.Here's my compose:
Version
0.12.0-DA3E197
Frigate config file
Relevant log output
Log from Frigate:
Log from go2rtc:
Log from go2rtc dashboard:
Logs from nginx
Frigate stats
Operating system
Debian
Install method
Docker Compose
Coral version
USB
Any other information that may be helpful
No response