DieMetRik

frigate config (share) 0.16

Jul 25th, 2025 (edited)
1,257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mqtt:
  2.   host: 192.168.1.120
  3.   user: frigate
  4.   password: pass
  5.   client_id: frigate #Если используется 2 фригата, тут нужно поменять
  6.   topic_prefix: frigate #Если используется 2 фригата, тут нужно поменять
  7.  
  8. #================================================   go2rtc part   ========================================================
  9. go2rtc:
  10.   rtsp:
  11.     listen: :8554
  12. # это внутренняя авторизация потоков между go2rtc и frigate\webrtc. Используется в секции cameras
  13.     username: admin
  14.     password: GKVn
  15.  
  16.   streams:
  17. #***********************************************   MAIN FLOW   ************************************************************
  18.     livingroom_camera_main:
  19.       ffmpeg:rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=0#video=copy#audio=copy#audio=opus#audio=aac
  20. # ИЛИ если верхний вариант не заработает
  21. #    livingroom_camera_main:
  22. #      rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=0
  23.  
  24.  #***********************************************   SUB FLOW   ************************************************************
  25.     livingroom_camera_sub: rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=1
  26.  
  27. #**************************************************************************************************************************
  28.   webrtc:
  29.     listen: :8555/tcp
  30.     candidates:
  31.       - stun:8555  
  32.       - XX.XX.XX.XXX:8555 # Public IP Закомментировать если нет внешнего статичного публичного IP
  33. #================================================   END go2rtc part   ======================================================
  34.  
  35. ffmpeg:
  36.   output_args:
  37.     record: preset-record-generic-audio-copy
  38. #    record: preset-record-generic-audio-aac # ИСПОЛЬЗУЙТЕ это Если с камеры идет аудио кодек НЕ AAC или не используетcя ffmpeg: в streams с audio=copy и кодеком pcm
  39.    
  40.   input_args: preset-rtsp-restream
  41.  
  42. ui:
  43.   time_format: 24hour
  44.   timezone: Europe/Moscow
  45.   date_style: medium
  46.   time_style: medium
  47.   strftime_fmt: '%Y-%m-%d %H:%M:%S'
  48.  
  49. snapshots:
  50.   enabled: true
  51.   timestamp: true
  52.   bounding_box: true
  53.   clean_copy: false
  54.   retain:
  55.     default: 7
  56.     objects:
  57.       person: 30
  58.  
  59. record:
  60.   sync_recordings: true
  61.   expire_interval: 720
  62.   enabled: true
  63.   retain:
  64.     days: 7
  65.     mode: all
  66.   alerts:
  67.     retain:
  68.       days: 30
  69.   detections:
  70.     retain:
  71.       days: 30
  72.  
  73. birdseye:
  74.   enabled: false
  75.  
  76. audio:
  77.   enabled: true
  78.   max_not_heard: 30
  79.   min_volume: 500
  80.   listen:
  81.    - speech
  82.   filters:
  83.     speech:
  84.       threshold: 0.8
  85.  
  86. semantic_search:
  87.   enabled: false
  88.   model_size: small
  89.   reindex: false
  90.  
  91. genai:
  92.   enabled: false
  93.   provider: gemini
  94.   api_key: "{FRIGATE_GEMINI_API}"
  95.   #model: gemini-1.5-flash
  96.   model: gemini-2.0-flash-exp
  97.   prompt: "Analyze the {label} in these images from the {camera} security camera at the front door. Focus on the actions and potential intent of the {label}. Reply in Russian"
  98.   object_prompts:
  99.     person: "Examine the person in these images. What are they doing, and how might their actions suggest their purpose (e.g., delivering something, approaching, leaving)? If they are carrying or interacting with a package, include details about its source or destination. Reply in Russian"
  100.  
  101. #================== DETECTOR ===================================
  102. detectors:
  103.   ov_cpu:
  104.     type: openvino
  105.     device: CPU
  106. #  ov_gpu:
  107. #    type: openvino
  108. #    device: GPU
  109. model:
  110.   width: 300
  111.   height: 300
  112.   input_tensor: nhwc
  113.   input_pixel_format: bgr
  114.   labelmap_path: /openvino-model/coco_91cl_bkgr.txt
  115.   path: /openvino-model/ssdlite_mobilenet_v2.xml
  116. #==============================================================
  117.  
  118. detect:
  119.   enabled: true
  120. face_recognition:
  121.   enabled: true
  122.   model_size: small
  123.   save_attempts: 1000
  124. lpr:
  125.   enabled: false
  126. classification:
  127.   bird:
  128.     enabled: false
  129. version: 0.16-0
  130.  
  131. cameras:
  132.  ####======================================CAMERA LIVINGROOM===========================================
  133.   livingroom:
  134.     ffmpeg:
  135.       inputs:
  136.      # пароль из go2rtc
  137.         - path: rtsp://admin:[email protected]:8554/livingroom_camera_main
  138.           roles:
  139.            - record
  140.         - path: rtsp://admin:[email protected]:8554/livingroom_camera_sub
  141.           roles:
  142.            - detect
  143.     objects:
  144.       track:
  145.        - person
  146.       mask:
  147.        - 146,158,121,0,290,0,293,85
  148.         - 532,104,522,182,440,149,444,71
  149.         - 552,480,590,404,465,357,432,394,325,334,274,261,185,317,134,394,165,458,76,480
  150.       filters:
  151.         person:
  152.           mask:
  153.            - 146,158,121,0,532,104,522,182,552,480,590,404
  154.     mqtt:
  155.       enabled: true
  156.       timestamp: false
  157.       bounding_box: false
  158.       crop: true
  159.       quality: 100
  160.       height: 500
  161.     genai:
  162.       enabled: false
  163.     motion:
  164.       threshold: 50
  165.       contour_area: 50
  166.       mqtt_off_delay: 30
  167.       mask:
  168.        - 146,158,121,0,290,0,293,85
  169.         - 548,89,529,201,420,156,425,63
  170.         - 552,480,590,404,465,357,432,394,325,334,274,261,185,317,134,394,165,458,76,480
  171.     live:
  172.       stream_name: livingroom_camera_main # имя из go2rtc
  173.     review:
  174.       detections:
  175.         labels:
  176.          - person
  177.       alerts:
  178.         labels: []
Advertisement
Add Comment
Please, Sign In to add comment