Closed Forsskieken closed 1 year ago
Everything under go2rtc
is passed to go2rtc exactly the same as the original go2rtc file. The only way there would be a difference is if the config entered was not the same.
With that question answered I think it is best to keep the support consolidated in https://github.com/blakeblackshear/frigate/issues/7403
Below the relevant extract from the config.yml file sound is configuered
go2rtc:
log:
level: debug #info default level
api: trace
exec: debug
ngrok: info
rtsp: info
streams: info
webrtc: info
streams:
Wachtkamer:
- rtsp://user:passwd@192.168.4.33:554/h264Preview_01_main
Wachtkamer_sub:
- rtsp://user:passwd@192.168.4.33:554/h264Preview_01_sub
#voordeuraudio: exec:ffmpeg -f mulaw -ar 8000 -i http://user:passwd@192.168.1.31/bha-api/audio-receive.cgi -f rtsp {output}
#Poortjeaudio: exec:ffmpeg -f mulaw -ar 8000 -i http://user:passwd@192.168.1.32/bha-api/audio-receive.cgi -f rtsp {output}
voordeuraudio: exec:ffmpeg -f mulaw -ar 8000 -i http://user:passwd@192.168.1.31/axis-cgi/audio/receive.cgi -f rtsp {output}
Voordeur:
- rtsp://guser:passwd@192.168.1.31/mpeg/media.amp
- ffmpeg:voordooraudio
webrtc:
candidates:
- stun:8555
With the above config the webpage keeps functioning though the Wachtkamer camera isn't visible
**This is the Frigate Tab log:**
2023-08-12 12:55:49.723908884 [INFO] Starting Frigate...
2023-08-12 12:55:50.834074979 [2023-08-12 12:55:50] frigate.app INFO : Starting Frigate (0.12.1-367d724)
2023-08-12 12:55:50.886045089 [2023-08-12 12:55:50] peewee_migrate INFO : Starting migrations
2023-08-12 12:55:50.891711159 [2023-08-12 12:55:50] peewee_migrate INFO : There is nothing to migrate
2023-08-12 12:55:50.907958934 [2023-08-12 12:55:50] detector.coral INFO : Starting detection process: 1219
2023-08-12 12:55:50.908522129 [2023-08-12 12:55:50] frigate.app INFO : Output process started: 1220
2023-08-12 12:55:50.919196767 [2023-08-12 12:55:50] frigate.app INFO : Camera processor started for Wachtkamer: 1224
2023-08-12 12:55:50.919435392 [2023-08-12 12:55:50] frigate.app INFO : Camera processor started for Voordeur: 1226
2023-08-12 12:55:50.919639789 [2023-08-12 12:55:50] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as pci
2023-08-12 12:55:50.930232855 [2023-08-12 12:55:50] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found
2023-08-12 12:55:50.930998196 [2023-08-12 12:55:50] frigate.app INFO : Capture process started for Wachtkamer: 1228
2023-08-12 12:55:50.931273524 [2023-08-12 12:55:50] frigate.app INFO : Capture process started for Voordeur: 1242
2023-08-12 12:55:50.952136794 [2023-08-12 12:55:50] frigate.video ERROR : Wachtkamer: Unable to read frames from ffmpeg process.
2023-08-12 12:55:50.952435603 [2023-08-12 12:55:50] frigate.video ERROR : Wachtkamer: ffmpeg process is not running. exiting capture thread...
2023-08-12 12:56:10.972066608 [2023-08-12 12:56:10] watchdog.Wachtkamer ERROR : Ffmpeg process crashed unexpectedly for Wachtkamer.
2023-08-12 12:56:10.972198703 [2023-08-12 12:56:10] watchdog.Wachtkamer ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-12 12:56:10.972310803 [2023-08-12 12:56:10] ffmpeg.Wachtkamer.detect ERROR : [tcp @ 0x55c77368be40] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
2023-08-12 12:56:10.972409234 [2023-08-12 12:56:10] ffmpeg.Wachtkamer.detect ERROR : rtsp://127.0.0.1:8554/Wachtkamer_sub: Connection refused
2023-08-12 12:56:10.982788624 [2023-08-12 12:56:10] ffmpeg.Wachtkamer.record ERROR : [tcp @ 0x560ea6ca3e80] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
2023-08-12 12:56:10.982983403 [2023-08-12 12:56:10] ffmpeg.Wachtkamer.record ERROR : rtsp://127.0.0.1:8554/Wachtkamer: Connection refused
2023-08-12 12:56:10.983106905 [2023-08-12 12:56:10] watchdog.Wachtkamer INFO : Terminating the existing ffmpeg process...
2023-08-12 12:56:10.983148995 [2023-08-12 12:56:10] watchdog.Wachtkamer INFO : Waiting for ffmpeg to exit gracefully...
This is the Go2RTC tab log
2023-08-12 12:55:49.722825968 [INFO] Preparing go2rtc config...
2023-08-12 12:55:49.946316155 [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2023-08-12 12:55:50.005495890 [INFO] The go2rtc service exited with code 1 (by signal 0)
2023-08-12 12:55:51.011544585 [INFO] Preparing go2rtc config...
2023-08-12 12:55:51.254359192 [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2023-08-12 12:55:51.281111788 [INFO] The go2rtc service exited with code 1 (by signal 0)
Now let's comment the audio line out:
go2rtc:
log:
level: debug #info default level
api: trace
exec: debug
ngrok: info
rtsp: info
streams: info
webrtc: info
streams:
Wachtkamer:
- rtsp://user:passwd@192.168.4.33:554/h264Preview_01_main
Wachtkamer_sub:
- rtsp://user:passwd@192.168.4.33:554/h264Preview_01_sub
#voordeuraudio: exec:ffmpeg -f mulaw -ar 8000 -i http://user:passwd@192.168.1.31/bha-api/audio-receive.cgi -f rtsp {output}
#Poortjeaudio: exec:ffmpeg -f mulaw -ar 8000 -i http://user:passwd@192.168.1.32/bha-api/audio-receive.cgi -f rtsp {output}
#voordeuraudio: exec:ffmpeg -f mulaw -ar 8000 -i http://user:passwd@192.168.1.31/axis-cgi/audio/receive.cgi -f rtsp {output}
Voordeur:
- rtsp://guser:passwd@192.168.1.31/mpeg/media.amp
- ffmpeg:voordooraudio
webrtc:
candidates:
- stun:8555
This is now the Frigate tab log..
2023-08-12 13:10:25.572046112 [INFO] Starting Frigate...
2023-08-12 13:10:26.680368645 [2023-08-12 13:10:26] frigate.app INFO : Starting Frigate (0.12.1-367d724)
2023-08-12 13:10:26.732020194 [2023-08-12 13:10:26] peewee_migrate INFO : Starting migrations
2023-08-12 13:10:26.737756590 [2023-08-12 13:10:26] peewee_migrate INFO : There is nothing to migrate
2023-08-12 13:10:26.754832991 [2023-08-12 13:10:26] detector.coral INFO : Starting detection process: 1224
2023-08-12 13:10:26.754956068 [2023-08-12 13:10:26] frigate.app INFO : Output process started: 1225
2023-08-12 13:10:26.759199069 [2023-08-12 13:10:26] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as pci
2023-08-12 13:10:26.759962343 [2023-08-12 13:10:26] frigate.app INFO : Camera processor started for Wachtkamer: 1230
2023-08-12 13:10:26.765357607 [2023-08-12 13:10:26] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found
2023-08-12 13:10:26.773679043 [2023-08-12 13:10:26] frigate.app INFO : Camera processor started for Voordeur: 1242
2023-08-12 13:10:26.773863396 [2023-08-12 13:10:26] frigate.app INFO : Capture process started for Wachtkamer: 1243
2023-08-12 13:10:26.773880062 [2023-08-12 13:10:26] frigate.app INFO : Capture process started for Voordeur: 1247
This is now the Go2rtc tqb log
023-08-12 13:10:25.565353321 [INFO] Preparing go2rtc config...
2023-08-12 13:10:25.784404033 [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2023-08-12 13:10:25.805754496 [WARN] Using go2rtc binary from '/config/go2rtc' instead of the embedded one
2023-08-12 13:10:25.805760106 [INFO] Starting go2rtc...
2023-08-12 13:10:25.938337570 13:10:25.938 INF go2rtc version 1.6.2 linux/amd64
2023-08-12 13:10:25.938483087 13:10:25.938 TRC [api] register path path=/
2023-08-12 13:10:25.938486166 13:10:25.938 TRC [api] register path path=/api
2023-08-12 13:10:25.938487836 13:10:25.938 TRC [api] register path path=/api/config
2023-08-12 13:10:25.938508535 13:10:25.938 TRC [api] register path path=/api/exit
2023-08-12 13:10:25.938863747 13:10:25.938 INF [api] listen addr=0.0.0.0:1984
2023-08-12 13:10:25.939037800 13:10:25.938 TRC [api] register path path=/api/ws
2023-08-12 13:10:25.939303613 13:10:25.939 TRC [api] register path path=/api/streams
2023-08-12 13:10:25.939480007 13:10:25.939 INF [rtsp] listen addr=0.0.0.0:8554
2023-08-12 13:10:25.939735700 13:10:25.939 INF [webrtc] listen addr=0.0.0.0:8555/tcp
2023-08-12 13:10:25.939751316 13:10:25.939 TRC [api] register path path=/api/webrtc
2023-08-12 13:10:25.939785991 13:10:25.939 TRC [api] register path path=/api/frame.mp4
2023-08-12 13:10:25.939795174 13:10:25.939 TRC [api] register path path=/api/stream.mp4
2023-08-12 13:10:25.939839100 13:10:25.939 TRC [api] register path path=/api/stream.m3u8
2023-08-12 13:10:25.939841294 13:10:25.939 TRC [api] register path path=/api/hls/playlist.m3u8
2023-08-12 13:10:25.939852004 13:10:25.939 TRC [api] register path path=/api/hls/segment.ts
2023-08-12 13:10:25.939884588 13:10:25.939 TRC [api] register path path=/api/hls/init.mp4
2023-08-12 13:10:25.939886710 13:10:25.939 TRC [api] register path path=/api/hls/segment.m4s
2023-08-12 13:10:25.939906972 13:10:25.939 TRC [api] register path path=/api/frame.jpeg
2023-08-12 13:10:25.939916656 13:10:25.939 TRC [api] register path path=/api/stream.mjpeg
2023-08-12 13:10:25.940107222 13:10:25.940 TRC [api] register path path=/static
2023-08-12 13:10:25.940110359 13:10:25.940 TRC [api] register path path=/streams
2023-08-12 13:10:25.940111998 13:10:25.940 TRC [api] register path path=/stream/
2023-08-12 13:10:25.940237404 13:10:25.940 DBG [hass] can't import config: open .storage/core.config_entries: no such file or directory
2023-08-12 13:10:25.940240689 13:10:25.940 TRC [api] register path path=/api/hass
2023-08-12 13:10:25.940242337 13:10:25.940 TRC [api] register path path=/onvif/
2023-08-12 13:10:25.940280065 13:10:25.940 TRC [api] register path path=/api/onvif
2023-08-12 13:10:25.940452637 13:10:25.940 TRC [api] register path path=/api/webtorrent
2023-08-12 13:10:25.940455788 13:10:25.940 TRC [api] register path path=/api/stream.flv
2023-08-12 13:10:25.940556470 13:10:25.940 TRC [api] register path path=/api/ffmpeg/devices
2023-08-12 13:10:25.940597091 13:10:25.940 TRC [api] register path path=/api/ffmpeg/hardware
2023-08-12 13:10:25.940624332 13:10:25.940 TRC [api] register path path=/api/dvrip
2023-08-12 13:10:25.940651887 13:10:25.940 TRC [api] register path path=/api/stream.ts
2023-08-12 13:10:25.940702566 13:10:25.940 TRC [api] register path path=/api/roborock
2023-08-12 13:10:25.940704476 13:10:25.940 TRC [api] register path path=/api/homekit
2023-08-12 13:10:25.940716034 13:10:25.940 TRC [api] register path path=/api/nest
2023-08-12 13:10:25.940945251 13:10:25.940 INF [srtp] listen addr=0.0.0.0:8443
2023-08-12 13:10:25.940979849 13:10:25.940 TRC [api] register path path=/api/stack
2023-08-12 13:10:35.572505163 [INFO] Starting go2rtc healthcheck service...
2023-08-12 13:11:05.584039814 13:11:05.583 TRC [api] GET /api/streams 127.0.0.1:60504
2023-08-12 13:11:35.596782642 13:11:35.596 TRC [api] GET /api/streams 127.0.0.1:53542
2023-08-12 13:12:05.609802728 13:12:05.609 TRC [api] GET /api/streams 127.0.0.1:39384
2023-08-12 13:12:35.622790069 13:12:35.622 TRC [api] GET /api/streams 127.0.0.1:52072
2023-08-12 13:13:05.635251109 13:13:05.635 TRC [api] GET /api/streams 127.0.0.1:47364
2023-08-12 13:13:35.647194053 13:13:35.646 TRC [api] GET /api/streams 127.0.0.1:41908
2023-08-12 13:14:05.659521121 13:14:05.659 TRC [api] GET /api/streams 127.0.0.1:36066
2023-08-12 13:14:35.672024954 13:14:35.671 TRC [api] GET /api/streams 127.0.0.1:34256
2023-08-12 13:15:05.685725633 13:15:05.685 TRC [api] GET /api/streams 127.0.0.1:33364
ah yes that is the one exception, and it is covered in the docs. You must use double {{ }}
because single {}
is used for password injecting
https://docs.frigate.video/configuration/restream#advanced-restream-configurations
Hi Nicolas,
Thanks for pointing that out. Indeed the double {{output}} curly brackets where needed. It works now..
Kind regards Guy
On Sat, Aug 12, 2023 at 3:26 PM Nicolas Mowen @.***> wrote:
ah yes that is the one exception, and it is covered in the docs. You must use double {{ }} because single {} is used for password injecting
https://docs.frigate.video/configuration/restream#advanced-restream-configurations
— Reply to this email directly, view it on GitHub https://github.com/blakeblackshear/frigate/issues/7411#issuecomment-1675914387, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXGOAJPFXGDASXCJ4NSQM3XU577JANCNFSM6AAAAAA3GYLEZ4 . You are receiving this because you authored the thread.Message ID: @.***>
Describe the problem you are having
Hi There,
I changed go2rtc from 1.2.0 to 1.6.2 When I choose Doorbird D1101V camera with the configuration below all camera's crashes in ffmpeg and go2rtc . When I comment out the doorbirdaudio camera from config file ffmpeg and go2rtc works but no sound on doorbirdaudio and thus the Voordeur. I then changed the config in the http://192.168.1.39:5000/live/webrtc/ and enabled the doorbirdaudio I know have sound. How to make this persistent in the frigate config file...
Version
Frigate 0.12.1-367d724
Frigate config file
Relevant log output
Frigate stats
Operating system
Proxmox
Install method
Docker Compose
Coral version
PCIe
Any other information that may be helpful
No response