Closed ghost closed 2 years ago
Sounds like a whitespace issue. Are you using an editor that ensures you are consistently using tabs or spaces?
Sounds like a whitespace issue. Are you using an editor that ensures you are consistently using tabs or spaces?
Yes, I'm using the file editor add-on. I believe my above arguments are not in the correct nest order, as it seems the rules for that may have changed from my previous build? I can't quite seem to figure our why.
@lucifudge This part here is wrong:
detect:
width: 1024
height: 768
fps: 5
snapshots:
enabled: true
bounding_box: true
it should be:
detect:
width: 1024
height: 768
fps: 5
snapshots:
enabled: true
bounding_box: true
Adjusted that, but still not working.
The 'ffmpeg' area of my config file reported not valid per logs. Attempting to access the web UI doesn't work/crashes Home Assistant.
Frigate Log:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2022-01-19 21:20:10] frigate.app INFO : Starting Frigate (0.9.4-26ae608)
*************************************************************
*************************************************************
*** Your config file is not valid! ***
*** Please check the docs at ***
*** https://docs.frigate.video/configuration/index ***
*************************************************************
*************************************************************
*** Config Validation Errors ***
*************************************************************
'ffmpeg'
*************************************************************
*** End Config Validation Errors ***
*************************************************************
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
frigate.yml
detectors:
coral:
type: edgetpu
device: usb
mqtt:
host: 192.168.1.30
port: 1883
topic_prefix: frigate
client_id: frigate
user: mqtt
password: password
stats_interval: 60
cameras:
lorexobs:
ffmpeg:
hwaccel_args:
- -c:v
- h264_v4l2m2m
input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000
inputs:
- path: rtsp://viewer:password@192.168.1.96:554/live
roles:
- detect
- rtmp
objects:
track:
- person
- car
- truck
- cat
detect:
width: 1024
height: 768
fps: 5
snapshots:
enabled: true
bounding_box: true
zones:
backyard:
coordinates: 346,506,680,505,679,269,347,264
backyard_2:
coordinates: 689,506,1024,506,1024,267,686,266
driveway:
coordinates: 684,251,1024,253,1024,0,686,0
front_door:
coordinates: 0,768,341,768,340,528,0,526
garage:
coordinates: 346,250,679,252,679,0,347,0
patio:
coordinates: 0,506,342,506,340,263,0,262
side_door:
coordinates: 344,0,344,251,0,247,0,0
motion:
mask:
- 264,35,275,50,258,56,87,57,85,40,91,23,92,48,57,48,58,25
- 605,0,681,0,682,32,682,66,641,78,567,56,343,58,341,0
- 686,94,1024,84,1024,0,684,0
- 0,334,338,319,344,265,0,264
- 610,290,603,306,434,307,429,292
- 688,509,770,393,883,345,997,268,982,512,1024,508,1024,320,1024,165,1024,260,921,263,689,264
- 95,547,264,546,269,562,95,561
- 340,524,340,768,255,768,303,534
- 39,628,85,622,93,588,43,596
- 689,365,685,324,680,268,592,257,552,255,507,265,636,321,634,368,575,418,578,501,683,502
- 0,267,123,278,74,74,96,46,103,0,56,0,29,0,0,0,0,0
- 347,768,1024,768,1024,514,346,512
- 149,398,209,385,211,331,140,328
- 206,497,268,499,286,460,222,455
@lucifudge It looks like your detect
, snapshots
, zones
all need 2 more spaces. They only have 2 spaces of indent which puts them at the same level of camera (so it is probably treating them like cameras and not finding ffmpeg
.
Describe the problem you are having
Upgraded from very old Frigate build, all attempts to correct old frigate.yaml with new yaml scheme fail.
Version
2.3
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
No response
Operating system
HassOS
Install method
HassOS Addon
Coral version
USB
Network connection
Wired
Camera make and model
OBS stream
Any other information that may be helpful
Previously working config: