tmsteinhardt

Frigate Config

Mar 3rd, 2025
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.26 KB | None | 0 0
  1. mqtt:
  2. host: ip-address
  3. port: 1883
  4. topic_prefix: frigate
  5. client_id: frigate
  6. user: user
  7. password: password
  8. stats_interval: 60
  9. ##############################################################################################
  10. detectors:
  11. coral:
  12. type: edgetpu
  13. device: usb
  14. ##############################################################################################
  15. birdseye:
  16. enabled: true
  17. mode: motion
  18. #############################################################################################
  19. objects:
  20. track:
  21. - person
  22. - dog
  23. - car
  24. - bus
  25. - boat
  26. - cat
  27. - motorcycle
  28. - bicycle
  29. - bird
  30. - amazon
  31. - ups
  32. - fedex
  33. - package
  34. - deer
  35. filters:
  36. person:
  37. min_score: 0.76
  38. dog:
  39. min_score: 0.7
  40. car:
  41. min_score: 0.7
  42. cat:
  43. min_score: 0.7
  44. bird:
  45. min_score: 0.8
  46. motorcycle:
  47. min_score: 0.7
  48. package:
  49. min_score: 0.5
  50. deer:
  51. min_score: 0.6
  52. detect:
  53. stationary:
  54. interval: 50
  55. threshold: 50
  56. ############################################################################################
  57. record:
  58. enabled: true
  59. retain:
  60. days: 14
  61. mode: all
  62. alerts:
  63. retain:
  64. days: 21
  65. pre_capture: 30
  66. post_capture: 30
  67. detections:
  68. retain:
  69. days: 21
  70. pre_capture: 30
  71. post_capture: 30
  72. snapshots:
  73. enabled: true
  74. retain:
  75. default: 30
  76. ############################################################################################
  77. go2rtc:
  78. webrtc:
  79. listen: :8555
  80. candidates:
  81. - ip-address:8555
  82. - stun:8555
  83. streams:
  84. front-doorbell:
  85. - rtsp://user:password@ip-address:554/
  86. - ffmpeg:https://ip-address/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=user&password=password#audio=opus#audio=volume
  87. front-doorbell-sub:
  88. - rtsp://user:password@ip-address:554/h264Preview_01_sub
  89. - ffmpeg:https://ip-addres/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=user&password=password#audio=opus#audio=volume
  90. service-door-cam:
  91. - rtsp://user:password@ip-address:554/cam/realmonitor?channel=1&subtype=0&authbasic=64 ## HI RES STREAM ##
  92. service-door-cam-sub:
  93. - rtsp://user:password@ip-address:554/cam/realmonitor?channel=1&subtype=1&authbasic=64 ## LOW RES STREAM ##
  94. back-yard-cam:
  95. - rtsp://user:password@ip-address:554/cam/realmonitor?channel=1&subtype=0&authbasic=64 ## HI RES STREAM ##
  96. back-yard-cam-sub:
  97. - rtsp://user:password@ip-address:554/cam/realmonitor?channel=1&subtype=1&authbasic=64 ## LOW RES STREAM ##
  98. front-yard-cam:
  99. - rtsp://user:password@ip-address:554/cam/realmonitor?channel=1&subtype=0&authbasic=64 ## HI RES STREAM ##
  100. front-yard-cam-sub:
  101. - rtsp://user:password@ip-address:554/cam/realmonitor?channel=1&subtype=1&authbasic=64 ## LOW RES STREAM ##
  102. north-west-cam:
  103. - rtsp://user:password@ip-address:554/cam/realmonitor?channel=1&subtype=0&authbasic=64 ## HI RES STREAM ##
  104. north-west-cam-sub:
  105. - rtsp://user:password@ip-address:554/cam/realmonitor?channel=1&subtype=1&authbasic=64 ## LOW RES STREAM ##
  106. north-east-cam:
  107. - rtsp://user:password@ip-address:554/cam/realmonitor?channel=1&subtype=0&authbasic=64 ## HI RES STREAM ##
  108. north-east-cam-sub:
  109. - rtsp://user:password@ip-address:554/cam/realmonitor?channel=1&subtype=1&authbasic=64 ## LOW RES STREAM ##
  110. kitchen-cam:
  111. - rtsp://user:password@ip-address:554/cam/realmonitor?channel=1&subtype=0&authbasic=64 ## HI RES STREAM ##
  112. - ffmpeg:kitchen-cam#audio=aac
  113. kitchen-cam-sub:
  114. - rtsp://user:password@ip-address:554/cam/realmonitor?channel=1&subtype=1&authbasic=64 ## LOW RES STREAM ##
  115. - ffmpeg:kitchen-cam#audio=aac
  116. reo-cam:
  117. - rtsp://user:password@ip-address:554/cam/realmonitor?channel=1&subtype=0&authbasic=64 ## HI RES STREAM ##
  118. reo-cam-sub:
  119. - rtsp://user:password@ip-address:554/cam/realmonitor?channel=1&subtype=1&authbasic=64 ## LOW RES STREAM ##
  120. ffmpeg:
  121. bin: ffmpeg
  122. volume: -af "volume=30dB"
  123. ############################################################################################################
  124. cameras:
  125. front-doorbell:
  126. enabled: true
  127. ffmpeg:
  128. output_args:
  129. record: preset-record-generic-audio-aac
  130. inputs:
  131. - path: rtsp://127.0.0.1:8554/front-doorbell?video&audio=aac
  132. input_args: preset-rtsp-restream
  133. roles:
  134. - record
  135. - path: rtsp://127.0.0.1:8554/front-doorbell-sub?video=copy
  136. input_args: preset-rtsp-restream
  137. roles:
  138. - detect
  139. hwaccel_args: preset-vaapi
  140. onvif:
  141. host: ip-address
  142. port: 8000
  143. user: user
  144. password: password
  145. detect:
  146. height: 768
  147. width: 1024
  148. fps: 5
  149. motion:
  150. mask: 0.715,1,0.715,0.929,0.893,0.53,0.9,0.122,0.567,0.118,0.58,0,1,0,1,1
  151. threshold: 30
  152. contour_area: 10
  153. improve_contrast: true
  154. objects:
  155. mask: 0.276,0.335,0.448,0.327,0.452,0.621,0.289,0.633
  156. ###############################################################################################
  157. service-door-cam:
  158. enabled: true
  159. ffmpeg:
  160. hwaccel_args: preset-vaapi
  161. input_args: preset-rtsp-restream
  162. inputs:
  163. - path: rtsp://127.0.0.1:8554/service-door-cam-sub
  164. roles:
  165. - detect
  166. - path: rtsp://127.0.0.1:8554/service-door-cam
  167. roles:
  168. - record
  169. #live:
  170. #stream_name: service_door_cam_sub
  171. detect:
  172. height: 720
  173. width: 1280
  174. fps: 5
  175. motion:
  176. threshold: 30
  177. contour_area: 10
  178. improve_contrast: true
  179. mask: 0.68,0,0.685,0.111,1,0.127,1,0
  180. ###############################################################################################
  181. back-yard-cam:
  182. enabled: true
  183. ffmpeg:
  184. hwaccel_args: preset-vaapi
  185. input_args: preset-rtsp-restream
  186. inputs:
  187. - path: rtsp://127.0.0.1:8554/back-yard-cam-sub
  188. roles:
  189. - detect
  190. - path: rtsp://127.0.0.1:8554/back-yard-cam
  191. roles:
  192. - record
  193. #live:
  194. #stream_name: back_yard_cam_sub
  195. detect:
  196. height: 720
  197. width: 1280
  198. fps: 5
  199. motion:
  200. mask: 0.692,0,0.973,0,0.971,0.097,0.692,0.094
  201. threshold: 30
  202. contour_area: 10
  203. improve_contrast: true
  204. objects:
  205. filters:
  206. person:
  207. mask:
  208. - 0.392,0.175,0.521,0.186,0.531,0,0.428,-0.006
  209. - 0.596,0.395,0.972,0.493,0.979,0.169,0.645,0.05
  210. ###############################################################################################
  211. front-yard-cam:
  212. enabled: true
  213. ffmpeg:
  214. hwaccel_args: preset-vaapi
  215. input_args: preset-rtsp-restream
  216. inputs:
  217. - path: rtsp://127.0.0.1:8554/front-yard-cam-sub
  218. roles:
  219. - detect
  220. - path: rtsp://127.0.0.1:8554/front-yard-cam
  221. roles:
  222. - record
  223. #live:
  224. #stream_name: front_yard_cam_sub
  225. detect:
  226. height: 720
  227. width: 1280
  228. fps: 5
  229. motion:
  230. threshold: 30
  231. contour_area: 10
  232. improve_contrast: true
  233. mask: 0.699,0.107,0.694,0,0.983,0,0.977,0.105
  234. ###############################################################################################
  235. north-east-cam:
  236. enabled: true
  237. ffmpeg:
  238. hwaccel_args: preset-vaapi
  239. input_args: preset-rtsp-restream
  240. inputs:
  241. - path: rtsp://127.0.0.1:8554/north-east-cam-sub
  242. roles:
  243. - detect
  244. - path: rtsp://127.0.0.1:8554/north-east-cam
  245. roles:
  246. - record
  247. #live:
  248. #stream_name: north_east_cam_sub
  249. detect:
  250. height: 720
  251. width: 1280
  252. fps: 5
  253. motion:
  254. threshold: 30
  255. contour_area: 10
  256. improve_contrast: true
  257. mask: 0.686,0,0.688,0.112,1,0.122,1,0
  258. ###############################################################################################
  259. north-west-cam:
  260. enabled: true
  261. ffmpeg:
  262. hwaccel_args: preset-vaapi
  263. input_args: preset-rtsp-restream
  264. inputs:
  265. - path: rtsp://127.0.0.1:8554/north-west-cam-sub
  266. roles:
  267. - detect
  268. - path: rtsp://127.0.0.1:8554/north-west-cam
  269. roles:
  270. - record
  271. #live:
  272. #stream_name: north_west_cam_sub
  273. detect:
  274. height: 720
  275. width: 1280
  276. fps: 5
  277. motion:
  278. mask:
  279. - 0,0,1,0,1,0.107,0.75,0.104,0,0.437
  280. - 0.306,0.521,0.31,0.763,0.456,0.768,0.442,0.504
  281. threshold: 30
  282. contour_area: 10
  283. improve_contrast: true
  284. objects:
  285. filters:
  286. person:
  287. mask: 0.312,0.526,0.433,0.506,0.451,0.766,0.32,0.768
  288. ###############################################################################################
  289. kitchen-cam:
  290. enabled: true
  291. ffmpeg:
  292. output_args:
  293. record: preset-record-generic-audio-aac
  294. hwaccel_args: preset-vaapi
  295. input_args: preset-rtsp-restream
  296. inputs:
  297. - path: rtsp://127.0.0.1:8554/kitchen-cam-sub
  298. roles:
  299. - detect
  300. - path: rtsp://127.0.0.1:8554/kitchen-cam
  301. roles:
  302. - record
  303. #live:
  304. #stream_name: kitchen_cam_sub
  305. detect:
  306. height: 720
  307. width: 1280
  308. fps: 5
  309. motion:
  310. mask: 0.684,0,1,0,1,0.107,0.688,0.099
  311. threshold: 30
  312. contour_area: 10
  313. improve_contrast: true
  314. onvif:
  315. # Required: host of the camera being connected to.
  316. host: ip-address
  317. # Optional: ONVIF port for device (default: shown below).
  318. port: 80
  319. # Optional: username for login.
  320. # NOTE: Some devices require admin to access ONVIF.
  321. user: user
  322. # Optional: password for login.
  323. password: password
  324. # Optional: PTZ camera object autotracking. Keeps a moving object in
  325. # the center of the frame by automatically moving the PTZ camera.
  326. autotracking:
  327. # Optional: enable/disable object autotracking. (default: shown below)
  328. enabled: false
  329. # Optional: calibrate the camera on startup (default: shown below)
  330. # A calibration will move the PTZ in increments and measure the time it takes to move.
  331. # The results are used to help estimate the position of tracked objects after a camera move.
  332. # Frigate will update your config file automatically after a calibration with
  333. # a "movement_weights" entry for the camera. You should then set calibrate_on_startup to False.
  334. calibrate_on_startup: false
  335. # Optional: the mode to use for zooming in/out on objects during autotracking. (default: shown below)
  336. # Available options are: disabled, absolute, and relative
  337. # disabled - don't zoom in/out on autotracked objects, use pan/tilt only
  338. # absolute - use absolute zooming (supported by most PTZ capable cameras)
  339. # relative - use relative zooming (not supported on all PTZs, but makes concurrent pan/tilt/zoom movements)
  340. zooming: disabled
  341. # Optional: A value to change the behavior of zooming on autotracked objects. (default: shown below)
  342. # A lower value will keep more of the scene in view around a tracked object.
  343. # A higher value will zoom in more on a tracked object, but Frigate may lose tracking more quickly.
  344. # The value should be between 0.1 and 0.75
  345. #zoom_factor: 0.3
  346. # Optional: list of objects to track from labelmap.txt (default: shown below)
  347. #track:
  348. #- person
  349. # Required: Begin automatically tracking an object when it enters any of the listed zones.
  350. # required_zones:
  351. # - zone_name
  352. # Required: Name of ONVIF preset in camera's firmware to return to when tracking is over. (default: shown below)
  353. #return_preset: home
  354. # Optional: Seconds to delay before returning to preset. (default: shown below)
  355. #timeout: 10
  356. # Optional: Values generated automatically by a camera calibration. Do not modify these manually. (default: shown below)
  357. # movement_weights: []
  358. ###############################################################################################
  359. reo-cam:
  360. enabled: true
  361. ffmpeg:
  362. hwaccel_args: preset-vaapi
  363. input_args: preset-rtsp-restream
  364. inputs:
  365. - path: rtsp://127.0.0.1:8554/reo-cam-sub
  366. roles:
  367. - detect
  368. - path: rtsp://127.0.0.1:8554/reo-cam
  369. roles:
  370. - record
  371. #live:
  372. #stream_name: reo_cam_sub
  373. detect:
  374. height: 720
  375. width: 1280
  376. fps: 5
  377. motion:
  378. mask: 0.692,0,0.691,0.12,1,0.129,1,0
  379. threshold: 30
  380. contour_area: 10
  381. improve_contrast: true
  382. ###############################################################################################
  383. camera_groups:
  384. Outdoor:
  385. order: 1
  386. icon: LuTrees
  387. cameras:
  388. - birdseye
  389. - front-doorbell
  390. - back-yard-cam
  391. - front-yard-cam
  392. - north-east-cam
  393. - north-west-cam
  394. - service-door-cam
  395. Indoor:
  396. order: 2
  397. icon: LuWarehouse
  398. cameras:
  399. - birdseye
  400. - kitchen-cam
  401. - reo-cam
  402. semantic_search:
  403. enabled: true
  404. reindex: false
  405. model_size: small
  406. version: 0.15-1
  407.  
Advertisement
Add Comment
Please, Sign In to add comment