Good day,
I have tapo cam, it is working fine with pure go2rtc with go2rtc.yml, I can do 2 way audio without any problems… but in Advanced Camera Card (new frigate card) I got error if I add : live_provider: go2rtc
code:
type: custom:advanced-camera-card
cameras:
camera_entity: camera.cam2
live_provider: go2rtc
I also added:
frigate:
camera_name: cam2
got same thing…
I dont know where is the problem if someone can help…
Thank you
crzynik
(Nicolas Mowen)
April 22, 2025, 1:46pm
2
you haven’t shown your frigate config
mqtt:
host: xxxxxxxxxxx
port: 1883
topic_prefix: frigate2
client_id: frigate2
user: xxxxxxxxxxx
password: xxxxxxxxxxx
stats_interval: 60
database:
path: /config/frigate.db
go2rtc:
streams:
cam2:
-ffmpeg:rtsp://usernsme:[email protected] :554/stream1#video=copy#audio=aac#audio=opus
- tapo://admin:[email protected]
webrtc:
candidates:
- xx.xxx.x.xx:8555
- stun:8555
detectors:
cpu1:
type: cpu
cameras:
cam2:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/cam2?video=copy&audio=aac
input_args: preset-rtsp-restream
roles:
- record
- detect
live:
stream_name: cam2
detect:
width: 800 #2304
height: 480 #1296
objects:
track:
- person
filters:
person:
threshold: 0.7
snapshots:
enabled: true
timestamp: false
bounding_box: true
retain:
default: 1
record:
enabled: true
retain:
days: 0
alerts:
retain:
days: 1
pre_capture: 3
post_capture: 3
detections:
retain:
days: 1
pre_capture: 3
post_capture: 3
motion:
mask: 0.806,0.174,0.644,0.162,0,0.148,0,0,1,0,1,0.425,1,0.636,0.96,0.265
Actually I am running Home assistant & Frigate on Synology VM, and this is Frigate log :
s6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service log-prepare: starting
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service certsync-log: starting
s6-rc: info: service nginx-log successfully started
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service frigate-log successfully started
s6-rc: info: service certsync-log successfully started
s6-rc: info: service go2rtc successfully started
s6-rc: info: service go2rtc-healthcheck: starting
s6-rc: info: service frigate: starting
2025-04-23 10:40:02.829068498 [INFO] Preparing new go2rtc config...
s6-rc: info: service go2rtc-healthcheck successfully started
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
2025-04-23 10:40:02.850350661 [INFO] Preparing Frigate...
2025-04-23 10:40:02.858013774 [INFO] Starting NGINX...
2025-04-23 10:40:02.887488005 [INFO] Got IP address from supervisor: 10.179.1.34
2025-04-23 10:40:02.924366858 [INFO] Got WebRTC port from supervisor: 8555
2025-04-23 10:40:05.128811618 [INFO] Starting Frigate...
2025-04-23 10:40:06.332785535 [INFO] No TLS certificate found. Generating a self signed certificate...
2025-04-23 10:40:07.718787611 [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2025-04-23 10:40:07.882585485 [INFO] Starting go2rtc...
2025-04-23 10:40:08.026888622 13:40:08.026 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
2025-04-23 10:40:08.027089984 13:40:08.027 INF config path=/dev/shm/go2rtc.yaml
2025-04-23 10:40:08.028340906 13:40:08.028 INF [api] listen addr=:1984
2025-04-23 10:40:08.035643926 13:40:08.031 INF [rtsp] listen addr=:8554
2025-04-23 10:40:08.035647226 13:40:08.032 INF [webrtc] listen addr=:8555
s6-rc: info: service nginx successfully started
s6-rc: info: service certsync: starting
2025-04-23 10:40:08.858036019 [INFO] Starting certsync...
s6-rc: info: service certsync successfully started
s6-rc: info: service legacy-services: starting
2025-04-23 10:40:08.970954678 127.0.0.1 - - [23/Apr/2025:13:40:08 +0300] "" 400 0 "-" "-" "-"
s6-rc: info: service legacy-services successfully started
2025-04-23 10:40:12.327089354 2025/04/23 13:40:12 [error] 186#186: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "127.0.0.1:5000"
2025-04-23 10:40:12.327121514 2025/04/23 13:40:12 [error] 186#186: *2 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
2025-04-23 10:40:12.853755403 [INFO] Starting go2rtc healthcheck service...
2025-04-23 10:40:17.384955996 2025/04/23 13:40:17 [error] 190#190: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "127.0.0.1:5000"
2025-04-23 10:40:17.384961296 2025/04/23 13:40:17 [error] 190#190: *4 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
2025-04-23 10:40:18.939458097 [2025-04-23 13:40:18] frigate.util.config INFO : Checking if frigate config needs migration...
2025-04-23 10:40:18.950874236 [2025-04-23 13:40:18] frigate.util.config INFO : copying config as backup...
2025-04-23 10:40:18.952214179 [2025-04-23 13:40:18] frigate.util.config INFO : Migrating frigate config from 0.13 to 0.14...
2025-04-23 10:40:18.958454748 [2025-04-23 13:40:18] frigate.util.config INFO : Migrating export file names...
2025-04-23 10:40:18.972446323 [2025-04-23 13:40:18] frigate.util.config INFO : Migrating frigate config from 0.14 to 0.15-0...
2025-04-23 10:40:18.979782042 [2025-04-23 13:40:18] frigate.util.config INFO : Migrating frigate config from 0.15-0 to 0.15-1...
2025-04-23 10:40:18.997486481 [2025-04-23 13:40:18] frigate.util.config INFO : Finished frigate config migration...
2025-04-23 10:40:19.056940219 [2025-04-23 13:40:19] frigate.util.services WARNING : Did not detect hwaccel, using a GPU for accelerated video decoding is highly recommended
2025-04-23 10:40:21.083669029 [2025-04-23 13:40:21] frigate.app INFO : Starting Frigate (0.15.0-6cb5cfb)
2025-04-23 10:40:21.084666238 [2025-04-23 13:40:21] frigate.app INFO : Creating directory: /tmp/cache
2025-04-23 10:40:21.095523751 [2025-04-23 13:40:21] peewee_migrate.logs INFO : Starting migrations
2025-04-23 10:40:21.096023127 [2025-04-23 13:40:21] peewee_migrate.logs INFO : There is nothing to migrate
2025-04-23 10:40:21.127180894 [2025-04-23 13:40:21] frigate.app INFO : Recording process started: 317
2025-04-23 10:40:21.131441845 [2025-04-23 13:40:21] frigate.app INFO : Review process started: 326
2025-04-23 10:40:21.134329772 [2025-04-23 13:40:21] frigate.app INFO : go2rtc process pid: 105
2025-04-23 10:40:21.159247140 [2025-04-23 13:40:21] detector.cpu1 INFO : Starting detection process: 333
2025-04-23 10:40:21.163603932 [2025-04-23 13:40:21] frigate.detectors WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2025-04-23 10:40:21.199378413 [2025-04-23 13:40:21] frigate.app INFO : Output process started: 349
2025-04-23 10:40:21.939973505 [2025-04-23 13:40:21] frigate.app INFO : Camera processor started for cam2: 377
2025-04-23 10:40:21.957450361 [2025-04-23 13:40:21] frigate.app INFO : Capture process started for cam2: 381
2025-04-23 10:40:22.424335818 2025/04/23 13:40:22 [error] 186#186: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "127.0.0.1:5000"
2025-04-23 10:40:22.424340058 2025/04/23 13:40:22 [error] 186#186: *6 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
2025-04-23 10:40:26.009830418 [2025-04-23 13:40:26] frigate.api.fastapi_app INFO : Starting FastAPI app
2025-04-23 10:40:26.231756538 [2025-04-23 13:40:26] frigate.api.fastapi_app INFO : FastAPI started