all
This commit is contained in:
3
Video/Frigate/LICENSE
Normal file
3
Video/Frigate/LICENSE
Normal file
@ -0,0 +1,3 @@
|
||||
Additional permission under GNU GPL version 3 section 7
|
||||
|
||||
If you modify this Program, or any covered work, by linking or combining it with [name of library] (or a modified version of that library), containing parts covered by the terms of [name of library's license], the licensors of this Program grant you additional permission to convey the resulting work. Corresponding Source for a non-source form of such a combination shall include the source code for the parts of [name of library] used as well as that of the covered work.
|
66
Video/Frigate/README.md
Normal file
66
Video/Frigate/README.md
Normal file
@ -0,0 +1,66 @@
|
||||

|
||||
URL :
|
||||
|
||||
# Frigate
|
||||
|
||||
|
||||
|
||||
# Téléchargement, Configuration et Lancement
|
||||
|
||||
## Téléchargement de Frigate
|
||||
|
||||
Saisir la commande pour télécharger la source
|
||||
```bash
|
||||
git clone https://git.tips-of-mine.fr/Tips-Of-Mine/Docker.git
|
||||
```
|
||||
|
||||
Saisir la commande pour vous rendre dans le dossier
|
||||
```bash
|
||||
cd Video\Frigate
|
||||
```
|
||||
|
||||
## Modifier la configuration de Frigate
|
||||
|
||||
Saisir la commande pour vous rendre dans le dossier
|
||||
```bash
|
||||
cd Video\Frigate
|
||||
```
|
||||
|
||||
Nous éditons le fichier de configuration
|
||||
```bash
|
||||
nano .env
|
||||
```
|
||||
|
||||
Nous modifions les variables dont nous avons besoin.
|
||||
|
||||
## Lancement de Frigate
|
||||
|
||||
Pour utiliser Frigate tout seul
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
Pour utiliser Frigate avec Traefik
|
||||
```bash
|
||||
docker compose -f docker-compose-traefik.yml up -d
|
||||
```
|
||||
|
||||
# Utilisation
|
||||
|
||||
## Accueil
|
||||
|
||||
Ouvrir une page web avec l'url :
|
||||
Pour une utilisation tout seul
|
||||
|
||||
http://10.0.4.29:3000
|
||||
|
||||
Pour une utilisation avec Traefik
|
||||
|
||||
https://Frigate.10.0.4.29.traefik.me`)"
|
||||
|
||||
|
||||
# More info
|
||||
- more information on the website [Tips-Of-Mine](https://www.tips-of-mine.fr/)
|
||||
|
||||
# Buy me a coffe
|
||||
<a href='https://ko-fi.com/R5R2KNI3N' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi4.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
96
Video/Frigate/config.yml
Normal file
96
Video/Frigate/config.yml
Normal file
@ -0,0 +1,96 @@
|
||||
cameras:
|
||||
garden:
|
||||
ffmpeg:
|
||||
inputs:
|
||||
- path: rtsp://cameraIP:554/s0
|
||||
roles:
|
||||
- detect
|
||||
- rtmp
|
||||
detect:
|
||||
width: 1920 # <---- update for your camera's resolution
|
||||
height: 1080 # <---- update for your camera's resolution
|
||||
fps: 25
|
||||
garage:
|
||||
ffmpeg:
|
||||
inputs:
|
||||
- path: rtsp://cameraIP:554/s0
|
||||
roles:
|
||||
- detect
|
||||
- rtmp
|
||||
detect:
|
||||
width: 1920 # <---- update for your camera's resolution
|
||||
height: 1080 # <---- update for your camera's resolution
|
||||
fps: 25
|
||||
motion:
|
||||
mask:
|
||||
- 0,0,1920,0,1920,393,297,241,314,464,0,541
|
||||
|
||||
# Optional: Database configuration
|
||||
database:
|
||||
# The path to store the SQLite DB (default: shown below)
|
||||
path: /media/frigate/frigate.db
|
||||
|
||||
detectors:
|
||||
coral1:
|
||||
type: edgetpu
|
||||
device: pci:0
|
||||
coral2:
|
||||
type: edgetpu
|
||||
device: pci:1
|
||||
|
||||
objects:
|
||||
track:
|
||||
- person
|
||||
- dog
|
||||
- cat
|
||||
- bird
|
||||
|
||||
snapshots:
|
||||
enabled: True
|
||||
timestamp: true
|
||||
bounding_box: true
|
||||
retain:
|
||||
default: 30
|
||||
mqtt:
|
||||
host: 192.168.200.14
|
||||
|
||||
ffmpeg:
|
||||
#hwaccel_args:
|
||||
# - -hwaccel
|
||||
# - vaapi
|
||||
# - -hwaccel_device
|
||||
# - /dev/dri/renderD128
|
||||
# - -hwaccel_output_format
|
||||
# - yuv420p
|
||||
output_args:
|
||||
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
|
||||
|
||||
record:
|
||||
enabled: True
|
||||
events:
|
||||
pre_capture: 5
|
||||
post_capture: 5
|
||||
retain:
|
||||
default: 30
|
||||
mode: active_objects
|
||||
objects:
|
||||
- person
|
||||
- bird
|
||||
- cat
|
||||
- dog
|
||||
|
||||
birdseye:
|
||||
# Optional: Enable birdseye view (default: shown below)
|
||||
enabled: True
|
||||
# Optional: Width of the output resolution (default: shown below)
|
||||
width: 1280
|
||||
# Optional: Height of the output resolution (default: shown below)
|
||||
height: 720
|
||||
# Optional: Encoding quality of the mpeg1 feed (default: shown below)
|
||||
# 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources.
|
||||
quality: 8
|
||||
# Optional: Mode of the view. Available options are: objects, motion, and continuous
|
||||
# objects - cameras are included if they have had a tracked object within the last 30 seconds
|
||||
# motion - cameras are included if motion was detected in the last 30 seconds
|
||||
# continuous - all cameras are included always
|
||||
mode: continuous
|
66
Video/Frigate/docker-compose-traefik.yml
Normal file
66
Video/Frigate/docker-compose-traefik.yml
Normal file
@ -0,0 +1,66 @@
|
||||

|
||||
URL : HHHHH
|
||||
|
||||
# Fichier-Stockage
|
||||
|
||||
GGGGG
|
||||
|
||||
# Téléchargement, Configuration et Lancement
|
||||
|
||||
## Téléchargement de Fichier-Stockage
|
||||
|
||||
Saisir la commande pour télécharger la source
|
||||
```bash
|
||||
git clone https://git.tips-of-mine.fr/Tips-Of-Mine/Docker.git
|
||||
```
|
||||
|
||||
Saisir la commande pour vous rendre dans le dossier
|
||||
```bash
|
||||
cd AAAAA\Fichier-Stockage
|
||||
```
|
||||
|
||||
## Modifier la configuration de Fichier-Stockage
|
||||
|
||||
Saisir la commande pour vous rendre dans le dossier
|
||||
```bash
|
||||
cd AAAAA\Fichier-Stockage
|
||||
```
|
||||
|
||||
Nous éditons le fichier de configuration
|
||||
```bash
|
||||
nano .env
|
||||
```
|
||||
|
||||
Nous modifions les variables dont nous avons besoin.
|
||||
|
||||
## Lancement de Fichier-Stockage
|
||||
|
||||
Pour utiliser Fichier-Stockage tout seul
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
Pour utiliser Fichier-Stockage avec Traefik
|
||||
```bash
|
||||
docker compose -f docker-compose-traefik.yml up -d
|
||||
```
|
||||
|
||||
# Utilisation
|
||||
|
||||
## Accueil
|
||||
|
||||
Ouvrir une page web avec l'url :
|
||||
Pour une utilisation tout seul
|
||||
|
||||
http://10.0.4.29:3000
|
||||
|
||||
Pour une utilisation avec Traefik
|
||||
|
||||
https://Fichier-Stockage.10.0.4.29.traefik.me`)"
|
||||
|
||||
|
||||
# More info
|
||||
- more information on the website [Tips-Of-Mine](https://www.tips-of-mine.fr/)
|
||||
|
||||
# Buy me a coffe
|
||||
<a href='https://ko-fi.com/R5R2KNI3N' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi4.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
46
Video/Frigate/docker-compose.yaml
Normal file
46
Video/Frigate/docker-compose.yaml
Normal file
@ -0,0 +1,46 @@
|
||||
version: "3.9"
|
||||
services:
|
||||
frigate:
|
||||
container_name: frigate
|
||||
# privileged: true # this may not be necessary for all setups
|
||||
restart: unless-stopped
|
||||
image: ghcr.io/blakeblackshear/frigate:stable
|
||||
devices:
|
||||
#- /dev/bus/usb:/dev/bus/usb
|
||||
- /dev/apex_0:/dev/apex_0
|
||||
- /dev/apex_1:/dev/apex_1
|
||||
#- /dev/dri/renderD128:/dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /home/ubuntu/docker/frigate/config.yml:/config/config.yml:ro
|
||||
- /home/ubuntu/freenas/Frigate/media/clips:/media/frigate/clips
|
||||
- /home/ubuntu/freenas/Frigate/media/recordings:/media/frigate/recordings
|
||||
- /home/ubuntu/docker/frigate/database:/media/frigate
|
||||
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
|
||||
target: /tmp/cache
|
||||
tmpfs:
|
||||
size: 2000000000
|
||||
ports:
|
||||
- "5000:5000"
|
||||
- "1935:1935" # RTMP feeds (deprecated)
|
||||
- "8554:8554" # RTSP feeds
|
||||
environment:
|
||||
FRIGATE_RTSP_PASSWORD: "password"
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.frigate.entrypoints=http"
|
||||
- "traefik.http.routers.frigate.rule=Host(`frigate.jimsgarage.co.uk`)"
|
||||
- "traefik.http.middlewares.frigate-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.frigate.middlewares=frigate-https-redirect"
|
||||
- "traefik.http.routers.frigate-secure.entrypoints=https"
|
||||
- "traefik.http.routers.frigate-secure.rule=Host(`frigate.jimsgarage.co.uk`)"
|
||||
- "traefik.http.routers.frigate-secure.tls=true"
|
||||
- "traefik.http.routers.frigate-secure.service=frigate"
|
||||
- "traefik.http.services.frigate.loadbalancer.server.port=5000"
|
||||
- "traefik.docker.network=proxy"
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
8
Video/Frigate/docker-compose.yml
Normal file
8
Video/Frigate/docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
#### NETWORKS
|
||||
networks:
|
||||
back_network:
|
||||
driver: bridge
|
||||
attachable: true
|
||||
|
||||
#### SERVICES
|
||||
services:
|
BIN
Video/Frigate/img/banniere-Frigate.png
Normal file
BIN
Video/Frigate/img/banniere-Frigate.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
BIN
Video/Frigate/img/logo-Frigate.png
Normal file
BIN
Video/Frigate/img/logo-Frigate.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Reference in New Issue
Block a user