Created
May 11, 2024 21:20
-
-
Save a2nt/c7bafa2fd2bdef19a229c6873dc67d90 to your computer and use it in GitHub Desktop.
config.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| detectors: | |
| armnn: | |
| type: rknn | |
| core_mask: 0b111 # 0b111 3 cores | |
| model: | |
| # name of yolov8 model or path to your own .rknn model file | |
| # possible values are: | |
| # - default-yolov8n | |
| # - default-yolov8s | |
| # - default-yolov8m | |
| # - default-yolov8l | |
| # - default-yolov8x | |
| # - /config/model_cache/rknn/your_custom_model.rknn | |
| #path: /models/rknn/default-yolov8m-rk3588.rknn | |
| #path: /config/model_cache/rknn/yolov8m-320x320-rk3588.rknn # default-yolov8m | |
| width: 320 | |
| height: 320 | |
| input_pixel_format: bgr | |
| input_tensor: nhwc | |
| ffmpeg: | |
| hwaccel_args: preset-rk-h264 # or preset-rk-h265 | |
| output_args: | |
| record: preset-record-generic-audio-copy # preset-record-generic-audio-aac | |
| #detect: -f rawvideo | |
| #rtmp: -c copy -f flv -flvflags no_duration_filesize | |
| ui: | |
| # Optional: Set the default live mode for cameras in the UI (default: shown below) | |
| live_mode: webrtc | |
| timezone: Etc/GMT-2 | |
| time_format: 24hour | |
| date_style: full | |
| time_style: medium | |
| strftime_fmt: '%a, %H:%M (%d.%m.%Y)' | |
| # Re-stream | |
| #- ffmpeg:camera_0#video=h264/rk#audio=opus | |
| go2rtc: | |
| streams: | |
| camera_0: | |
| - dvrip://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.88.10:34567 | |
| - dvrip://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.88.10:34567/audioback?backchannel=1 | |
| - ffmpeg:camera_0#video=h264/rk#audio=aac | |
| camera_1: | |
| - dvrip://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.88.11:34567 | |
| - dvrip://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.88.11:34567/audioback?backchannel=1 | |
| - ffmpeg:camera_1#video=h264/rk#audio=aac | |
| camera_2: | |
| - dvrip://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.88.12:34567 | |
| - dvrip://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.88.12:34567/audioback?backchannel=1 | |
| - ffmpeg:camera_2#video=h264/rk#audio=aac | |
| camera_3: | |
| - dvrip://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.88.13:34567 | |
| - dvrip://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.88.13:34567/audioback?backchannel=1 | |
| - ffmpeg:camera_3#video=h264/rk#audio=aac | |
| camera_4: | |
| - rtsp://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.88.14:554 | |
| - dvrip://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.88.14:34567/audioback?backchannel=1 | |
| - ffmpeg:camera_4#video=h264/rk#audio=aac | |
| webrtc: | |
| candidates: | |
| - stun:8555 | |
| mqtt: | |
| host: 192.168.88.2 # Docker Host | |
| user: '{FRIGATE_MQTT_USER}' | |
| password: '{FRIGATE_MQTT_PASSWORD}' | |
| stats_interval: 60 | |
| birdseye: | |
| enabled: true | |
| mode: continuous | |
| quality: 1 | |
| width: 2880 | |
| height: 1616 | |
| #audio: | |
| # enabled: true | |
| # listen: | |
| # - scream | |
| # - speech | |
| # - yell | |
| database: | |
| path: /media/frigate/frigate.db | |
| objects: | |
| track: | |
| - person | |
| - car | |
| motion: | |
| threshold: 30 | |
| contour_area: 30 | |
| delta_alpha: 0.2 | |
| frame_alpha: 0.2 | |
| frame_height: 50 | |
| mqtt_off_delay: 30 | |
| record: | |
| enabled: true | |
| retain: | |
| days: 2 | |
| mode: motion | |
| events: | |
| #max_seconds: 300 | |
| pre_capture: 10 # sec | |
| post_capture: 60 # sec | |
| objects: | |
| - person | |
| - car | |
| retain: | |
| default: 7 | |
| mode: active_objects | |
| objects: | |
| person: 10 | |
| car: 3 | |
| snapshots: | |
| enabled: true | |
| timestamp: true | |
| bounding_box: true | |
| crop: false | |
| height: 1080 | |
| retain: | |
| default: 15 | |
| objects: | |
| person: 15 | |
| car: 3 | |
| #rtmp: | |
| # enabled: false | |
| live: | |
| height: 1080 | |
| quality: 1 | |
| timestamp_style: | |
| position: br | |
| format: '%d.%m.%Y %H:%M:%S' | |
| color: | |
| red: 255 | |
| green: 255 | |
| blue: 255 | |
| thickness: 2 | |
| effect: solid | |
| detect: | |
| enabled: true | |
| fps: 10 | |
| max_disappeared: 250 | |
| stationary: | |
| interval: 5000 | |
| threshold: 500 | |
| # Optional: Define a maximum number of frames for tracking a stationary object (default: not set, track forever) | |
| #max_frames: | |
| # default: 3000 # 3000 frames / 5 fps = 10 mins | |
| logger: | |
| default: info | |
| logs: | |
| frigate.mqtt: error | |
| # frigate.record.maintainer: debug | |
| cameras: | |
| camera_0: | |
| ffmpeg: | |
| output_args: | |
| record: preset-record-generic-audio-copy | |
| inputs: | |
| - path: rtsp://127.0.0.1:8554/camera_0 | |
| roles: | |
| - record | |
| - detect | |
| - audio | |
| detect: | |
| width: 2880 | |
| height: 1616 | |
| zones: | |
| inner_entrance-0: | |
| coordinates: 0,1616,2880,1616,2880,1301,2369,755,0,1044 | |
| outside_entrance_road-0: | |
| coordinates: 2607,824,2880,975,2880,646,2764,575,2696,577,2388,630,2328,665,2387,699,2451,755 | |
| outside_entrance_house1-0: | |
| coordinates: | |
| 695,685,1611,501,1620,568,2028,517,2114,561,2132,556,2213,598,2245,612,2273,609,2328,623,2479,695,1559,824,713,925 | |
| outside_entrance_house2-0: | |
| coordinates: 2658,653,2522,589,2319,494,2333,429,2880,408,2880,646 | |
| mqtt: | |
| enabled: true | |
| timestamp: true | |
| bounding_box: true | |
| crop: true | |
| height: 1080 | |
| quality: 100 | |
| camera_1: | |
| ffmpeg: | |
| output_args: | |
| record: preset-record-generic-audio-copy | |
| inputs: | |
| - path: rtsp://127.0.0.1:8554/camera_1 | |
| roles: | |
| - record | |
| - detect | |
| - audio | |
| detect: | |
| width: 2880 | |
| height: 1616 | |
| zones: | |
| inner_garden-1: | |
| coordinates: 2880,813,1807,275,1696,242,0,260,0,1616,2880,1616 | |
| uyutni_pereulok_all-1: | |
| coordinates: 65,0,67,209,1177,185,1781,218,2880,697,2880,0 | |
| uyutni_pereulok_road-1: | |
| coordinates: 129,256,1823,224,1849,196,1246,49,983,0,874,0,1136,104,125,192 | |
| mqtt: | |
| enabled: true | |
| timestamp: true | |
| bounding_box: true | |
| crop: true | |
| height: 1080 | |
| quality: 100 | |
| camera_2: | |
| ffmpeg: | |
| output_args: | |
| record: preset-record-generic-audio-copy | |
| inputs: | |
| - path: rtsp://127.0.0.1:8554/camera_2 | |
| input_args: preset-rtsp-restream | |
| roles: | |
| - record | |
| - detect | |
| - audio | |
| detect: | |
| width: 2880 | |
| height: 1616 | |
| zones: | |
| gate_inner-2: | |
| coordinates: 413,693,460,0,0,0,0,1616,455,1616 | |
| gate_outer_near-2: | |
| coordinates: 1285,1616,1832,1616,1664,1325,1512,1032,1112,408,984,193,406,0,404,506,429,1616 | |
| gate_outer_road-2: | |
| coordinates: 2880,1616,2880,743,2146,0,517,0,515,86,907,256,1821,1616 | |
| mqtt: | |
| enabled: true | |
| timestamp: true | |
| bounding_box: true | |
| crop: true | |
| height: 1080 | |
| quality: 100 | |
| camera_3: | |
| ffmpeg: | |
| output_args: | |
| record: preset-record-generic-audio-copy | |
| inputs: | |
| - path: rtsp://127.0.0.1:8554/camera_3 | |
| roles: | |
| - record | |
| - detect | |
| - audio | |
| detect: | |
| width: 2880 | |
| height: 1616 | |
| mqtt: | |
| enabled: true | |
| timestamp: true | |
| bounding_box: true | |
| crop: true | |
| height: 1080 | |
| quality: 100 | |
| zones: | |
| spokoinaya_road-3: | |
| coordinates: | |
| 0,180,1182,146,2338,372,2195,229,2208,192,2368,318,2546,434,2746,646,2716,704,436,1165,0,1165 | |
| inner-3: | |
| coordinates: 2880,895,2880,1616,2245,1616,2687,1157 | |
| outside_garden-3: | |
| coordinates: 0,1616,2249,1616,2660,1204,2880,886,2669,724,1830,926,0,1201 | |
| motion: {} | |
| camera_4: | |
| ffmpeg: | |
| output_args: | |
| record: preset-record-generic-audio-copy | |
| inputs: | |
| - path: rtsp://127.0.0.1:8554/camera_4 | |
| roles: | |
| - record | |
| - detect | |
| - audio | |
| detect: | |
| width: 2880 | |
| height: 1616 | |
| mqtt: | |
| enabled: true | |
| timestamp: true | |
| bounding_box: true | |
| crop: true | |
| height: 1080 | |
| quality: 100 | |
| camera_groups: | |
| Outside: | |
| order: 0 | |
| icon: LuCar | |
| cameras: | |
| - camera_2 | |
| - camera_3 | |
| Inner: | |
| order: 1 | |
| icon: LuPalmtree | |
| cameras: | |
| - camera_0 | |
| - camera_1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment