Last active
September 20, 2021 17:50
-
-
Save mitchross/bd569ad201a8b9ac9e1d8ecbd2515cb2 to your computer and use it in GitHub Desktop.
Frigate-Local-Dev
This file contains 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
mqtt: | |
host: 192.168.1.x | |
# only if devcontainer #host: mqqt | |
living-room: | |
ffmpeg: | |
inputs: | |
- path: rtsp://192.168.1.x:8554/living-room | |
roles: | |
- detect | |
- record | |
# Optional: Live stream configuration for WebUI | |
live: | |
# Optional: Set the height of the live stream. (default: 720) | |
# This must be less than or equal to the height of the detect stream. Lower resolutions | |
# reduce bandwidth required for viewing the live stream. Width is computed to match known aspect ratio. | |
height: 1080 | |
# Optional: Set the encode quality of the live stream (default: shown below) | |
# 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources. | |
quality: 1 | |
snapshots: | |
bounding_box: true | |
detect: | |
width: 1280 | |
height: 720 | |
fps: 5 | |
record: | |
enabled: true | |
retain_days: 15 | |
objects: | |
track: | |
- person | |
- car | |
- dog | |
- cat | |
detect: | |
width: 1280 | |
height: 720 |
This file contains 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
version: "3" | |
services: | |
dev: | |
container_name: frigate-dev | |
user: vscode | |
privileged: true | |
shm_size: "256mb" | |
build: | |
context: . | |
dockerfile: docker/Dockerfile.dev | |
volumes: | |
- /etc/localtime:/etc/localtime:ro | |
- .:/lab/frigate:cached | |
- ./config/config.yml:/config/config.yml:ro | |
- ./debug:/media/frigate | |
- /dev/bus/usb:/dev/bus/usb | |
- /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware | |
ports: | |
- "1935:1935" | |
- "5000:5000" | |
- "5001:5001" | |
- "8080:8080" | |
entrypoint: ["sudo", "/init"] | |
command: /bin/sh -c "while sleep 1000; do :; done" | |
mqtt: | |
container_name: mqtt | |
image: eclipse-mosquitto:1.6 | |
ports: | |
- "1883:1883" |
This file contains 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
0. pull latest v9 branch. run "make -j 4 aarch64_frigate" | |
1. Open VS Code. Click run as container pop up | |
2. in VS dev container, run "python3 -m frigate" | |
3. Open new terminal in vs dev container and run "cd web && npm install", then npm start | |
4. Might need to CHOWN the debug directory to user not root. If ls -all shows root owns "debug" folder than CHOWN / Chmod it to current user. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment