From cf62dccef7e1ff9774b1e8ad0d9bf6723d235eeb Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 30 Apr 2021 21:11:47 -0700 Subject: [PATCH 01/13] Correct spelling Home Assistant --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 78040656a..012a856af 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,11 @@ # Frigate - NVR With Realtime Object Detection for IP Cameras -A complete and local NVR designed for HomeAssistant with AI object detection. Uses OpenCV and Tensorflow to perform realtime object detection locally for IP cameras. +A complete and local NVR designed for [Home Assistant](https://www.home-assistant.io) with AI object detection. Uses OpenCV and Tensorflow to perform realtime object detection locally for IP cameras. Use of a [Google Coral Accelerator](https://coral.ai/products/) is optional, but highly recommended. The Coral will outperform even the best CPUs and can process 100+ FPS with very little overhead. -- Tight integration with HomeAssistant via a [custom component](https://github.com/blakeblackshear/frigate-hass-integration) +- Tight integration with Home Assistant via a [custom component](https://github.com/blakeblackshear/frigate-hass-integration) - Designed to minimize resource use and maximize performance by only looking for objects when and where it is necessary - Leverages multiprocessing heavily with an emphasis on realtime over processing every frame - Uses a very low overhead motion detection to determine where to run object detection @@ -26,7 +26,7 @@ View the documentation at https://blakeblackshear.github.io/frigate If you would like to make a donation to support development, please use [Github Sponsors](https://github.com/sponsors/blakeblackshear). ## Screenshots -Integration into HomeAssistant +Integration into Home Assistant
From 20a52bc4e6586dafffd96478599113e4893b76ec Mon Sep 17 00:00:00 2001 From: Manuel Date: Fri, 7 May 2021 12:09:07 +0200 Subject: [PATCH 02/13] Update installation.md Added missing \ in line 70 --- docs/docs/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/installation.md b/docs/docs/installation.md index bcd56ca7a..e0ca3fdb6 100644 --- a/docs/docs/installation.md +++ b/docs/docs/installation.md @@ -67,7 +67,7 @@ docker run -d \ --restart=unless-stopped \ --mount type=tmpfs,target=/tmp/cache,tmpfs-size=1000000000 \ --device /dev/bus/usb:/dev/bus/usb \ - --device /dev/dri/renderD128 + --device /dev/dri/renderD128 \ -v :/media/frigate \ -v :/config/config.yml:ro \ -v /etc/localtime:/etc/localtime:ro \ From 33a04c425b44719fb48c878f9614db66c9d34d86 Mon Sep 17 00:00:00 2001 From: Whytey Date: Tue, 11 May 2021 17:33:51 +1000 Subject: [PATCH 03/13] Add MJPEG example --- docs/docs/configuration/cameras.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/docs/configuration/cameras.md b/docs/docs/configuration/cameras.md index 00b4d0c2e..8a8e54d1f 100644 --- a/docs/docs/configuration/cameras.md +++ b/docs/docs/configuration/cameras.md @@ -388,6 +388,34 @@ cameras: ## Camera specific configuration +### MJPEG Cameras + +The input parameters need to be adjusted for MJPEG cameras + +```yaml + input_args: + - -avoid_negative_ts + - make_zero + - -fflags + - nobuffer + - -flags + - low_delay + - -strict + - experimental + - -fflags + - +genpts+discardcorrupt + - -r + - '3' + - -use_wallclock_as_timestamps + - '1' +``` + +```yaml + output_args: + record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an + clips: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an +``` + ### RTMP Cameras The input parameters need to be adjusted for RTMP cameras From 16effa3938ff274c2eba5984157a429445ce860d Mon Sep 17 00:00:00 2001 From: Whytey Date: Tue, 11 May 2021 17:34:23 +1000 Subject: [PATCH 04/13] Update cameras.md --- docs/docs/configuration/cameras.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/configuration/cameras.md b/docs/docs/configuration/cameras.md index 8a8e54d1f..813222616 100644 --- a/docs/docs/configuration/cameras.md +++ b/docs/docs/configuration/cameras.md @@ -390,7 +390,7 @@ cameras: ### MJPEG Cameras -The input parameters need to be adjusted for MJPEG cameras +The input and output parameters need to be adjusted for MJPEG cameras ```yaml input_args: From d7a237677a5a774f0d531b930c989f7466db549f Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 11 May 2021 06:43:20 -0500 Subject: [PATCH 05/13] Update cameras.md --- docs/docs/configuration/cameras.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/docs/configuration/cameras.md b/docs/docs/configuration/cameras.md index 813222616..7d474bc6c 100644 --- a/docs/docs/configuration/cameras.md +++ b/docs/docs/configuration/cameras.md @@ -410,10 +410,12 @@ The input and output parameters need to be adjusted for MJPEG cameras - '1' ``` +Note that mjpeg cameras require encoding the video into h264 for clips, recording, and rtmp roles. This will use significantly more CPU than if the cameras supported h264 feeds directly. ```yaml output_args: record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an clips: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an + rtmp: -c:v libx264 -an -f flv ``` ### RTMP Cameras From ad85beea9135d9e64f52be64e0056d8c27f87127 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 11 May 2021 06:45:03 -0500 Subject: [PATCH 06/13] Update cameras.md --- docs/docs/configuration/cameras.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/configuration/cameras.md b/docs/docs/configuration/cameras.md index 7d474bc6c..d63b812cb 100644 --- a/docs/docs/configuration/cameras.md +++ b/docs/docs/configuration/cameras.md @@ -405,7 +405,7 @@ The input and output parameters need to be adjusted for MJPEG cameras - -fflags - +genpts+discardcorrupt - -r - - '3' + - '3' # <---- adjust depending on your desired frame rate from the mjpeg image - -use_wallclock_as_timestamps - '1' ``` From 53bb69621c0fd4afc1c3ed75cc36137a01eaf260 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 12 May 2021 10:08:47 +0000 Subject: [PATCH 07/13] build(deps-dev): bump postcss from 8.2.2 to 8.2.10 in /web Bumps [postcss](https://github.com/postcss/postcss) from 8.2.2 to 8.2.10. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.2.2...8.2.10) Signed-off-by: dependabot[bot] --- web/package-lock.json | 24 ++++++++++++------------ web/package.json | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/web/package-lock.json b/web/package-lock.json index 678a75720..b12e0bc76 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -8936,9 +8936,9 @@ } }, "nanoid": { - "version": "3.1.20", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.20.tgz", - "integrity": "sha512-a1cQNyczgKbLX9jwbS/+d7W8fX/RfgYR7lVWwWOGIPNgK2m0MWvrGF6/m4kk6U3QcFMnZf3RIhL0v2Jgh/0Uxw==", + "version": "3.1.23", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.23.tgz", + "integrity": "sha512-FiB0kzdP0FFVGDKlRLEQ1BgDzU87dy5NnzjeW9YZNt+/c3+q82EQDUwniSAUxp/F0gFNI1ZhKU1FqYsMuqZVnw==", "dev": true }, "nanomatch": { @@ -9448,20 +9448,20 @@ "dev": true }, "postcss": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.2.2.tgz", - "integrity": "sha512-HM1NDNWLgglJPQQMNwvLxgH2KcrKZklKLi/xXYIOaqQB57p/pDWEJNS83PVICYsn1Dg/9C26TiejNr422/ePaQ==", + "version": "8.2.10", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.2.10.tgz", + "integrity": "sha512-b/h7CPV7QEdrqIxtAf2j31U5ef05uBDuvoXv6L51Q4rcS1jdlXAVKJv+atCFdUXYl9dyTHGyoMzIepwowRJjFw==", "dev": true, "requires": { - "colorette": "^1.2.1", - "nanoid": "^3.1.20", + "colorette": "^1.2.2", + "nanoid": "^3.1.22", "source-map": "^0.6.1" }, "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "colorette": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.2.tgz", + "integrity": "sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==", "dev": true } } diff --git a/web/package.json b/web/package.json index 68419e2ed..164eb4fb8 100644 --- a/web/package.json +++ b/web/package.json @@ -35,7 +35,7 @@ "eslint-plugin-jest": "^24.1.3", "eslint-plugin-testing-library": "^3.10.1", "jest": "^26.6.3", - "postcss": "^8.2.2", + "postcss": "^8.2.10", "postcss-cli": "^8.3.1", "prettier": "^2.2.1", "rimraf": "^3.0.2", From 00d6036788db6ddc0e31ae399f71b3a696c11ba8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 May 2021 23:59:42 +0000 Subject: [PATCH 08/13] build(deps): bump lodash from 4.17.20 to 4.17.21 in /web Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21) Signed-off-by: dependabot[bot] --- web/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/package-lock.json b/web/package-lock.json index b12e0bc76..0164aee13 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -8680,9 +8680,9 @@ } }, "lodash": { - "version": "4.17.20", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", - "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "dev": true }, "lodash.difference": { From e3a8448a231a0ad6a8738127f0e72c45292d9ab5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 May 2021 23:35:55 +0000 Subject: [PATCH 09/13] build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 in /web Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9. - [Release notes](https://github.com/npm/hosted-git-info/releases) - [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md) - [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9) Signed-off-by: dependabot[bot] --- web/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/package-lock.json b/web/package-lock.json index 0164aee13..d513259f2 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -6544,9 +6544,9 @@ "dev": true }, "hosted-git-info": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz", - "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==", + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", "dev": true }, "html-encoding-sniffer": { From 6379f5cd5ea3ee87f775dac83535d5d107824670 Mon Sep 17 00:00:00 2001 From: Colin McCambridge Date: Wed, 14 Apr 2021 22:31:20 -0500 Subject: [PATCH 10/13] Update nvdec.md `covid` --> `cuvid` in example arguments. --- docs/docs/configuration/nvdec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/configuration/nvdec.md b/docs/docs/configuration/nvdec.md index 0037495f6..b2ec01a47 100644 --- a/docs/docs/configuration/nvdec.md +++ b/docs/docs/configuration/nvdec.md @@ -55,7 +55,7 @@ A list of supported codecs (you can use `ffmpeg -decoders | grep cuvid` in the c ``` For example, for H265 video (hevc), you'll select `hevc_cuvid`. Add -`-c:v hevc_covid` to your ffmpeg input arguments: +`-c:v hevc_cuvid` to your ffmpeg input arguments: ``` ffmpeg: From 3eb0021207410521d8d5b95a7b19681d985d06dd Mon Sep 17 00:00:00 2001 From: digiblur <3240875+digiblur@users.noreply.github.com> Date: Fri, 16 Apr 2021 21:34:45 -0500 Subject: [PATCH 11/13] Update detectors.md Add example for dual PCIe --- docs/docs/configuration/detectors.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/docs/configuration/detectors.md b/docs/docs/configuration/detectors.md index 3e59e6792..a7bbdab79 100644 --- a/docs/docs/configuration/detectors.md +++ b/docs/docs/configuration/detectors.md @@ -30,6 +30,18 @@ detectors: device: usb:1 ``` +Multiple PCIE/M.2 Corals: + +```yaml +detectors: + coral1: + type: edgetpu + device: pci:0 + coral2: + type: edgetpu + device: pci:1 +``` + Mixing Corals: ```yaml From ff2eba5b9fcde1c85805893de41d1e635f7a65da Mon Sep 17 00:00:00 2001 From: peyanski Date: Thu, 22 Apr 2021 10:26:04 +0300 Subject: [PATCH 12/13] Create howtos.md Community guides and How-To's section. Feel free to approve, move, edit or reject the changes. Either way keep up the good work, Kiril --- docs/docs/usage/howtos.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/docs/usage/howtos.md diff --git a/docs/docs/usage/howtos.md b/docs/docs/usage/howtos.md new file mode 100644 index 000000000..014842381 --- /dev/null +++ b/docs/docs/usage/howtos.md @@ -0,0 +1,15 @@ +--- +id: howtos +title: Community Guides: +sidebar_label: Community Guides +--- + +## Communitiy Guides/How-To's + +You can find here some of the communitiy videos and articles about Frigate: + +- Home Assistant Frigate integration for local image recognition (YouTube video) - [LINK](https://youtu.be/Q2UT78lFQpo) +- Home Assistant Frigate integration for local image recognition (Article) - [LINK](https://peyanski.com/home-assistant-frigate-integration/) +- Best Camera AI Person & Object Detection - How to Setup Frigate w/ Home Assistant (YouTube video) - [LINK](https://youtu.be/V8vGdoYO6-Y) + +If you find more good Frigate guides - let us know! From f667bd90662024d9c3ddba576997687ef83f3188 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Wed, 12 May 2021 06:55:33 -0500 Subject: [PATCH 13/13] Update howtos.md --- docs/docs/usage/howtos.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/usage/howtos.md b/docs/docs/usage/howtos.md index 014842381..65aa2362d 100644 --- a/docs/docs/usage/howtos.md +++ b/docs/docs/usage/howtos.md @@ -1,6 +1,6 @@ --- id: howtos -title: Community Guides: +title: Community Guides sidebar_label: Community Guides ---