Archy54

Untitled

Mar 20th, 2025 (edited)
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 11.74 KB | None | 0 0
  1. mqtt:
  2.   enabled: true
  3.   host: x
  4.   port: 1883
  5.   topic_prefix: x
  6.   client_id: x
  7.   user: x
  8.   password: x
  9.  
  10. cameras:
  11.   Car_Port_North:
  12.     enabled: true
  13.     ffmpeg:
  14.       hwaccel_args: preset-vaapi
  15.       output_args:
  16.         record: preset-record-generic-audio-aac
  17.       inputs:
  18.         - path:
  19.             rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=0
  20.           input_args: preset-rtsp-restream
  21.           roles:
  22.            - record
  23.         - path:
  24.             rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=2
  25.           roles:
  26.            - detect
  27.     detect:
  28.       enabled: true
  29.       width: 1920
  30.       height: 1080
  31.       fps: 5
  32.       min_initialized: 2
  33.       max_disappeared: 25
  34.     zones:
  35.       CarPortNorthZone:
  36.         coordinates: 0,0,1,0,0.991,0.603,1,0.838,1,1,0,1
  37.         loitering_time: 0
  38.         inertia: 3
  39.     review:
  40.       alerts: {}
  41.     motion:
  42.       mask:
  43.        - 0.994,0.328,0.969,0.374,0.953,0.438,0.956,0.538,0.953,0.731,0.959,0.879,0.962,0.995,0.999,0.997
  44.         - 0.233,0.08,0.2,0.195,0,0.293,0,0.078,0.212,0.021
  45.         - 0.685,0.036,0.685,0.09,0.712,0.123,0.767,0.141,0.779,0.095,0.963,0.095,0.962,0.036
  46.         - 0.937,0.246,0.858,0.192,0.839,0.117,0.838,0.092,0.933,0.003,0.996,0.005,0.994,0.285
  47.   Shed:
  48.     enabled: true
  49.     ffmpeg:
  50.       hwaccel_args: preset-vaapi
  51.       output_args:
  52.         record: preset-record-generic-audio-aac
  53.       inputs:
  54.         - path:
  55.             rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=0
  56.           input_args: preset-rtsp-restream
  57.           roles:
  58.            - record
  59.         - path:
  60.             rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=2
  61.           roles:
  62.            - detect
  63.  
  64.     zones:
  65.       ShedZone: # Rename this zone to ShedZone to avoid conflict with the camera name
  66.         coordinates: 0,0,1920,0,1920,1080,0,1080  # Define the zone coordinates
  67.     detect:
  68.       enabled: true
  69.       width: 1920
  70.       height: 1080
  71.       fps: 5
  72.       min_initialized: 2
  73.       max_disappeared: 25
  74.  
  75.     motion:
  76.       mask:
  77.        - 0.968,0.032,0.676,0.031,0.678,0.103,0.967,0.105
  78.         - 0.377,0.146,0.678,0.141,0.672,0.159,0.377,0.172
  79.   Laundry:
  80.     enabled: true
  81.     ffmpeg:
  82.       hwaccel_args: preset-vaapi
  83.       output_args:
  84.         record: preset-record-generic-audio-aac
  85.       inputs:
  86.         - path:
  87.             rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=0
  88.           input_args: preset-rtsp-restream
  89.           roles:
  90.            - record
  91.         - path:
  92.             rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=2
  93.           roles:
  94.            - detect
  95.  
  96.     zones:
  97.       LaundryZone:
  98.         coordinates: 0.267,0.356,0.603,0.228,0.873,0.092,0.867,0.579,0.824,1,0,1,0,0.49
  99.         inertia: 3
  100.         loitering_time: 0
  101.     detect:
  102.       enabled: true
  103.       width: 1920
  104.       height: 1080
  105.       fps: 5
  106.       min_initialized: 2
  107.       max_disappeared: 25
  108.  
  109.     motion:
  110.       mask:
  111.        - 0,0.458,0.046,0.423,0.058,0.333,0.15,0.329,0.601,0.207,0.665,0.205,0.811,0.215,0.831,0.128,0.76,0,0.461,0,0.135,0,0.001,0
  112.         - 0.68,0.034,0.959,0.033,0.96,0.095,0.681,0.1
  113.         - 0.134,0.38,0.393,0.277,0.407,0.259,0.498,0.232,0.521,0.252,0.009,0.494
  114.   BackYard:
  115.     enabled: true
  116.     ffmpeg:
  117.       hwaccel_args: preset-vaapi
  118.       output_args:
  119.         record: preset-record-generic-audio-aac
  120.       inputs:
  121.         - path:
  122.             rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=0
  123.           input_args: preset-rtsp-restream
  124.           roles:
  125.            - record
  126.         - path:
  127.             rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=2
  128.           roles:
  129.            - detect
  130.     detect:
  131.       enabled: true
  132.       width: 1920
  133.       height: 1080
  134.       fps: 5
  135.       min_initialized: 2
  136.       max_disappeared: 25
  137.  
  138.     motion:
  139.       mask:
  140.        - 0.655,0,0.613,0.215,0.92,0.451,0.96,0.308,0.963,0
  141.         - -0.001,0.164,0.034,0.179,0.073,0.154,0.097,0.254,0,0.495
  142.   Patio:
  143.     enabled: true
  144.     ffmpeg:
  145.       hwaccel_args: preset-vaapi
  146.       output_args:
  147.         record: preset-record-generic-audio-aac
  148.       inputs:
  149.         - path:
  150.             rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=0
  151.           input_args: preset-rtsp-restream
  152.           roles:
  153.            - record
  154.         - path:
  155.             rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=2
  156.           roles:
  157.            - detect
  158.     detect:
  159.       enabled: true
  160.       width: 1920
  161.       height: 1080
  162.       fps: 5
  163.       min_initialized: 2
  164.       max_disappeared: 25
  165.  
  166.     motion:
  167.       mask: 0.962,0.097,0.681,0.103,0.681,0.036,0.963,0.028
  168.  
  169.     zones:
  170.       PatioZone:
  171.         coordinates: 0.001,0,0,1,1,1,1,0
  172.         loitering_time: 0
  173.   Front:
  174.     enabled: true
  175.     ffmpeg:
  176.       hwaccel_args: preset-vaapi
  177.       output_args:
  178.         record: preset-record-generic-audio-aac
  179.       inputs:
  180.         - path:
  181.             rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=0
  182.           input_args: preset-rtsp-restream
  183.           roles:
  184.            - record
  185.         - path:
  186.             rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=2
  187.           roles:
  188.            - detect
  189.     detect:
  190.       enabled: true
  191.       width: 1920
  192.       height: 1080
  193.       fps: 5
  194.       min_initialized: 2
  195.       max_disappeared: 25
  196.  
  197.     motion:
  198.       mask:
  199.        - 0.452,0.005,0.447,0.108,0.437,0.169,0.462,0.274,0.455,0.326,0.47,0.338,0.486,0.292,0.506,0.323,0.508,0.382,0.519,0.408,0.55,0.441,0.557,0.485,0.528,0.608,0.659,0.795,0.728,0.538,0.782,0.503,0.805,0.441,0.812,0.356,0.832,0.474,0.855,0.51,0.865,0.585,0.885,0.613,0.831,0.815,0.87,0.915,0.891,0.967,0.94,0.969,0.996,0.913,0.996,0.008
  200.         - 0.258,0.22,0.261,0.272,0.229,0.337,0.199,0.335,0.188,0.263,0.197,0.22,0.226,0.207
  201.         - 0.779,0.541,0.773,0.584,0.742,0.578,0.731,0.609,0.735,0.699,0.737,0.814,0.774,0.84,0.852,0.708,0.878,0.622,0.86,0.602,0.837,0.627,0.83,0.656,0.81,0.634,0.813,0.605,0.826,0.568,0.825,0.537,0.806,0.51
  202.         - 0.195,0.007,0.181,0.049,0.152,0.079,0.123,0.11,0.073,0.103,0.071,0.13,0.132,0.13,0.153,0.099,0.2,0.056,0.211,0
  203.         - 0.05,0.272,0.067,0.303,0.092,0.299,0.105,0.339,0.11,0.411,0.109,0.45,0.012,0.468,0.011,0.297
  204.       threshold: 30
  205.       contour_area: 20
  206.       improve_contrast: true
  207.     zones:
  208.       FrontZone:
  209.         coordinates: 0,0,1,0,0.996,0.997,0,1
  210.         loitering_time: 0
  211.         inertia: 3
  212.  
  213.  
  214.  
  215.   Garage_Inside:
  216.     enabled: true
  217.     ffmpeg:
  218.       hwaccel_args: preset-vaapi
  219.       output_args:
  220.         record: preset-record-generic-audio-aac
  221.       inputs:
  222.         - path:
  223.             rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=0
  224.           input_args: preset-rtsp-restream
  225.           roles:
  226.            - record
  227.         - path:
  228.             rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=2
  229.           roles:
  230.            - detect
  231.     detect:
  232.       enabled: true
  233.       width: 1920
  234.       height: 1080
  235.       fps: 5
  236.       min_initialized: 2
  237.       max_disappeared: 25
  238.  
  239.   Side_Gate:
  240.     enabled: true
  241.     ffmpeg:
  242.       hwaccel_args: preset-vaapi
  243.       output_args:
  244.         record: preset-record-generic-audio-aac
  245.       inputs:
  246.         - path:
  247.             rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=0
  248.           input_args: preset-rtsp-restream
  249.           roles:
  250.            - record
  251.         - path:
  252.             rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=2
  253.           roles:
  254.            - detect
  255.     detect:
  256.       enabled: true
  257.       width: 1920
  258.       height: 1080
  259.       fps: 5
  260.       min_initialized: 2
  261.       max_disappeared: 25
  262.  
  263.  
  264.     motion:
  265.       mask: 0.673,0.029,0.672,0.097,0.961,0.095,0.962,0.029
  266. objects:
  267.   track:
  268.    - person
  269.     - cat
  270.     - dog
  271.     - bicycle
  272.     - motorcycle
  273.   filters:
  274.     person:
  275.       min_score: 0.8  # Require 80% confidence for detections
  276.     cat:
  277.       min_score: 0.7  # Require 70% confidence for detections
  278.     dog:
  279.       min_score: 0.7  # Require 70% confidence for detections
  280.     bicycle:
  281.       min_score: 0.75  # Require 75% confidence for detections
  282.     motorcycle:
  283.       min_score: 0.75  # Require 75% confidence for detections
  284. record:
  285.   enabled: true
  286.   retain:
  287.     days: 14
  288.     mode: all
  289.   alerts:
  290.     retain: {}
  291.     pre_capture: 5
  292.     post_capture: 10
  293.   detections:
  294.     retain: {}
  295.     pre_capture: 5
  296.     post_capture: 10
  297.   sync_recordings: true
  298.  
  299.  
  300. detectors:
  301.   coral:
  302.     type: edgetpu
  303.     device: usb
  304.  
  305. version: 0.15-1
  306.  
  307. logger:
  308.   logs:
  309.     frigate.record.maintainer: debug
  310.  
  311. snapshots:
  312.  # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
  313.   enabled: true
  314.   # Optional: save a clean PNG copy of the snapshot image (default: shown below)
  315.   clean_copy: true
  316.   # Optional: print a timestamp on the snapshots (default: shown below)
  317.   timestamp: false
  318.   # Optional: draw bounding box on the snapshots (default: shown below)
  319.   bounding_box: true
  320.   # Optional: crop the snapshot (default: shown below)
  321.   crop: false
  322.   # Optional: height to resize the snapshot to (default: original size)
  323.   #height: 175
  324.   # Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
  325. #  required_zones: []
  326.   # Optional: Camera override for retention settings (default: global values)
  327.   retain:
  328.    # Required: Default retention days (default: shown below)
  329.     default: 10
  330.     # Optional: Per object retention days
  331.     objects:
  332.       person: 15
  333.   # Optional: quality of the encoded jpeg, 0-100 (default: shown below)
  334.   quality: 70
  335.  
  336. semantic_search:
  337.   enabled: true
  338.   reindex: false
  339.  
  340.  
  341. go2rtc:
  342.   streams:
  343.    # Renamed streams for clarity
  344.     Car_Port_Main_go2rtc:
  345.      - rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=0
  346.     Car_Port_Sub_go2rtc:
  347.      - rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=2
  348.  
  349.     Shed_Main_go2rtc:
  350.      - rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=0
  351.     Shed_Sub_go2rtc:
  352.      - rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=2
  353.  
  354.     Laundry_Main_go2rtc:
  355.      - rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=0
  356.     Laundry_Sub_go2rtc:
  357.      - rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=2
  358.  
  359.     BackYard_Main_go2rtc:
  360.      - rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=0
  361.     BackYard_Sub_go2rtc:
  362.      - rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=2
  363.  
  364.     Patio_Main_go2rtc:
  365.      - rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=0
  366.     Patio_Sub_go2rtc:
  367.      - rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=2
  368.  
  369.     Front_Main_go2rtc:
  370.      - rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=0
  371.     Front_Sub_go2rtc:
  372.      - rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=2
  373.  
  374.     Garage_Inside_Main_go2rtc:
  375.      - rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=0
  376.     Garage_Inside_sub_go2rtc:
  377.      - rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=2
  378.     Side_Gate_Main_go2rtc:
  379.      - rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=0
  380.     Side_Gate_sub_go2rtc:
  381.      - rtsp://[email protected]:554/cam/realmonitor?channel=1&subtype=2
  382.  
  383.   api:
  384.     origin: '*'  # Allow access from external systems like Home Assistant
  385.     listen: :1984    # API port for go2rtc web interface
  386.   webrtc:
  387.     candidates:
  388.      - x  # Your go2rtc server's local IP for direct WebRTC access
  389.     listen: :8555    # WebRTC signaling port
  390.   rtsp:
  391.     listen: :8554    # RTSP port for streams
  392.  
  393.   ffmpeg:
  394.     log: true  # Optional: Enable FFmpeg logging for troubleshooting
  395.  
Advertisement
Add Comment
Please, Sign In to add comment