Hi
I am trying your setup. I am running frigate in docker on a Synology nas. I have them same esp32 cam set up as you in Home Assistant.
My frigate config is
cameras:
kamera2:
snapshots:
enabled: true
ffmpeg:
inputs:
- path: http://10.17.17.239:8080
roles:
- detect
- record
input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -c:v mjpeg
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an
rtmp: -c:v libx264 -an -f flv
rtmp:
enabled: false
detect:
width: 800
height: 600
fps: 3
record:
enabled: true
retain_days: 0
events:
retain:
default: 5
but I can´t start my frigate.
I get this error
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
2023-09-01 19:52:18.448480633 [INFO] Starting NGINX...
2023-09-01 19:52:18.455846616 [INFO] Preparing go2rtc config...
2023-09-01 19:52:18.471353122 [INFO] Starting Frigate...
s6-rc: info: service legacy-services successfully started
2023-09-01 19:52:18.949695731 [INFO] Starting go2rtc...
2023-09-01 19:52:19.115608882 19:52:19.115 INF go2rtc version 1.6.2 linux/amd64
2023-09-01 19:52:19.116123538 19:52:19.116 INF [api] listen addr=0.0.0.0:1984
2023-09-01 19:52:19.116999360 19:52:19.116 INF [rtsp] listen addr=0.0.0.0:8554
2023-09-01 19:52:19.117785654 19:52:19.117 INF [webrtc] listen addr=0.0.0.0:8555/tcp
2023-09-01 19:52:19.119127189 19:52:19.119 INF [srtp] listen addr=0.0.0.0:8443
2023-09-01 19:52:21.662604842 [2023-09-01 19:52:21] frigate.app INFO : Starting Frigate (0.13.0-6801981)
2023-09-01 19:52:21.681524375 *************************************************************
2023-09-01 19:52:21.681930439 *************************************************************
2023-09-01 19:52:21.681989564 *** Your config file is not valid! ***
2023-09-01 19:52:21.682028118 *** Please check the docs at ***
2023-09-01 19:52:21.682075603 *** https://docs.frigate.video/configuration/index ***
2023-09-01 19:52:21.682132156 *************************************************************
2023-09-01 19:52:21.682167289 *************************************************************
2023-09-01 19:52:21.682221732 *** Config Validation Errors ***
2023-09-01 19:52:21.682258899 *************************************************************
2023-09-01 19:52:21.682521767 1 validation error for FrigateConfig
2023-09-01 19:52:21.682525004 cameras -> kamera2 -> record -> retain_days
2023-09-01 19:52:21.683121311 extra fields not permitted (type=value_error.extra)
2023-09-01 19:52:21.684749068 Traceback (most recent call last):
2023-09-01 19:52:21.684756489 File "/opt/frigate/frigate/app.py", line 564, in start
2023-09-01 19:52:21.684773147 self.init_config()
2023-09-01 19:52:21.684776741 File "/opt/frigate/frigate/app.py", line 108, in init_config
2023-09-01 19:52:21.684779123 user_config = FrigateConfig.parse_file(config_file)
2023-09-01 19:52:21.684781398 File "/opt/frigate/frigate/config.py", line 1228, in parse_file
2023-09-01 19:52:21.684799586 return cls.parse_obj(config)
2023-09-01 19:52:21.684801779 File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
2023-09-01 19:52:21.684804429 File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
2023-09-01 19:52:21.684806468 pydantic.error_wrappers.ValidationError: 1 validation error for FrigateConfig
2023-09-01 19:52:21.684808421 cameras -> kamera2 -> record -> retain_days
2023-09-01 19:52:21.684810243 extra fields not permitted (type=value_error.extra)
2023-09-01 19:52:21.685778234
2023-09-01 19:52:21.685859242 *************************************************************
2023-09-01 19:52:21.686061661 *** End Config Validation Errors ***
2023-09-01 19:52:21.686112366 *************************************************************
2023-09-01 19:52:22.429902233 2023/09/01 19:52:22 [error] 137#137: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "10.17.17.17:5010"
2023-09-01 19:52:22.430014375 172.17.0.1 - - [01/Sep/2023:19:52:22 +0000] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.8.3 aiohttp/3.8.5 Python/3.11" "-"
2023-09-01 19:52:23.116812927 [INFO] Service Frigate exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
s6-rc: info: service go2rtc-healthcheck: stopping
2023-09-01 19:52:23.135128685 [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
s6-rc: info: service go2rtc-healthcheck successfully stopped
2023-09-01 19:52:23.150057718 [INFO] Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service nginx-log: stopping
s6-rc: info: service frigate: stopping
s6-rc: info: service frigate successfully stopped
s6-rc: info: service go2rtc: stopping
s6-rc: info: service frigate-log: stopping
s6-rc: info: service nginx-log successfully stopped
2023-09-01 19:52:23.160304947 exit with signal: terminated
s6-rc: info: service frigate-log successfully stopped
2023-09-01 19:52:23.167952631 [INFO] The go2rtc service exited with code 0 (by signal 0)
s6-rc: info: service go2rtc successfully stopped
s6-rc: info: service go2rtc-log: stopping
s6-rc: info: service go2rtc-log successfully stopped
s6-rc: info: service log-prepare: stopping
s6-rc: info: service s6rc-fdholder: stopping
s6-rc: info: service s6rc-fdholder successfully stopped
s6-rc: info: service log-prepare successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
If I have this setup, the picture comes and goes.
When it is a picture (just a few frames /secund), it is very delay.
kamera2:
snapshots:
enabled: true
ffmpeg:
inputs:
- path: http://10.17.17.239:8080
roles:
- detect
- record
input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -c:v mjpeg
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an
rtmp: -c:v libx264 -an -f flv
rtmp:
enabled: false
detect:
width: 800
height: 600
fps: 3
# record:
# enabled: true
# retain_days: 0
# events:
# retain:
# default: 5
On the overview frigate cameras
No frame have been received, check error log
log
2023-09-01 19:58:18.405724558 [INFO] Preparing Frigate...
2023-09-01 19:58:18.444797210 [INFO] Starting Frigate...
2023-09-01 19:58:21.640960775 [2023-09-01 19:58:21] frigate.app INFO : Starting Frigate (0.13.0-6801981)
2023-09-01 19:58:21.703655335 [2023-09-01 19:58:21] peewee_migrate.logs INFO : Starting migrations
2023-09-01 19:58:21.713839747 [2023-09-01 19:58:21] peewee_migrate.logs INFO : There is nothing to migrate
2023-09-01 19:58:21.911033476 [2023-09-01 19:58:21] frigate.app INFO : Recording process started: 223
2023-09-01 19:58:21.916387783 [2023-09-01 19:58:21] frigate.app INFO : go2rtc process pid: 100
2023-09-01 19:58:21.967923079 [2023-09-01 19:58:21] frigate.app INFO : Output process started: 234
2023-09-01 19:58:21.989446898 [2023-09-01 19:58:21] detector.cpu INFO : Starting detection process: 233
2023-09-01 19:58:21.990147173 [2023-09-01 19:58:21] frigate.detectors WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2023-09-01 19:58:21.997940084 [2023-09-01 19:58:21] frigate.app INFO : Camera processor started for hallen: 238
2023-09-01 19:58:22.009930684 [2023-09-01 19:58:22] frigate.app INFO : Camera processor started for kamera2: 240
2023-09-01 19:58:22.024535026 [2023-09-01 19:58:22] frigate.app INFO : Capture process started for hallen: 242
2023-09-01 19:58:22.032814735 [2023-09-01 19:58:22] frigate.app INFO : Capture process started for kamera2: 243