Guest User

FrigateNVR Config

a guest
Jun 17th, 2025
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.43 KB | None | 0 0
  1. mqtt:
  2. host: 192.168.0.147
  3. port: 1883
  4. user: frigate
  5. password: frigate
  6.  
  7. detectors:
  8. ov:
  9. type: openvino
  10. device: GPU
  11.  
  12. auth:
  13. enabled: true
  14. reset_admin_password: false
  15. failed_login_rate_limit: 1/second;5/minute;20/hour
  16. session_length: 2629746
  17. refresh_time: 2629746
  18.  
  19. tls:
  20. enabled: false
  21.  
  22. ffmpeg:
  23. hwaccel_args: preset-vaapi
  24. retry_interval: 10
  25.  
  26. detect:
  27. width: 1280
  28. height: 720
  29. fps: 5
  30.  
  31. enabled: true
  32. record:
  33. enabled: true
  34. retain:
  35. days: 7
  36. mode: all
  37. alerts:
  38. retain:
  39. days: 21
  40. detections:
  41. retain:
  42. days: 21
  43. snapshots:
  44. enabled: true
  45. timestamp: true
  46. bounding_box: true
  47. retain:
  48. default: 21
  49.  
  50. audio:
  51. enabled: true
  52. listen:
  53. - yell
  54. - bellow
  55. - whoop
  56. - crying
  57. - groan
  58. - grunt
  59. - gasp
  60. - pant
  61. - whispering
  62. - footsteps
  63. - cheering
  64. - crowd
  65. - dog
  66. - bark
  67. - growling
  68. - whimper_dog
  69. - hiss
  70. - caterwaul
  71. - car_alarm
  72. - police_car
  73. - ambulance
  74. - fire_engine
  75. - tire_squeal
  76. - knock
  77. - glass
  78. - chink
  79. - siren
  80. - civil_defense_siren
  81. - smoke_detector
  82. - fire_alarm
  83. - gunshot
  84. - breaking
  85. - smash
  86. - bang
  87. - explosion
  88. - hammer
  89. - jackhammer
  90. - sawing
  91.  
  92. objects:
  93. track:
  94. - person
  95. - face
  96. - car
  97. - dog
  98. - cat
  99. - bicycle
  100. - motorcycle
  101. - truck
  102. - license_plate
  103. - bird
  104. - package
  105. filters:
  106. person:
  107. min_score: .8
  108. threshold: .9
  109. face:
  110. min_score: .8
  111. threshold: .9
  112. car:
  113. min_score: .8
  114. threshold: .9
  115. dog:
  116. min_score: .8
  117. threshold: .9
  118. cat:
  119. min_score: .8
  120. threshold: .9
  121. bicycle:
  122. min_score: .8
  123. threshold: .9
  124. motorcycle:
  125. min_score: .8
  126. threshold: .9
  127. license_plate:
  128. min_score: .8
  129. threshold: .9
  130. bird:
  131. min_score: .8
  132. threshold: .9
  133. package:
  134. min_score: .8
  135. threshold: .9
  136.  
  137. go2rtc:
  138. streams:
  139. # lounge_room:
  140. # - ffmpeg:rtsp://192.168.30.105#video=copy#audio=aac#audio=opus
  141. # rear_living_room:
  142. # - ffmpeg:rtsp://192.168.30.106#video=copy#audio=aac#audio=opus
  143. front_shed_cam:
  144. - rtsp://192.168.40.108/ch01/0
  145. - ffmpeg:front_shed_cam#audio=aac#audio=opus
  146. front_shed_cam_sub:
  147. - rtsp://192.168.40.108/ch01/1
  148. - ffmpeg:front_shed_cam_sub#audio=aac#audio=opus
  149. # rear_shed_cam:
  150. # - ffmpeg:rtsp://192.168.30.110#video=copy#video=h264#hardware#audio=aac#audio=opus
  151. front_door:
  152. - rtsp://192.168.40.101/ch01/0
  153. - ffmpeg:front_door#audio=aac#audio=opus
  154. front_door_sub:
  155. - rtsp://192.168.40.101/ch01/1
  156. - ffmpeg:front_door_sub#audio=aac#audio=opus
  157. side_door:
  158. - rtsp://192.168.40.102/ch01/0
  159. - ffmpeg:side_door#audio=aac#audio=opus
  160. side_door_sub:
  161. - rtsp://192.168.40.102/ch01/1
  162. - ffmpeg:side_door_sub#audio=aac#audio=opus
  163. laundry_door:
  164. - rtsp://192.168.40.107/ch01/0
  165. - ffmpeg:laundry_door#audio=aac#audio=opus
  166. laundry_door_sub:
  167. - rtsp://192.168.40.107/ch01/1
  168. - ffmpeg:laundry_door_sub#audio=aac#audio=opus
  169. above_clothesline:
  170. - rtsp://192.168.40.104/ch01/0
  171. - ffmpeg:above_clothesline#audio=aac#audio=opus
  172. above_clothesline_sub:
  173. - rtsp://192.168.40.104/ch01/1
  174. - ffmpeg:above_clothesline_sub#audio=aac#audio=opus
  175. front_yard:
  176. - rtsp://192.168.40.105/ch01/0
  177. - ffmpeg:front_yard#audio=aac#audio=opus
  178. front_yard_sub:
  179. - rtsp://192.168.40.105/ch01/1
  180. - ffmpeg:front_yard_sub#audio=aac#audio=opus
  181. facing_shed:
  182. - rtsp://192.168.40.106/ch01/0
  183. - ffmpeg:facing_shed#audio=aac#audio=opus
  184. facing_shed_sub:
  185. - rtsp://192.168.40.106/ch01/1
  186. - ffmpeg:facing_shed_sub#audio=aac#audio=opus
  187. facing_trees:
  188. - rtsp://192.168.40.103/ch01/0
  189. - ffmpeg:facing_trees#audio=aac#audio=opus
  190. facing_trees_sub:
  191. - rtsp://192.168.40.103/ch01/1
  192. - ffmpeg:facing_trees_sub#audio=aac#audio=opus
  193. webrtc:
  194. candidates:
  195. - 192.168.0.149:8555
  196. - stun:8555
  197.  
  198. cameras:
  199. # lounge_room:
  200. # enabled: true
  201. # genai:
  202. # enabled: false
  203. # ffmpeg:
  204. # output_args:
  205. # record: preset-record-generic-audio-aac
  206. # inputs:
  207. # - path: rtsp://localhost:8554/lounge_room
  208. # input_args: preset-rtsp-restream
  209. # roles:
  210. # - record
  211. # - audio
  212. # - detect
  213. # live:
  214. # streams:
  215. # lounge_room: lounge_room
  216. # motion:
  217. # mask:
  218. # - 0.366,0.942,0.366,0.975,0.624,0.976,0.623,0.943
  219. # - 0.244,0.073,0.243,0.162,0.455,0.159,0.456,0.073
  220. # - 0.486,0.088,0.498,0.268,0.657,0.33,0.653,0.108
  221. # objects:
  222. # mask: 0.487,0.085,0.656,0.106,0.66,0.328,0.497,0.267
  223. # notifications:
  224. # enabled: false
  225. # rear_living_room:
  226. # enabled: true
  227. # genai:
  228. # enabled: false
  229. # ffmpeg:
  230. # output_args:
  231. # record: preset-record-generic-audio-aac
  232. # inputs:
  233. # - path: rtsp://localhost:8554/rear_living_room
  234. # input_args: preset-rtsp-restream
  235. # roles:
  236. # - record
  237. # - audio
  238. # - detect
  239. # live:
  240. # streams:
  241. # rear_living_room: rear_living_room
  242. # motion:
  243. # mask: 0.367,0.941,0.367,0.975,0.621,0.976,0.622,0.943
  244. # notifications:
  245. # enabled: false
  246. front_shed_cam:
  247. enabled: true
  248. genai:
  249. enabled: true
  250. objects:
  251. - person
  252. - car
  253. ffmpeg:
  254. output_args:
  255. record: preset-record-generic-audio-aac
  256. inputs:
  257. - path: rtsp://localhost:8554/front_shed_cam
  258. input_args: preset-rtsp-restream
  259. roles:
  260. - record
  261. - path: rtsp://localhost:8554/front_shed_cam_sub
  262. input_args: preset-rtsp-restream
  263. roles:
  264. - audio
  265. - detect
  266. motion:
  267. mask:
  268. 0.122,0,1,0,1,0.267,0.841,0.156,0.835,0.331,0.7,0.212,0.529,0.22,0.342,0.233,0.318,0.166,0.127,0.162
  269. threshold: 30
  270. contour_area: 10
  271. improve_contrast: true
  272. objects:
  273. filters:
  274. car:
  275. mask:
  276. - 0.122,0,1,0,1,0.267,0.841,0.156,0.835,0.331,0.7,0.212,0.529,0.22,0.342,0.233,0.318,0.166,0.127,0.162
  277. - 0,0.529,0.162,0.418,0.408,0.435,0.651,0.448,0.854,0.506,0.943,0.599,0.984,0.675,0.952,1,0,1
  278. person:
  279. mask:
  280. 0.122,0,1,0,1,0.267,0.841,0.156,0.835,0.331,0.7,0.212,0.529,0.22,0.342,0.233,0.318,0.166,0.127,0.162
  281. live:
  282. streams:
  283. front_shed_cam: front_shed_cam
  284. zones:
  285. Driveway:
  286. coordinates:
  287. 0,0.74,0,1,0.952,1,0.984,0.675,0.942,0.598,0.838,0.489,0.654,0.391,0.67,0.29,0.626,0.214,0.527,0.22,0.493,0.308,0.408,0.435,0.178,0.589
  288. loitering_time: 0
  289. Front_Path:
  290. coordinates: 0.107,0.435,0.403,0.267,0.381,0.257,0.34,0.264,0.099,0.4
  291. loitering_time: 0
  292. notifications:
  293. enabled: true
  294. front_door:
  295. enabled: true
  296. genai:
  297. enabled: true
  298. objects:
  299. - person
  300. - car
  301. ffmpeg:
  302. output_args:
  303. record: preset-record-generic-audio-aac
  304. inputs:
  305. - path: rtsp://localhost:8554/front_door
  306. input_args: preset-rtsp-restream
  307. roles:
  308. - record
  309. - path: rtsp://localhost:8554/front_door_sub
  310. input_args: preset-rtsp-restream
  311. roles:
  312. - audio
  313. - detect
  314. live:
  315. streams:
  316. front_door: front_door
  317. motion:
  318. mask:
  319. 0.029,0.302,0.245,0.189,0.256,0.076,0.66,0.057,0.767,0.092,0.771,0,0,0,0,0.196,0.018,0.261
  320. threshold: 50
  321. contour_area: 30
  322. improve_contrast: true
  323. objects:
  324. filters:
  325. car:
  326. mask:
  327. 0.029,0.302,0.245,0.189,0.256,0.076,0.66,0.057,0.767,0.092,0.771,0,0,0,0,0.196,0.018,0.261
  328. person:
  329. mask:
  330. 0.029,0.302,0.245,0.189,0.256,0.076,0.66,0.057,0.767,0.092,0.771,0,0,0,0,0.196,0.018,0.261
  331. zones:
  332. Driveway:
  333. coordinates:
  334. 0.234,0.116,0.3,0.071,0.56,0.065,0.723,0.103,0.873,0.163,1,0.206,1,0.342,0.898,0.263,0.671,0.156,0.462,0.11
  335. loitering_time: 0
  336. Front_Path:
  337. coordinates:
  338. 0.335,0.145,0.291,0.166,0.647,0.526,0.65,0.576,0.677,0.56,0.923,0.842,0.976,0.73,0.737,0.474
  339. loitering_time: 0
  340. Front_Porch:
  341. coordinates: 0.239,0.856,0.282,1,0.818,1,0.923,0.845,0.678,0.56,0.487,0.697
  342. loitering_time: 0
  343. notifications:
  344. enabled: true
  345. side_door:
  346. enabled: true
  347. genai:
  348. enabled: true
  349. objects:
  350. - person
  351. - car
  352. ffmpeg:
  353. output_args:
  354. record: preset-record-generic-audio-aac
  355. inputs:
  356. - path: rtsp://localhost:8554/side_door
  357. input_args: preset-rtsp-restream
  358. roles:
  359. - record
  360. - path: rtsp://localhost:8554/side_door_sub
  361. input_args: preset-rtsp-restream
  362. roles:
  363. - audio
  364. - detect
  365. live:
  366. streams:
  367. side_door: side_door
  368. zones:
  369. Garage_Door:
  370. coordinates: 0,0,0,0.092,0.104,0.304,0.236,0.514,0.449,0.502,0.359,0
  371. loitering_time: 0
  372. notifications:
  373. enabled: true
  374. laundry_door:
  375. enabled: true
  376. genai:
  377. enabled: true
  378. objects:
  379. - person
  380. - car
  381. ffmpeg:
  382. output_args:
  383. record: preset-record-generic-audio-aac
  384. inputs:
  385. - path: rtsp://localhost:8554/laundry_door
  386. input_args: preset-rtsp-restream
  387. roles:
  388. - record
  389. - path: rtsp://localhost:8554/laundry_door_sub
  390. input_args: preset-rtsp-restream
  391. roles:
  392. - audio
  393. - detect
  394. live:
  395. streams:
  396. laundry_door: laundry_door
  397. zones:
  398. Back_Verandah:
  399. coordinates: 0.363,1,0.529,0.725,0.67,0.462,0.862,0.554,0.812,0.754,0.731,1
  400. loitering_time: 0
  401. Backyard:
  402. coordinates:
  403. 0,0.582,0.071,0.494,0.214,0.349,0.484,0.141,0.684,0.014,0.912,0.119,0.857,0.543,0.67,0.462,0.521,0.734,0.361,0.999,0.182,1,0.1,0.9,0,0.713
  404. loitering_time: 0
  405. notifications:
  406. enabled: true
  407. above_clothesline:
  408. enabled: true
  409. genai:
  410. enabled: true
  411. objects:
  412. - person
  413. - car
  414. ffmpeg:
  415. output_args:
  416. record: preset-record-generic-audio-aac
  417. inputs:
  418. - path: rtsp://localhost:8554/above_clothesline
  419. input_args: preset-rtsp-restream
  420. roles:
  421. - record
  422. - path: rtsp://localhost:8554/above_clothesline_sub
  423. input_args: preset-rtsp-restream
  424. roles:
  425. - audio
  426. - detect
  427. live:
  428. streams:
  429. above_clothesline: above_clothesline
  430. motion:
  431. mask:
  432. 0,0.056,0,0,1,0,1,0.24,0.95,0.356,0.862,0.325,0.779,0.222,0.628,0.263,0.557,0.104,0.252,0.065
  433. objects:
  434. filters:
  435. car:
  436. mask: 0,0,0,0.053,0.319,0.06,0.593,0.102,1,0.237,1,0
  437. notifications:
  438. enabled: true
  439. front_yard:
  440. enabled: true
  441. genai:
  442. enabled: true
  443. objects:
  444. - person
  445. - car
  446. ffmpeg:
  447. output_args:
  448. record: preset-record-generic-audio-aac
  449. inputs:
  450. - path: rtsp://localhost:8554/front_yard
  451. input_args: preset-rtsp-restream
  452. roles:
  453. - record
  454. - path: rtsp://localhost:8554/front_yard_sub
  455. input_args: preset-rtsp-restream
  456. roles:
  457. - audio
  458. - detect
  459. live:
  460. streams:
  461. front_yard: front_yard
  462. motion:
  463. mask: 0,0.497,1,0.498,1,0,0,0
  464. objects:
  465. filters:
  466. car:
  467. mask: 0,0.497,1,0.498,1,0,0,0
  468. person:
  469. mask: 0,0.497,1,0.498,1,0,0,0
  470. notifications:
  471. enabled: true
  472. facing_shed:
  473. enabled: true
  474. genai:
  475. enabled: true
  476. objects:
  477. - person
  478. - car
  479. ffmpeg:
  480. output_args:
  481. record: preset-record-generic-audio-aac
  482. inputs:
  483. - path: rtsp://localhost:8554/facing_shed
  484. input_args: preset-rtsp-restream
  485. roles:
  486. - record
  487. - path: rtsp://localhost:8554/facing_shed_sub
  488. input_args: preset-rtsp-restream
  489. roles:
  490. - audio
  491. - detect
  492. live:
  493. streams:
  494. facing_shed: facing_shed
  495. motion:
  496. threshold: 30
  497. contour_area: 10
  498. improve_contrast: true
  499. mask: 0.543,-0.001,0.999,0.002,1,0.182,0.761,0.08,0.629,0.039,0.543,0.032
  500. objects:
  501. filters:
  502. car:
  503. mask: 0.543,-0.001,0.999,0.002,1,0.182,0.761,0.08,0.629,0.039,0.543,0.032
  504. zones:
  505. Backyard:
  506. coordinates:
  507. 0.192,0.602,0.185,0.492,0.31,0.481,0.309,0.137,0.558,0.104,0.752,0.228,0.999,0.415,1,1,0.201,1,0.181,0.816,0.173,0.627
  508. loitering_time: 0
  509. inertia: 3
  510. notifications:
  511. enabled: true
  512. facing_trees:
  513. enabled: true
  514. genai:
  515. enabled: true
  516. objects:
  517. - person
  518. - car
  519. ffmpeg:
  520. output_args:
  521. record: preset-record-generic-audio-aac
  522. inputs:
  523. - path: rtsp://localhost:8554/facing_trees
  524. input_args: preset-rtsp-restream
  525. roles:
  526. - record
  527. - path: rtsp://localhost:8554/facing_trees_sub
  528. input_args: preset-rtsp-restream
  529. roles:
  530. - audio
  531. - detect
  532. live:
  533. streams:
  534. facing_trees: facing_trees
  535. motion:
  536. threshold: 30
  537. contour_area: 10
  538. improve_contrast: true
  539. mask:
  540. 0,0,0.846,0,0.952,0.072,0.954,0.099,0.988,0.109,1,0.091,1,0.167,0.952,0.261,0.903,0.227,0.899,0.145,0.756,0.112,0.733,0.173,0.653,0.177,0.588,0.076,0.475,0.202,0.387,0.243,0.277,0.134,0.16,0.154,0,0.199
  541. objects:
  542. filters:
  543. car:
  544. mask: 0,0,0,0.187,0.201,0.135,0.714,0.097,1,0.172,1,0
  545. zones:
  546. Backyard:
  547. coordinates: 0,0.479,0.379,0.307,0.708,0.212,1,0.293,1,0.393,0.915,1,0,1
  548. loitering_time: 0
  549. notifications:
  550. enabled: true
  551. version: 0.16-0
  552.  
  553. semantic_search:
  554. enabled: true
  555. reindex: false
  556. model_size: large
  557.  
  558. genai:
  559. enabled: true
  560. # provider: openai
  561. # api_key:
  562. # model: gpt-4o
  563. provider: gemini
  564. api_key:
  565. model: gemini-1.5-flash
  566. prompt: You are a security camera. Analyze the image(s) containing the {label}.
  567. Focus on the likely intent or behavior of the {label} based on its actions and
  568. movement, rather than describing its appearance or the surroundings. Consider
  569. what the {label} is doing, why, and what it might do next. Reply in a single paragraph,
  570. using plain text, with no special characters.
  571.  
  572. model:
  573. path:
  574.  
  575. camera_groups:
  576. Front:
  577. order: 1
  578. icon: LuCar
  579. cameras:
  580. - front_shed_cam
  581. - front_door
  582. - front_yard
  583. Rear:
  584. order: 2
  585. icon: LuTreePine
  586. cameras:
  587. - side_door
  588. - laundry_door
  589. - above_clothesline
  590. - facing_shed
  591. - facing_trees
  592. Indoor:
  593. order: 3
  594. icon: LuArmchair
  595. cameras:
  596. - lounge_room
  597. - rear_living_room
  598.  
  599. face_recognition:
  600. enabled: true
  601. model_size: large
  602.  
  603. lpr:
  604. enabled: true
  605. classification:
  606. bird:
  607. enabled: true
  608.  
  609. timestamp_style:
  610. format: '%Y/%m/%d/ %H:%M:%S'
Add Comment
Please, Sign In to add comment