Incorporate PR review suggestions, minor text changes

This commit is contained in:
my-umd 2023-04-22 10:31:16 -04:00 committed by GitHub
parent 61a6568b99
commit 714a29adf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,9 +279,9 @@ You need to configure 2 paths:
## QNAP NAS
The instruction was tested on a QNAP with an Intel J3455 CPU and 16G RAM, running QTS 4.5.4.2117.
These instructions were tested on a QNAP with an Intel J3455 CPU and 16G RAM, running QTS 4.5.4.2117.
QNAP has a graphic tool named Container Station to intall and manage docker containers. However, there are two limitations on Container Station that make it unsuitable to install Frigate:
QNAP has a graphic tool named Container Station to intall and manage docker containers. However, there are two limitations with Container Station that make it unsuitable to install Frigate:
1. Container Station does not incorporate GitHub Container Registry (ghcr), which hosts Frigate docker image version 0.12.0 and above.
2. Container Station uses default 64 Mb shared memory size (shm-size), and does not have a mechanism to adjust it. Frigate requires a larger shm-size to be able to work properly with more than two high resolution cameras.
@ -298,14 +298,14 @@ Because of above limitations, the installation has to be done from command line.
**Installation**
Run the following commands to install Frigate (using v0.12.0 as example):
Run the following commands to install Frigate (using `stable` version as example):
```bash
# Download Frigate image
docker pull ghcr.io/blakeblackshear/frigate:0.12.0
docker pull ghcr.io/blakeblackshear/frigate:stable
# Create directory to host Frigate config file on QNAP file system.
# E.g., you can choose to create it under /share/Container.
# Copy the config file prepared in step 2 into the newly created directory.
mkdir -p /share/Container/frigate/config
# Copy the config file prepared in step 2 into the newly created config directory.
cp path/to/your/config/file /share/Container/frigate/config
# Create directory to host Frigate media files on QNAP file system.
# (if you have a surveilliance disk, create media directory on the surveilliance disk.
@ -314,13 +314,14 @@ mkdir -p /share/share_vol2/frigate/media
# Create Frigate docker container. Replace shm-size value with the value from preparation step 3.
# Also replace the time zone value for 'TZ' in the sample command.
# Example command will create a docker container that uses at most 2 CPUs and 4G RAM.
# You may need to add "--env=LIBVA_DRIVER_NAME=i965 \" to the following docker run command if you
# have certain CPU (e.g., J4125). See https://docs.frigate.video/configuration/hardware_acceleration.
docker run \
--name=frigate \
--shm-size=256m \
--restart=unless-stopped \
--env=TZ=America/New_York \
--env=LIBVA_DRIVER_NAME=i965 \
--env=FRIGATE_RTSP_PASSWORD=frigate_password \
--volume=/share/Container/frigate/config:/config:rw \
--volume=/share/share_vol2/frigate/media:/media/frigate:rw \
--network=bridge \
@ -337,7 +338,7 @@ docker run \
--cpus="2" \
--detach=true \
-t \
ghcr.io/blakeblackshear/frigate:0.12.0
ghcr.io/blakeblackshear/frigate:stable
```
Log into QNAP, open Container Station. Frigate docker container should be listed under 'Overview' and running. Visit Frigate Web UI by clicking Frigate docker, and then clicking the URL shown at the top of the detail page.