DieMetRik

frigate config (full) 0.16

Sep 1st, 2025 (edited)
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 13.72 KB | None | 0 0
  1. mqtt:
  2.   host: 192.168.2.120
  3.   user: '{FRIGATE_MQTT_LOGIN}'
  4.   password: '{FRIGATE_MQTT_PASSWORD}'
  5.   client_id: frigate
  6.   stats_interval: 30
  7.  
  8. auth:
  9.   failed_login_rate_limit: 1/second;5/minute;20/hour
  10.   trusted_proxies:
  11.    - 192.168.2.50
  12.  
  13. #================================================   go2rtc part   ========================================================
  14. go2rtc:
  15.   rtsp:
  16.     listen: :8554
  17.     username: '{FRIGATE_GO2RTC_RTSP_USERNAME}'
  18.     password: '{FRIGATE_GO2RTC_RTSP_PASSWORD}'
  19.  
  20.   streams:
  21. #***********************************************   MAIN FLOW   ************************************************************
  22.     entrance_camera_main:
  23.       ffmpeg:rtsp://{FRIGATE_CAMERA_LOGIN}:{FRIGATE_CAMERA_PASSWORD}@192.168.1.125/cam/realmonitor?channel=1&subtype=1#video=copy#audio=copy#audio=opus
  24.  
  25.     kitchen_camera_main:
  26.       ffmpeg:rtsp://{FRIGATE_CAMERA_LOGIN}:{FRIGATE_CAMERA_PASSWORD}@192.168.1.33/cam/realmonitor?channel=1&subtype=0#video=copy#audio=copy#audio=opus
  27.     hall_camera_main:
  28.       ffmpeg:rtsp://{FRIGATE_CAMERA_LOGIN}:{FRIGATE_CAMERA_PASSWORD}@192.168.1.34/cam/realmonitor?channel=1&subtype=0#video=copy#audio=copy#audio=opus
  29.     livingroom_camera_main:
  30.       ffmpeg:rtsp://{FRIGATE_CAMERA_LOGIN}:{FRIGATE_CAMERA_PASSWORD}@192.168.1.35/cam/realmonitor?channel=1&subtype=0#video=copy#audio=copy#audio=opus
  31.     bedroom_camera_main:
  32.       ffmpeg:rtsp://{FRIGATE_CAMERA_LOGIN}:{FRIGATE_CAMERA_PASSWORD}@192.168.1.32/cam/realmonitor?channel=1&subtype=0#video=copy#audio=copy#audio=opus
  33.  
  34.  #***********************************************   SUB FLOW   ************************************************************
  35.     livingroom_camera_sub:
  36.       rtsp://{FRIGATE_CAMERA_LOGIN}:{FRIGATE_CAMERA_PASSWORD}@192.168.1.35/cam/realmonitor?channel=1&subtype=1
  37.     bedroom_camera_sub:
  38.       rtsp://{FRIGATE_CAMERA_LOGIN}:{FRIGATE_CAMERA_PASSWORD}@192.168.1.32/cam/realmonitor?channel=1&subtype=1
  39.     hall_camera_sub:
  40.       rtsp://{FRIGATE_CAMERA_LOGIN}:{FRIGATE_CAMERA_PASSWORD}@192.168.1.34/cam/realmonitor?channel=1&subtype=1
  41.     kitchen_camera_sub:
  42.       rtsp://{FRIGATE_CAMERA_LOGIN}:{FRIGATE_CAMERA_PASSWORD}@192.168.1.33/cam/realmonitor?channel=1&subtype=1
  43.     anycubic_camera_main: rtsp://rtsp:{FRIGATE_CAMERA_PASSWORD}@192.168.1.223:554/av_stream/ch0
  44.     anycubic_camera_main_frigate: ffmpeg:anycubic_camera_main#video=copy#audio=opus#audio=aac
  45.  
  46.  
  47. #**************************************************************************************************************************
  48.   webrtc:
  49.     listen: :8555/tcp
  50.     candidates:
  51.      - XXX.XXX.XXX.XXX:8555 # Public IP
  52. #================================================   END go2rtc part   ======================================================
  53.  
  54. ffmpeg:
  55.   output_args:
  56.     record: preset-record-generic-audio-copy
  57.   input_args: preset-rtsp-restream
  58.  
  59. ui:
  60.   time_format: 24hour
  61.   timezone: Europe/Moscow
  62.   date_style: medium
  63.   time_style: medium
  64.   strftime_fmt: '%Y-%m-%d %H:%M:%S'
  65.  
  66. telemetry:
  67.   network_interfaces:
  68.    - eth0@if149
  69.     - isolated@if153
  70.   stats:
  71.     amd_gpu_stats: false
  72.     intel_gpu_stats: true
  73.     network_bandwidth: true
  74.   version_check: true
  75.  
  76.  
  77. snapshots:
  78.   enabled: true
  79.   timestamp: false
  80.   bounding_box: true
  81.   clean_copy: true
  82.   retain:
  83.     default: 7
  84.     objects:
  85.       person: 30
  86.  
  87. record:
  88.   sync_recordings: true
  89.   expire_interval: 720
  90.   enabled: true
  91.   retain:
  92.     days: 7
  93.     mode: all
  94.   alerts:
  95.     retain:
  96.       days: 30
  97.   detections:
  98.     retain:
  99.       days: 30
  100.  
  101. birdseye:
  102.   enabled: false
  103.  
  104. audio:
  105.   enabled: true
  106.   max_not_heard: 30
  107.   min_volume: 500
  108.   listen:
  109.    - speech
  110.   filters:
  111.     speech:
  112.       threshold: 0.8
  113.  
  114. semantic_search:
  115.   enabled: true
  116.   model_size: small
  117.   reindex: false
  118.  
  119. genai:
  120.   enabled: true
  121.   provider: gemini
  122.   api_key: '{FRIGATE_GEMINI_API}'
  123.   #model: gemini-1.5-flash
  124.   #model: gemini-2.0-flash-exp
  125.   #model: gemini-2.5-flash-preview-04-17
  126.   model: gemini-2.5-flash
  127.   prompt: Analyze the {label} in these images from the {camera} security camera at
  128.     the front door. Focus on the actions and potential intent of the {label}. Reply
  129.     in Russian.
  130.   object_prompts:
  131.     person: Examine the person in these images. What are they doing, and how might
  132.       their actions suggest their purpose (e.g., delivering something, approaching,
  133.       leaving)? If they are carrying or interacting with a package, include details
  134.       about its source or destination. Reply in Russian.
  135.  
  136. #================== DETECTOR ===================================
  137. detectors:
  138.   ov_1:
  139.     type: openvino
  140.     device: CPU
  141.   ov_2:
  142.     type: openvino
  143.     device: CPU
  144.   ov_3:
  145.     type: openvino
  146.     device: CPU
  147. model:
  148.   width: 300
  149.   height: 300
  150.   input_tensor: nhwc
  151.   input_pixel_format: bgr
  152.   labelmap_path: /openvino-model/coco_91cl_bkgr.txt
  153.   path: /openvino-model/ssdlite_mobilenet_v2.xml
  154. #==============================================================
  155.  
  156. # ========================== SETTINGS =========================
  157. detect:
  158.   enabled: true
  159. face_recognition:
  160.   enabled: true
  161.   model_size: small
  162.   save_attempts: 1000
  163. lpr:
  164.   enabled: false
  165. classification:
  166.   bird:
  167.     enabled: false
  168.  
  169. version: 0.16-0
  170. camera_groups:
  171.   Home:
  172.     order: 1
  173.     icon: LuAtom
  174.     cameras:
  175.      - entrance
  176.       - hall
  177.       - kitchen
  178.       - livingroom
  179.       - bedroom
  180. #==============================================================
  181.  
  182.  
  183. cameras:
  184. ####======================================CAMERA Entrance===========================================
  185.   entrance:
  186.     ffmpeg:
  187.       inputs:
  188.         - path:
  189.             rtsp://{FRIGATE_GO2RTC_RTSP_USERNAME}:{FRIGATE_GO2RTC_RTSP_PASSWORD}@127.0.0.1:8554/entrance_camera_main
  190.           roles:
  191.            - audio
  192.             - record
  193.             - detect
  194.     mqtt:
  195.       enabled: true
  196.       timestamp: false
  197.       bounding_box: false
  198.       crop: false
  199.       quality: 100
  200.       height: 1080
  201.     genai:
  202.       enabled: true
  203.       use_snapshot: false
  204.     face_recognition:
  205.       enabled: true
  206.       min_area: 9000
  207.  
  208.     motion:
  209.       threshold: 45
  210.       contour_area: 40
  211.       mqtt_off_delay: 15
  212.       improve_contrast: true
  213.       mask: 0.011,0.931,0.226,0.937,0.226,0.973,0.011,0.978
  214.     objects:
  215.       track:
  216.        - person
  217.       filters:
  218.         person:
  219.           threshold: 0.8            
  220.           min_area: 10000
  221.           max_area: 500000
  222.     live:
  223.       streams:
  224.         entrance_camera_main: entrance_camera_main
  225.     review:
  226.       detections:
  227.         labels: []
  228.       alerts:
  229.         labels:
  230.          - person
  231.     zones:
  232.       entrance_far_zone:
  233.         coordinates: 0.548,0.745,0.453,0.73,0.435,0.779,0.448,0.782,0.422,0.837,0.551,0.857
  234.         loitering_time: 0
  235.         objects: person
  236.       entrance_near_zone:
  237.         coordinates:
  238.           0.422,0.837,0.414,0.833,0.364,0.947,0.347,0.977,0.325,0.968,0.307,0.999,0.557,0.999,0.551,0.857
  239.         loitering_time: 0
  240.         objects: person
  241.       entrance_stair_zone:
  242.         coordinates:
  243.           0.596,0.997,0.588,0.924,0.887,0.617,0.972,0.644,0.927,0.821,0.856,0.971,0.822,0.997
  244.         loitering_time: 0
  245.         objects: person
  246.     detect:
  247.       annotation_offset: -1000
  248. ####======================================CAMERA BEDROOM===========================================
  249.   bedroom:
  250.     ffmpeg:
  251.       inputs:
  252.         - path:
  253.             rtsp://{FRIGATE_GO2RTC_RTSP_USERNAME}:{FRIGATE_GO2RTC_RTSP_PASSWORD}@127.0.0.1:8554/bedroom_camera_main
  254.           roles:
  255.            - record
  256.         - path:
  257.             rtsp://{FRIGATE_GO2RTC_RTSP_USERNAME}:{FRIGATE_GO2RTC_RTSP_PASSWORD}@127.0.0.1:8554/bedroom_camera_main?audio=aac
  258.           roles:
  259.            - audio
  260.         - path:
  261.             rtsp://{FRIGATE_GO2RTC_RTSP_USERNAME}:{FRIGATE_GO2RTC_RTSP_PASSWORD}@127.0.0.1:8554/bedroom_camera_sub
  262.           roles:
  263.            - detect
  264.     genai:
  265.       enabled: false
  266.     objects:
  267.       track:
  268.        - person
  269.       filters:
  270.         person:
  271.           threshold: 0.8          
  272.           mask: []
  273.     mqtt:
  274.       enabled: false
  275.     motion:
  276.       threshold: 45
  277.       contour_area: 40
  278.       mqtt_off_delay: 30
  279.       mask: 0.585,0.933,0.584,0.988,0.948,0.983,0.944,0.93
  280.       improve_contrast: true
  281.     face_recognition:
  282.       enabled: false
  283.     live:
  284.       streams:
  285.         bedroom_camera_main: bedroom_camera_main
  286.     review:
  287.       detections:
  288.         labels:
  289.          - person
  290.       alerts:
  291.         labels: []
  292.     detect:
  293.       annotation_offset: -500
  294. ####======================================CAMERA LIVINGROOM===========================================
  295.   livingroom:
  296.     ffmpeg:
  297.       inputs:
  298.         - path:
  299.             rtsp://{FRIGATE_GO2RTC_RTSP_USERNAME}:{FRIGATE_GO2RTC_RTSP_PASSWORD}@127.0.0.1:8554/livingroom_camera_main
  300.           roles:
  301.            - record
  302.         - path:
  303.             rtsp://{FRIGATE_GO2RTC_RTSP_USERNAME}:{FRIGATE_GO2RTC_RTSP_PASSWORD}@127.0.0.1:8554/livingroom_camera_main?audio=aac
  304.           roles:
  305.            - audio
  306.         - path:
  307.             rtsp://{FRIGATE_GO2RTC_RTSP_USERNAME}:{FRIGATE_GO2RTC_RTSP_PASSWORD}@127.0.0.1:8554/livingroom_camera_sub
  308.           roles:
  309.            - detect
  310.     genai:
  311.       enabled: false
  312.     face_recognition:
  313.       enabled: false
  314.     objects:
  315.       track:
  316.        - person
  317.       filters:
  318.         person:
  319.           threshold: 0.8
  320.           mask: 0.61,1,0.567,0.606,0.42,0.603,0.314,0.72,0.306,1
  321.     mqtt:
  322.       enabled: false
  323.     motion:
  324.       threshold: 45
  325.       contour_area: 40
  326.       mqtt_off_delay: 30
  327.       mask:
  328.        - 0.192,0.335,0.157,0.006,0.397,0.006,0.401,0.183
  329.         - 0.725,0.212,0.71,0.343,0.598,0.265,0.602,0.144
  330.         - 0.99,1,0.992,0.898,0.665,0.743,0.624,0.74,0.577,0.751,0.563,0.731,0.552,0.632,0.524,0.617,0.452,0.633,0.385,0.668,0.355,0.729,0.334,0.782,0.328,1,0.384,1
  331.         - 0.662,0.345,0.688,0.362,0.696,0.337,0.667,0.319
  332.       improve_contrast: true
  333.     live:
  334.       streams:
  335.         livingroom_camera_main: livingroom_camera_main
  336.     review:
  337.       detections:
  338.         labels:
  339.          - person
  340.       alerts:
  341.         labels: []
  342.     detect:
  343.       annotation_offset: -500
  344.  
  345. ####======================================CAMERA HALL===========================================
  346.   hall:
  347.     ffmpeg:
  348.       inputs:
  349.         - path:
  350.             rtsp://{FRIGATE_GO2RTC_RTSP_USERNAME}:{FRIGATE_GO2RTC_RTSP_PASSWORD}@127.0.0.1:8554/hall_camera_main
  351.           roles:
  352.            - record
  353.         - path:
  354.             rtsp://{FRIGATE_GO2RTC_RTSP_USERNAME}:{FRIGATE_GO2RTC_RTSP_PASSWORD}@127.0.0.1:8554/hall_camera_main?audio=aac
  355.           roles:
  356.            - audio
  357.         - path:
  358.             rtsp://{FRIGATE_GO2RTC_RTSP_USERNAME}:{FRIGATE_GO2RTC_RTSP_PASSWORD}@127.0.0.1:8554/hall_camera_sub
  359.           roles:
  360.            - detect
  361.     mqtt:
  362.       enabled: false
  363.     genai:
  364.       enabled: false
  365.     face_recognition:
  366.       enabled: false
  367.     objects:
  368.       track:
  369.        - person
  370.       filters:
  371.         person:
  372.           threshold: 0.8
  373.  
  374.     motion:
  375.       threshold: 45
  376.       contour_area: 40
  377.       mqtt_off_delay: 30
  378.       improve_contrast: true
  379.       mask: 0.228,0.042,0.227,0.003,0.924,0.001,0.935,0.034
  380.     live:
  381.       streams:
  382.         hall_camera_main: hall_camera_main
  383.     review:
  384.       detections:
  385.         labels:
  386.          - person
  387.       alerts:
  388.         labels: []
  389.     detect:
  390.       annotation_offset: -1000
  391.  
  392. ####======================================CAMERA Kitchen===========================================
  393.   kitchen:
  394.     ffmpeg:
  395.       inputs:
  396.         - path:
  397.             rtsp://{FRIGATE_GO2RTC_RTSP_USERNAME}:{FRIGATE_GO2RTC_RTSP_PASSWORD}@127.0.0.1:8554/kitchen_camera_main
  398.           roles:
  399.            - record
  400.         - path:
  401.             rtsp://{FRIGATE_GO2RTC_RTSP_USERNAME}:{FRIGATE_GO2RTC_RTSP_PASSWORD}@127.0.0.1:8554/kitchen_camera_main?audio=aac
  402.           roles:
  403.            - audio
  404.         - path:
  405.             rtsp://{FRIGATE_GO2RTC_RTSP_USERNAME}:{FRIGATE_GO2RTC_RTSP_PASSWORD}@127.0.0.1:8554/kitchen_camera_sub
  406.           roles:
  407.            - detect
  408.     genai:
  409.       enabled: false
  410.     objects:
  411.       track:
  412.        - person
  413.       filters:
  414.         person:
  415.           threshold: 0.8
  416.           mask:
  417.            - 0.469,0.133,0.473,0,0.262,0,0.292,0.235
  418.             - 0.175,0.423,0.294,0.283,0.278,0.144,0.138,0.292
  419.     mqtt:
  420.       enabled: false
  421.     face_recognition:
  422.       enabled: false
  423.     motion:
  424.       threshold: 45
  425.       contour_area: 35
  426.       mqtt_off_delay: 30
  427.       mask:
  428.        - 0.511,0.163,0.517,0,0.249,0,0.283,0.302
  429.         - 0.175,0.423,0.294,0.283,0.278,0.144,0.138,0.292
  430.         - 0.004,0.88,0.367,0.888,0.368,0.934,0.213,0.938,0.181,0.94,0.112,0.935,0,0.935
  431.       improve_contrast: true
  432.     live:
  433.       streams:
  434.         kitchen_camera_main: kitchen_camera_main
  435.     review:
  436.       detections:
  437.         labels:
  438.          - person
  439.       alerts:
  440.         labels: []
  441.     detect:
  442.       annotation_offset: -1500
  443.  
  444. ####======================================CAMERA ANYCUBIC===========================================
  445.   anycubic:
  446.     ffmpeg:
  447.       inputs:
  448.         - path:
  449.             rtsp://{FRIGATE_GO2RTC_RTSP_USERNAME}:{FRIGATE_GO2RTC_RTSP_PASSWORD}@127.0.0.1:8554/anycubic_camera_main_frigate
  450.           roles:
  451.            - record
  452.     motion:
  453.       threshold: 45
  454.       contour_area: 40
  455.       mqtt_off_delay: 30
  456.       improve_contrast: true
  457.     genai:
  458.       enabled: false
  459.     mqtt:
  460.       enabled: false
  461.     detect:
  462.       enabled: false
  463.     snapshots:
  464.       enabled: false
  465.     audio:
  466.       enabled: false
  467.     face_recognition:
  468.       enabled: false
  469.     live:
  470.       streams:
  471.         anycubic_camera_main_frigate: anycubic_camera_main_frigate
  472.  
  473. #===================================================================================================================================      
  474.  
Advertisement
Add Comment
Please, Sign In to add comment