N1启动成功了
docker run -d
--name frigate
--restart=unless-stopped
--mount type=tmpfs,target=/tmp/cache,tmpfs-size=1000000000
--device /dev/bus/usb:/dev/bus/usb
--device /dev/dri/card0
--shm-size=64m
-v /mnt/sda4/gongx/media:/media/frigate
-v /mnt/sda4/gongx/config:/config
-v /etc/localtime:/etc/localtime:ro
-e FRIGATE_RTSP_PASSWORD='password'
-p 5000:5000
-p 8554:8554
-p 8555:8555/tcp
-p 8555:8555/udp
ghcr.io/blakeblackshear/frigate:stable
视频说明
https://www.bilibili.com/video/BV1X3411p7Gq/?spm_id_from=333.880.my_history.page.click&vd_source=744cd40df28613de0c2d71b341eb9bd1
https://www.truenasscale.com/2022/03/26/811.html
在安装之前我们需要先写一个配置文件
大家自行创建存放frigate的数据集或者文件夹,在文件夹下创建config.yml如下
以上启动失败就是配置文件config.yml写错了。可以用简单的配置试试
mqtt:
enabled: False
birdseye:
enabled: False
mode: motion
width: 1280
height: 720
objects:
track:
- person
- car
- motorcyle
- cat
- dog
# Optional: list of objects to track from labelmap.txt (default: shown below)
ffmpeg:
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
cameras:
cam:
mqtt:
timestamp: False
bounding_box: False
crop: True
quality: 100
height: 500
ffmpeg:
inputs:
- path: rtsp://192.168.1.6:554/onvif1
roles:
- detect
- rtmp
- record
detect:
height: 720
width: 1280
fps: 5
record:
enabled: True
# Optional: timeout for highest scoring image before allowing it
# to be replaced by a newer image. (default: shown below)
retain:
days: 3
snapshots:
enabled: True