[Camera Support]: Moved to new server - streams slow/not working #16003
-
Describe the problem you are havingI've moved from a old server that was running bare metal Debian with Docker, and that was all working great however the Nvidia card in it was very old and I couldn't run enough streams for my setup (I'd run out of memory). So I've moved it to Proxmox. The issues I'm running into are essentially that the streams run far behind/stop, and just stop updating. Right now the time is 23:20 local. Most look completely frozen but refresh every 10-15 seconds at best
Camera details
I've tried so many things and I'm super frustrated!
Version0.14.1-f4f3cfa What browser(s) are you using?Firefox 134 Frigate config file# yaml-language-server: $schema=https://frigate.roos.network/api/config/schema.json
mqtt:
host: 192.168.53.100
port: 1883
user: frigate
password: '{FRIGATE_MQTT_PASSWORD}'
# To be looked at in the future...
# https://docs.frigate.video/guides/ha_network_storage
# database:
# path: /db/frigate.db
detectors:
coral1:
type: edgetpu
device: usb:0
coral2:
type: edgetpu
device: usb:1
# cpu1:
# type: cpu
# num_threads: 3
record:
enabled: true
expire_interval: 120
retain:
days: 7
mode: all
events:
pre_capture: 20
post_capture: 10
retain:
default: 30
mode: motion
snapshots:
enabled: true
timestamp: false
bounding_box: true
crop: false
ui:
date_style: medium
# https://docs.frigate.video/configuration/audio_detectors
audio:
enabled: false
# listen:
# - alarm
# - breaking
# - civil_defense_siren
# - fire_alarm
# - glass
# - scream
# - shatter
# - yell
birdseye:
enabled: true
mode: continuous
go2rtc:
streams:
hallway_cam:
- rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.12:554/H264/ch1/main/av_stream
# - ffmpeg:hallway_cam#video=h264
hallway_cam_sub:
- rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.12:554/H264/ch1/sub/av_stream
# - ffmpeg:hallway_cam_sub#video=h264
back_garden_cam:
- rtsp://frigate:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.13:554/h264Preview_01_main
# - ffmpeg:back_garden_cam#video=h264
back_garden_cam_sub:
- rtsp://frigate:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.13:554/h264Preview_01_sub
# - ffmpeg:back_garden_cam_sub#video=h264
dining_room_cam:
- rtsp://viewonly:{FRIGATE_CAMERAS_PASSWORD}@192.168.0.40:554/h264Preview_01_main
# - ffmpeg:dining_room_cam#video=h264
dining_room_cam_sub:
- rtsp://viewonly:{FRIGATE_CAMERAS_PASSWORD}@192.168.0.40:554/h264Preview_01_sub
# - ffmpeg:dining_room_cam_sub#video=h264
front_cam:
- rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.10:554/H265/ch1/main/av_stream
# - ffmpeg:front_cam#video=h264
front_cam_sub:
- rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.10:554/H264/ch1/sub/av_stream
# - ffmpeg:front_cam_sub#video=h264
front_side_cam:
- rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.11:554/H265/ch1/main/av_stream
# - ffmpeg:front_side_cam#video=h264
front_side_cam_sub:
- rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.11:554/H265/ch1/sub/av_stream
# - ffmpeg:front_side_cam_sub#video=h264
webrtc:
candidates:
- 192.168.53.95:8555
ffmpeg:
input_args:
- -c:v
- hevc_cuvid
- -rtsp_transport
- tcp
cameras:
hallway_camera:
birdseye:
enabled: false
ffmpeg:
hwaccel_args: preset-nvidia-h265
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/hallway_cam
input_args: preset-rtsp-generic
roles:
- record
- path: rtsp://127.0.0.1:8554/hallway_cam_sub
input_args: preset-rtsp-generic
roles:
- detect
detect:
fps: 6
width: 640
height: 480
objects:
track:
- person
# motion:
# mask:
# - 489,0,560,63,1038,73,1128,318,1295,248,1657,212,1641,0
back_garden:
birdseye:
enabled: true
ffmpeg:
hwaccel_args: preset-nvidia-h264
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/back_garden_cam
input_args: preset-rtsp-generic
roles:
- record
- path: rtsp://127.0.0.1:8554/back_garden_cam_sub
input_args: preset-rtsp-generic
roles:
- detect
detect:
fps: 4
width: 640
height: 480
objects:
track:
- person
- dog
- cat
# motion:
# mask: 0.677,0.933,0.988,0.929,0.989,0.96,0.679,0.968
front_camera:
birdseye:
enabled: true
ffmpeg:
inputs:
- path: rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.10:554/H265/ch1/main/av_stream
hwaccel_args: preset-nvidia-h265
input_args: preset-rtsp-generic
roles:
- record
- path: rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.10:554/H265/ch1/sub/av_stream
hwaccel_args: preset-nvidia-h264
input_args: preset-rtsp-generic
roles:
- detect
detect:
fps: 6
width: 640
height: 480
objects:
track:
- car
- person
- horse
- dog
zones:
front_path:
coordinates:
0.618,0.57,0.327,0.91,0.629,0.909,0.632,0.991,0.772,1,0.734,0.843,0.785,0.584,0.735,0.559
loitering_time: 0
objects: person
# motion:
# mask: 0.333,0.957,0.333,0.916,0.623,0.915,0.623,0.95
front_side_camera:
birdseye:
enabled: true
ffmpeg:
hwaccel_args: preset-nvidia-h265
inputs:
- path: rtsp://127.0.0.1:8554/front_side_cam
input_args: preset-rtsp-generic
hwaccel_args: preset-nvidia-h265
roles:
- record
- path: rtsp://127.0.0.1:8554/front_side_cam_sub
input_args: preset-rtsp-generic
hwaccel_args: preset-nvidia-h264
roles:
- detect
detect:
fps: 6
width: 640
height: 480
objects:
track:
- person
- dog
- horse
- motorcycle
- cat
- car
# filters:
# car:
# mask:
# 0.186,0.239,0.033,0.378,0,0.409,0,1,0.129,0.921,0.336,0.577,0.637,0.25,0.526,0.138,0.446,0.102
dining_room:
birdseye:
enabled: true
ffmpeg:
hwaccel_args: preset-nvidia-h264
inputs:
- path: rtsp://127.0.0.1:8554/dining_room_cam
input_args: preset-rtsp-generic
roles:
- record
- path: rtsp://127.0.0.1:8554/dining_room_cam_sub
input_args: preset-rtsp-generic
roles:
- detect
onvif:
host: 192.168.0.40
port: 8000
user: "viewonly"
password: "{FRIGATE_CAMERAS_PASSWORD}"
detect:
fps: 5
width: 640
height: 352
objects:
track:
- person
- dog
version: 0.14 Relevant Frigate log output2025-01-15 23:09:01.769773829 [2025-01-15 23:09:01] frigate.video ERROR : front_camera: Unable to read frames from ffmpeg process.
2025-01-15 23:09:01.770149526 [2025-01-15 23:09:01] frigate.video ERROR : front_camera: Unable to read frames from ffmpeg process.
2025-01-15 23:09:01.770500032 [2025-01-15 23:09:01] frigate.video ERROR : front_camera: Unable to read frames from ffmpeg process.
2025-01-15 23:09:01.770894208 [2025-01-15 23:09:01] frigate.video ERROR : front_camera: Unable to read frames from ffmpeg process.
2025-01-15 23:09:01.771295075 [2025-01-15 23:09:01] frigate.video ERROR : front_camera: Unable to read frames from ffmpeg process.
2025-01-15 23:09:01.771647382 [2025-01-15 23:09:01] frigate.video ERROR : front_camera: Unable to read frames from ffmpeg process.
2025-01-15 23:09:01.771886597 [2025-01-15 23:09:01] frigate.video ERROR : front_camera: Unable to read frames from ffmpeg process.
2025-01-15 23:09:01.772565648 [2025-01-15 23:09:01] frigate.video ERROR : front_camera: ffmpeg process is not running. exiting capture
-------------------
2025-01-15 23:09:10.972041943 [2025-01-15 23:09:10] watchdog.front_camera ERROR : Ffmpeg process crashed unexpectedly for front_camera.
2025-01-15 23:09:10.972119674 [2025-01-15 23:09:10] watchdog.front_camera ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2025-01-15 23:09:10.972193806 [2025-01-15 23:09:10] ffmpeg.front_camera.detect ERROR : [hevc @ 0x63d7d96d0ac0] Could not find ref with POC 7
2025-01-15 23:09:10.972264417 [2025-01-15 23:09:10] ffmpeg.front_camera.detect ERROR : [rtsp @ 0x63d7d8d68f00] RTP: PT=60: bad cseq 0a96 expected=fa06
2025-01-15 23:09:10.972334768 [2025-01-15 23:09:10] ffmpeg.front_camera.detect ERROR : [hevc @ 0x63d7d979b300] Could not find ref with POC 9
2025-01-15 23:09:10.972406319 [2025-01-15 23:09:10] ffmpeg.front_camera.detect ERROR : [rtsp @ 0x63d7d8d68f00] Multi-layer HEVC coding is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
2025-01-15 23:09:10.972474811 [2025-01-15 23:09:10] ffmpeg.front_camera.detect ERROR : [rtsp @ 0x63d7d8d68f00] Multi-layer HEVC coding is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
2025-01-15 23:09:10.972544612 [2025-01-15 23:09:10] ffmpeg.front_camera.detect ERROR : [rtsp @ 0x63d7d8d68f00] CSeq 10 expected, 8 received.
2025-01-15 23:09:10.972640613 [2025-01-15 23:09:10] ffmpeg.front_camera.detect ERROR : [hevc @ 0x63d7d979b300] Could not find ref with POC 28
2025-01-15 23:09:10.972732875 [2025-01-15 23:09:10] ffmpeg.front_camera.detect ERROR : [hevc @ 0x63d7d979b300] Could not find ref with POC 7
2025-01-15 23:09:10.972826167 [2025-01-15 23:09:10] ffmpeg.front_camera.detect ERROR : [hevc @ 0x63d7d96d0ac0] Could not find ref with POC 47
2025-01-15 23:09:10.972922408 [2025-01-15 23:09:10] ffmpeg.front_camera.detect ERROR : [rtsp @ 0x63d7d8d68f00] CSeq 10 expected, 0 received.
--------------
2025-01-15 23:12:41.013544734 [2025-01-15 23:12:41] watchdog.front_camera ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2025-01-15 23:12:41.013632896 [2025-01-15 23:12:41] ffmpeg.front_camera.detect ERROR : [hevc @ 0x5e0a28a42800] Could not find ref with POC 4
2025-01-15 23:12:41.013703017 [2025-01-15 23:12:41] ffmpeg.front_camera.detect ERROR : [rtsp @ 0x5e0a28032f00] CSeq 10 expected, 0 received.
2025-01-15 23:12:41.013771588 [2025-01-15 23:12:41] ffmpeg.front_camera.detect ERROR : [hevc @ 0x5e0a28a42800] Could not find ref with POC 0
2025-01-15 23:12:41.024800532 192.168.53.50 - - [15/Jan/2025:23:12:41 +0000] "GET / HTTP/1.1" 200 2651 "-" "Uptime-Kuma/1.23.16" "172.18.0.1"
2025-01-15 23:12:41.024912663 [2025-01-15 23:12:41] ffmpeg.front_camera.detect ERROR : [rtsp @ 0x5e0a28032f00] RTP: PT=60: bad cseq 1095 expected=fbce
2025-01-15 23:12:41.025041956 [2025-01-15 23:12:41] ffmpeg.front_camera.detect ERROR : [hevc @ 0x5e0a28977f80] Could not find ref with POC 13
2025-01-15 23:12:41.025119507 [2025-01-15 23:12:41] ffmpeg.front_camera.detect ERROR : [hevc @ 0x5e0a28a42800] Could not find ref with POC 5 Relevant go2rtc log outputNone FFprobe output from your camera192.168.15.12 main
ffprobe version n5.1-2-g915ef932a3-20220731 Copyright (c) 2007-2022 the FFmpeg developers
Input #0, rtsp, from 'rtsp://admin:[email protected]:554/H264/ch1/main/av_stream':
Metadata:
title : Media Presentation
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080, 12 fps, 25 tbr, 90k tbn
Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp 192.168.15.12 sub
192.168.15.13 main
192.168.15.13 sub
192.168.0.40 main
192.168.0.40 sub
192.168.15.10 main
192.168.15.10 sub
192.168.15.11 main
192.168.15.11 sub
Frigate statsFrigate stats{
"cameras": {
"back_garden": {
"audio_dBFS": 0,
"audio_rms": 0,
"camera_fps": 4.1,
"capture_pid": 581,
"detection_enabled": true,
"detection_fps": 1.8,
"ffmpeg_pid": 150657,
"pid": 533,
"process_fps": 4.1,
"skipped_fps": 0
},
"dining_room": {
"audio_dBFS": 0,
"audio_rms": 0,
"camera_fps": 5,
"capture_pid": 603,
"detection_enabled": true,
"detection_fps": 0,
"ffmpeg_pid": 120050,
"pid": 564,
"process_fps": 5,
"skipped_fps": 0
},
"front_camera": {
"audio_dBFS": 0,
"audio_rms": 0,
"camera_fps": 6.1,
"capture_pid": 590,
"detection_enabled": true,
"detection_fps": 7.8,
"ffmpeg_pid": 150707,
"pid": 542,
"process_fps": 6.1,
"skipped_fps": 0
},
"front_side_camera": {
"audio_dBFS": 0,
"audio_rms": 0,
"camera_fps": 6,
"capture_pid": 596,
"detection_enabled": true,
"detection_fps": 10.6,
"ffmpeg_pid": 139415,
"pid": 556,
"process_fps": 6,
"skipped_fps": 0
},
"hallway_camera": {
"audio_dBFS": 0,
"audio_rms": 0,
"camera_fps": 6,
"capture_pid": 577,
"detection_enabled": true,
"detection_fps": 0,
"ffmpeg_pid": 81547,
"pid": 527,
"process_fps": 6,
"skipped_fps": 0
}
},
"cpu_usages": {
"1": {
"cmdline": "/package/admin/s6/command/s6-svscan -d4 -- /run/service",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"15": {
"cmdline": "s6-supervise s6-linux-init-shutdownd",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"17": {
"cmdline": "/package/admin/s6-linux-init/command/s6-linux-init-shutdownd -c /run/s6/basedir -g 3000 -C -B",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"24": {
"cmdline": "s6-supervise go2rtc",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"25": {
"cmdline": "s6-supervise go2rtc-log",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"26": {
"cmdline": "s6-supervise nginx",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"27": {
"cmdline": "s6-supervise frigate",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"28": {
"cmdline": "s6-supervise nginx-log",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"29": {
"cmdline": "s6-supervise certsync",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"30": {
"cmdline": "s6-supervise s6rc-oneshot-runner",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"31": {
"cmdline": "s6-supervise go2rtc-healthcheck",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"32": {
"cmdline": "s6-supervise s6rc-fdholder",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"33": {
"cmdline": "s6-supervise certsync-log",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"34": {
"cmdline": "s6-supervise frigate-log",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"45": {
"cmdline": "/package/admin/s6-2.11.3.2/command/s6-fdholderd -1 -i data/rules",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"46": {
"cmdline": "/package/admin/s6/command/s6-ipcserverd -1 -- /package/admin/s6/command/s6-ipcserver-access -v0 -E -l0 -i data/rules -- /package/admin/s6/command/s6-sudod -t 30000 -- /package/admin/s6-rc/command/s6-rc-oneshot-run -l ../.. --",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"86": {
"cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/nginx",
"cpu": "0.1",
"cpu_average": "0",
"mem": "0.0"
},
"88": {
"cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/go2rtc",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"89": {
"cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/frigate",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"90": {
"cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/certsync",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"98": {
"cmdline": "/usr/local/go2rtc/bin/go2rtc -config=/dev/shm/go2rtc.yaml",
"cpu": "14.0",
"cpu_average": "13",
"mem": "0.1"
},
"106": {
"cmdline": "bash ./run.user go2rtc-healthcheck",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"107": {
"cmdline": "python3 -u -m frigate",
"cpu": "29.0",
"cpu_average": "31",
"mem": "1.3"
},
"130": {
"cmdline": "nginx: master process nginx",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"160": {
"cmdline": "nginx: worker process",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"162": {
"cmdline": "nginx: worker process",
"cpu": "0.2",
"cpu_average": "0",
"mem": "0.0"
},
"170": {
"cmdline": "nginx: worker process",
"cpu": "0.3",
"cpu_average": "0",
"mem": "0.0"
},
"183": {
"cmdline": "nginx: worker process",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"199": {
"cmdline": "nginx: cache manager process",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"349": {
"cmdline": "bash ./run.user certsync",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"375": {
"cmdline": "frigate.logger ",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.4"
},
"454": {
"cmdline": "frigate.recording_manager",
"cpu": "3.6",
"cpu_average": "4",
"mem": "0.6"
},
"463": {
"cmdline": "frigate.review_segment_manager",
"cpu": "1.1",
"cpu_average": "0",
"mem": "0.4"
},
"482": {
"cmdline": "/usr/bin/python3 -c from multiprocessing.resource_tracker import main;main(65)",
"cpu": "0.5",
"cpu_average": "0",
"mem": "0.0"
},
"483": {
"cmdline": "frigate.detector.coral1",
"cpu": "23.8",
"cpu_average": "28",
"mem": "0.5"
},
"486": {
"cmdline": "frigate.detector.coral2",
"cpu": "24.5",
"cpu_average": "28",
"mem": "0.5"
},
"492": {
"cmdline": "frigate.output ",
"cpu": "4.5",
"cpu_average": "4",
"mem": "0.5"
},
"502": {
"cmdline": "ffmpeg -threads 1 -f rawvideo -pix_fmt yuv420p -video_size 640x480 -i pipe: -threads 1 -f mpegts -s 960x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.1"
},
"507": {
"cmdline": "ffmpeg -threads 1 -f rawvideo -pix_fmt yuv420p -video_size 640x480 -i pipe: -threads 1 -f mpegts -s 960x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.1"
},
"513": {
"cmdline": "ffmpeg -threads 1 -f rawvideo -pix_fmt yuv420p -video_size 640x480 -i pipe: -threads 1 -f mpegts -s 960x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
"cpu": "0.0",
"cpu_average": "1",
"mem": "0.1"
},
"527": {
"cmdline": "frigate.process:hallway_camera",
"cpu": "1.5",
"cpu_average": "2",
"mem": "0.5"
},
"533": {
"cmdline": "frigate.process:back_garden",
"cpu": "6.2",
"cpu_average": "9",
"mem": "0.5"
},
"536": {
"cmdline": "ffmpeg -threads 1 -f rawvideo -pix_fmt yuv420p -video_size 640x480 -i pipe: -threads 1 -f mpegts -s 960x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
"cpu": "0.0",
"cpu_average": "1",
"mem": "0.1"
},
"542": {
"cmdline": "frigate.process:front_camera",
"cpu": "18.3",
"cpu_average": "25",
"mem": "0.5"
},
"556": {
"cmdline": "frigate.process:front_side_camera",
"cpu": "29.4",
"cpu_average": "22",
"mem": "0.5"
},
"559": {
"cmdline": "ffmpeg -threads 1 -f rawvideo -pix_fmt yuv420p -video_size 640x352 -i pipe: -threads 1 -f mpegts -s 1309x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.1"
},
"564": {
"cmdline": "frigate.process:dining_room",
"cpu": "1.1",
"cpu_average": "4",
"mem": "0.5"
},
"577": {
"cmdline": "frigate.capture:hallway_camera",
"cpu": "1.0",
"cpu_average": "0",
"mem": "0.4"
},
"580": {
"cmdline": "ffmpeg -threads 1 -f rawvideo -pix_fmt yuv420p -video_size 1280x720 -i pipe: -threads 1 -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.1"
},
"581": {
"cmdline": "frigate.capture:back_garden",
"cpu": "0.7",
"cpu_average": "0",
"mem": "0.4"
},
"590": {
"cmdline": "frigate.capture:front_camera",
"cpu": "0.9",
"cpu_average": "0",
"mem": "0.4"
},
"596": {
"cmdline": "frigate.capture:front_side_camera",
"cpu": "1.0",
"cpu_average": "0",
"mem": "0.4"
},
"597": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel cuda -hwaccel_output_format cuda -user_agent FFmpeg Frigate/0.14.1-f4f3cfa -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://127.0.0.1:8554/hallway_cam -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy /tmp/cache/hallway_camera@%Y%m%d%H%M%S%z.mp4",
"cpu": "0.4",
"cpu_average": "0",
"mem": "0.1"
},
"603": {
"cmdline": "frigate.capture:dining_room",
"cpu": "0.7",
"cpu_average": "0",
"mem": "0.4"
},
"605": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel cuda -hwaccel_output_format cuda -user_agent FFmpeg Frigate/0.14.1-f4f3cfa -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://127.0.0.1:8554/back_garden_cam -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy /tmp/cache/back_garden@%Y%m%d%H%M%S%z.mp4",
"cpu": "0.5",
"cpu_average": "0",
"mem": "0.1"
},
"615": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel cuda -hwaccel_output_format cuda -user_agent FFmpeg Frigate/0.14.1-f4f3cfa -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://*:*@192.168.15.10:554/H265/ch1/main/av_stream -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an /tmp/cache/front_camera@%Y%m%d%H%M%S%z.mp4",
"cpu": "2.9",
"cpu_average": "2",
"mem": "0.1"
},
"621": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel cuda -hwaccel_output_format cuda -user_agent FFmpeg Frigate/0.14.1-f4f3cfa -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://127.0.0.1:8554/front_side_cam -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an /tmp/cache/front_side_camera@%Y%m%d%H%M%S%z.mp4",
"cpu": "0.9",
"cpu_average": "0",
"mem": "0.1"
},
"622": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel cuda -hwaccel_output_format cuda -user_agent FFmpeg Frigate/0.14.1-f4f3cfa -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://127.0.0.1:8554/dining_room_cam -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an /tmp/cache/dining_room@%Y%m%d%H%M%S%z.mp4",
"cpu": "0.3",
"cpu_average": "0",
"mem": "0.1"
},
"829": {
"cmdline": "/usr/bin/python3 -c from multiprocessing.resource_tracker import main;main(54)",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"81547": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel cuda -hwaccel_output_format cuda -user_agent FFmpeg Frigate/0.14.1-f4f3cfa -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://127.0.0.1:8554/hallway_cam_sub -r 6 -vf fps=6,scale_cuda=w=640:h=480:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
"cpu": "2.3",
"cpu_average": "1",
"mem": "0.5"
},
"120050": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel cuda -hwaccel_output_format cuda -user_agent FFmpeg Frigate/0.14.1-f4f3cfa -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://127.0.0.1:8554/dining_room_cam_sub -r 5 -vf fps=5,scale_cuda=w=640:h=352:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
"cpu": "1.3",
"cpu_average": "1",
"mem": "0.5"
},
"136827": {
"cmdline": "sh",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"139415": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel cuda -hwaccel_output_format cuda -user_agent FFmpeg Frigate/0.14.1-f4f3cfa -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://127.0.0.1:8554/front_side_cam_sub -r 6 -vf fps=6,scale_cuda=w=640:h=480:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
"cpu": "1.9",
"cpu_average": "1",
"mem": "0.5"
},
"150657": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel cuda -hwaccel_output_format cuda -user_agent FFmpeg Frigate/0.14.1-f4f3cfa -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://127.0.0.1:8554/back_garden_cam_sub -r 4 -vf fps=4,scale_cuda=w=640:h=480:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
"cpu": "1.3",
"cpu_average": "0",
"mem": "0.5"
},
"150707": {
"cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel cuda -hwaccel_output_format cuda -user_agent FFmpeg Frigate/0.14.1-f4f3cfa -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://*:*@192.168.15.10:554/H265/ch1/sub/av_stream -r 6 -vf fps=6,scale_cuda=w=640:h=480:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
"cpu": "1.9",
"cpu_average": "1",
"mem": "0.5"
},
"152851": {
"cmdline": "sleep 60",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"153063": {
"cmdline": "sleep 30s",
"cpu": "0.0",
"cpu_average": "0",
"mem": "0.0"
},
"frigate.full_system": {
"cpu": "11.3",
"mem": "9.0"
}
},
"detection_fps": 20.2,
"detectors": {
"coral1": {
"detection_start": 1736984261.856486,
"inference_speed": 28.19,
"pid": 483
},
"coral2": {
"detection_start": 1736984261.850116,
"inference_speed": 27.33,
"pid": 486
}
},
"gpu_usages": {
"GRID P100-8Q": {
"dec": "0.0%",
"enc": "0.0%",
"gpu": "0.0%",
"mem": "24.46%"
}
},
"processes": {
"go2rtc": {
"pid": 98
},
"logger": {
"pid": 375
},
"recording": {
"pid": 454
},
"review_segment": {
"pid": 463
}
},
"service": {
"last_updated": 1736984261,
"latest_version": "0.14.1",
"storage": {
"/dev/shm": {
"free": 2033,
"mount_type": "tmpfs",
"total": 2048,
"used": 15
},
"/media/frigate/clips": {
"free": 21256436,
"mount_type": "cifs",
"total": 21452288.1,
"used": 195852.1
},
"/media/frigate/recordings": {
"free": 21256436,
"mount_type": "cifs",
"total": 21452288.1,
"used": 195852.1
},
"/tmp/cache": {
"free": 3762,
"mount_type": "tmpfs",
"total": 3814.7,
"used": 52.7
}
},
"temperatures": {},
"uptime": 6211,
"version": "0.14.1-f4f3cfa"
}
} Operating systemProxmox Install methodDocker Compose Object DetectorCoral Network connectionWired Camera make and modelAnnke C800 x2, Annke C500, Reolink 410-5MP, Reolink E1 Pro Screenshots of the Frigate UI's System metrics pagesAny other information that may be helpfulOld Server configurationmqtt:
host: 192.168.53.100
port: 1883
user: frigate
password: '{FRIGATE_MQTT_PASSWORD}'
detectors:
coral1:
type: edgetpu
device: usb:0
coral2:
type: edgetpu
device: usb:1
record:
enabled: true
expire_interval: 120
retain:
days: 7
mode: all
events:
pre_capture: 20
post_capture: 10
retain:
default: 30
mode: motion
live:
height: 480
quality: 2
snapshots:
enabled: true
timestamp: false
bounding_box: true
crop: false
ui:
date_style: medium
# https://docs.frigate.video/configuration/audio_detectors
audio:
enabled: false
ffmpeg:
output_args:
record: -map 0:v -f segment -segment_time 10 -segment_format mp4 -reset_timestamps
1 -strftime 1 -c:v h264_nvenc -b:v 4M -r 15
birdseye:
enabled: true
mode: continuous
go2rtc:
webrtc:
candidates:
- 192.168.53.99:8555
streams:
hallway_camera:
- rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.12:554/H264/ch1/main/av_stream
- ffmpeg:hallway_camera#video=h264
hallway_camera_sub:
- rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.12:554/H264/ch1/sub/av_stream
- ffmpeg:hallway_camera_sub#video=h264
back_garden_camera:
- rtsp://frigate:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.13:554/h264Preview_01_main
- ffmpeg:back_garden_camera#video=h264
back_garden_camera_sub:
- rtsp://frigate:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.13:554/h264Preview_01_sub
- ffmpeg:back_garden_camera_sub#video=h264
# dining_room:
# - rtsp://viewonly:{FRIGATE_CAMERAS_PASSWORD}@192.168.0.40:554/h264Preview_01_main
# - ffmpeg:dining_room#video=h264
# dining_room_sub:
# - rtsp://viewonly:{FRIGATE_CAMERAS_PASSWORD}@192.168.0.40:554/h264Preview_01_sub
# - ffmpeg:dining_room_sub#video=h264
front_sub:
- rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.10:554/H264/ch1/sub/av_stream
- ffmpeg:front_sub#video=h264
front_side_sub:
- rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.11:554/H265/ch1/sub/av_stream
- ffmpeg:front_side_sub#video=h264
rtsp://admin:[email protected]:554/H264/ch1/main/av_stream
cameras:
hallway_camera:
birdseye:
enabled: false
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/hallway_camera
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/hallway_camera_sub
input_args: preset-rtsp-restream
roles:
- detect
- audio
detect:
fps: 6
width: 640
height: 480
objects:
track:
- person
# motion:
# mask:
# - 489,0,560,63,1038,73,1128,318,1295,248,1657,212,1641,0
back_garden:
birdseye:
enabled: true
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/back_garden_camera
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/back_garden_camera_sub
input_args: preset-rtsp-restream
roles:
- detect
- audio
detect:
fps: 4
width: 640
height: 480
objects:
track:
- person
- dog
- cat
# motion:
# mask: 0.677,0.933,0.988,0.929,0.989,0.96,0.679,0.968
front_camera:
birdseye:
enabled: true
ffmpeg:
input_args:
- -c:v
- hevc_cuvid
- -rtsp_transport
- tcp
inputs:
- path:
rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.10:554/H265/ch1/main/av_stream
roles:
- record
- path: rtsp://127.0.0.1:8554/front_sub
roles:
- detect
- audio
detect:
fps: 6
width: 640
height: 480
objects:
track:
- car
- person
- horse
- dog
zones:
front_path:
coordinates:
0.618,0.57,0.327,0.91,0.629,0.909,0.632,0.991,0.772,1,0.734,0.843,0.785,0.584,0.735,0.559
loitering_time: 0
objects: person
# motion:
# mask: 0.333,0.957,0.333,0.916,0.623,0.915,0.623,0.95
front_side_camera:
birdseye:
enabled: true
ffmpeg:
input_args:
- -c:v
- hevc_cuvid
- -rtsp_transport
- tcp
inputs:
- path:
rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.11:554/H265/ch1/main/av_stream
roles:
- record
- path: rtsp://127.0.0.1:8554/front_side_sub
roles:
- detect
- audio
detect:
fps: 6
width: 640
height: 480
objects:
track:
- person
- dog
- horse
- motorcycle
- cat
- car
# filters:
# car:
# mask:
# 0.186,0.239,0.033,0.378,0,0.409,0,1,0.129,0.921,0.336,0.577,0.637,0.25,0.526,0.138,0.446,0.102
dining_room:
birdseye:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/dining_room
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/dining_room_sub
input_args: preset-rtsp-restream
roles:
- detect
- audio
detect:
fps: 5
width: 640
height: 352
objects:
track:
- person
- dog I have a VM setup with the following specs (in theory I can throw more at the problem but i feel it should be enough for Frigate + other services)
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
the corals are running quite slow, likely indicative of the general issue of the system running slow in general |
Beta Was this translation helpful? Give feedback.
-
I don't know the answer but a few thoughts. Not all may be worth it.
|
Beta Was this translation helpful? Give feedback.
-
@Reverse256 just wanted to reply and say thanks for all your help and what the outcomes of everything was. My first debugging step was to look at the video and work out if it was a video issue or a processing issue. I setup a minimal That told me that the issue was down to Frigate itself and something it was doing. I had the USB devices passed to the VM through Proxmox. Digging through some of the That led me to change direction completely. The GPU wasn't working well for me in this case and it was the main reason I wanted to use the GPU outside of some AI experimentation I was doing on it occassionally. For me it wasn't work the extra power and space it took up in the server. I decided to sell the GPU (Tesla P100) and that is currently listed on eBay. I left it for a while as I was frustrated - I ended up installing a doorbell camera over PoE that I wanted to look at integrating but I set it up with a MicroSD card so that I can ensure I have some security whilst I took a break. I came back to this last night and ended up looking at deploying it on my other Proxmox node, which is a much lower power Intel CPU box. I decided to try the LXC from here: https://community-scripts.github.io/ProxmoxVE/scripts?id=frigate After playing with it for a few hours, I eventually got it all working fully. I had to make some changes to my Ansible script as I was passing through parameters via Docker Compose (on reflection I could have probably used environment variables, but this approach works for me) I had to pass the USB devices through - I followed this guide to assist me https://medium.com/@konpat/usb-passthrough-to-an-lxc-proxmox-15482674f11d If I can help anyone with the Ansible configuration, it basically boils down to:
For completeness/anyone else that it helps, here are my configurations: Frigate configurationversion: 0.14
mqtt:
host: 192.168.53.100
port: 1883
user: frigate
password: '{FRIGATE_MQTT_PASSWORD}'
detectors:
coral1:
type: edgetpu
device: usb:0
coral2:
type: edgetpu
device: usb:1
ffmpeg:
hwaccel_args: preset-vaapi
record:
enabled: true
expire_interval: 120
retain:
days: 7
mode: all
events:
pre_capture: 20
post_capture: 10
retain:
default: 30
mode: motion
snapshots:
enabled: true
timestamp: false
bounding_box: true
crop: false
ui:
date_style: medium
# https://docs.frigate.video/configuration/audio_detectors
audio:
enabled: false
birdseye:
enabled: true
mode: continuous
go2rtc:
rtsp:
mode: "tcp"
streams:
hallway_cam:
- rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.12:554/H264/ch1/main/av_stream
hallway_cam_sub:
- rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.12:554/H264/ch1/sub/av_stream
back_garden_cam:
- rtsp://frigate:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.13:554/h264Preview_01_main
back_garden_cam_sub:
- rtsp://frigate:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.13:554/h264Preview_01_sub
dining_room_cam:
- rtsp://viewonly:{FRIGATE_CAMERAS_PASSWORD}@192.168.0.40:554/h264Preview_01_main
dining_room_cam_sub:
- rtsp://viewonly:{FRIGATE_CAMERAS_PASSWORD}@192.168.0.40:554/h264Preview_01_sub
front_cam:
- rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.10:554/H265/ch1/main/av_stream
- ffmpeg:front_cam#video=h264#hardware=vaapi
front_cam_sub:
- rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.10:554/H265/ch1/sub/av_stream
- ffmpeg:front_cam_sub#video=h264#hardware=vaapi
front_side_cam:
- rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.11:554/H265/ch1/main/av_stream
- ffmpeg:front_side_cam#video=h264#hardware=vaapi
front_side_cam_sub:
- rtsp://admin:{FRIGATE_CAMERAS_PASSWORD}@192.168.15.11:554/H265/ch1/sub/av_stream
- ffmpeg:front_side_cam_sub#video=h264#hardware=vaapi
webrtc:
candidates:
- 192.168.53.40:8555
cameras:
hallway_cam:
birdseye:
enabled: false
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/hallway_cam
input_args: preset-rtsp-generic
roles:
- record
- path: rtsp://127.0.0.1:8554/hallway_cam_sub
input_args: preset-rtsp-generic
roles:
- detect
detect:
fps: 6
width: 640
height: 480
objects:
track:
- person
# motion:
# mask:
# - 489,0,560,63,1038,73,1128,318,1295,248,1657,212,1641,0
back_garden_cam:
birdseye:
enabled: true
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/back_garden_cam
input_args: preset-rtsp-generic
roles:
- record
- path: rtsp://127.0.0.1:8554/back_garden_cam_sub
input_args: preset-rtsp-generic
roles:
- detect
detect:
fps: 4
width: 640
height: 480
objects:
track:
- person
- dog
- cat
# motion:
# mask: 0.677,0.933,0.988,0.929,0.989,0.96,0.679,0.968
front_cam:
birdseye:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/front_cam
input_args: preset-rtsp-generic
roles:
- record
- path: rtsp://127.0.0.1:8554/front_cam
input_args: preset-rtsp-generic
roles:
- detect
detect:
fps: 6
width: 640
height: 480
objects:
track:
- car
- person
- horse
- dog
zones:
front_path:
coordinates:
0.618,0.57,0.327,0.91,0.629,0.909,0.632,0.991,0.772,1,0.734,0.843,0.785,0.584,0.735,0.559
loitering_time: 0
objects: person
front_side_cam:
birdseye:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/front_side_cam
input_args: preset-rtsp-generic
roles:
- record
- path: rtsp://127.0.0.1:8554/front_side_cam_sub
input_args: preset-rtsp-generic
roles:
- detect
detect:
fps: 6
width: 640
height: 480
objects:
track:
- person
- dog
- horse
- motorcycle
- cat
- car
# filters:
# car:
# mask:
# 0.186,0.239,0.033,0.378,0,0.409,0,1,0.129,0.921,0.336,0.577,0.637,0.25,0.526,0.138,0.446,0.102
dining_room_cam:
birdseye:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/dining_room_cam
input_args: preset-rtsp-generic
roles:
- record
- path: rtsp://127.0.0.1:8554/dining_room_cam_sub
input_args: preset-rtsp-generic
roles:
- detect
onvif:
host: 192.168.0.40
port: 8000
user: "viewonly"
password: "{FRIGATE_CAMERAS_PASSWORD}"
detect:
fps: 5
width: 640
height: 352
objects:
track:
- person
- dog Ansible script---
- hosts: frigatelxc
vars:
remote_frigate_root_folder: /opt/frigate
remote_frigate_config_path: "/config/config.yml"
remote_frigate_config_temp_path: "/config/temp_config.yml"
mount_credential_file_location: /root/.smbcredentials
mount_remote_server: "192.168.53.2"
mount_location_camera: /mnt/nascamerastore
smb_options: "file_mode=0777,dir_mode=0777,iocharset=utf8,noperm,_netdev"
vars_files:
- vars/secrets.yml
pre_tasks:
- name: Ensure desired initial setup packages are installed
apt:
update_cache: true
cache_valid_time: 60
pkg:
- cifs-utils
- nano
- software-properties-common
- ca-certificates
- gnupg
- net-tools
- intel-gpu-tools
tasks:
- name: Ensure mount credentials file is created
copy:
dest: "{{ mount_credential_file_location }}"
owner: "root"
group: "root"
mode: 0600
content: |-
username={{ mount_credential_username }}
password={{ mount_credential_password }}
- name: Mount bind for remote camera store
ansible.posix.mount:
src: '//{{ mount_remote_server }}/frigate2'
path: '{{ mount_location_camera }}'
opts: 'credentials={{ mount_credential_file_location }},{{ smb_options }}'
state: mounted
fstype: cifs
- name: Create symlink for camera store
ansible.builtin.file:
src: "{{ mount_location_camera }}"
dest: "/media/frigate"
state: link
- name: Copy Frigate configuration
copy:
src: ./frigate-config.yml
dest: "{{ remote_frigate_config_temp_path }}"
mode: 0644
- name: Replace FRIGATE_CAMERAS_PASSWORD in config
ansible.builtin.replace:
path: "{{ remote_frigate_config_temp_path }}"
regexp: '{FRIGATE_CAMERAS_PASSWORD}'
replace: "{{ local_cameras_password }}"
- name: Replace FRIGATE_MQTT_PASSWORD in config
ansible.builtin.replace:
path: "{{ remote_frigate_config_temp_path }}"
regexp: '{FRIGATE_MQTT_PASSWORD}'
replace: "{{ frigate_mqtt_password }}"
- name: Replace FRIGATE_PLUS_API_KEY in config
ansible.builtin.replace:
path: "{{ remote_frigate_config_temp_path }}"
regexp: '{FRIGATE_PLUS_API_KEY}'
replace: "{{ frigate_plus_api_key }}"
- name: Replace CAM_MOUNT_FOLDER in config
ansible.builtin.replace:
path: "{{ remote_frigate_config_temp_path }}"
regexp: '{CAM_MOUNT_FOLDER}'
replace: "{{ mount_location_camera }}"
- name: Update Frigate service to only start after mount of camera store
ansible.builtin.lineinfile:
path: /etc/systemd/system/frigate.service
line: "RequiresMountsFor={{ mount_location_camera }}"
state: present
- name: Copy Frigate configuration
copy:
src: "{{ remote_frigate_config_temp_path }}"
dest: "{{ remote_frigate_config_path }}"
mode: 0644
remote_src: yes
notify: Restart frigate service
- name: Remove unneeded files
ansible.builtin.file:
path: "{{ item }}"
state: absent
loop:
- "/media/frigate/person-bicycle-car-detection.mp4"
- "{{ remote_frigate_config_temp_path }}"
- "{{ remote_frigate_root_folder }}/CODEOWNERS"
- "{{ remote_frigate_root_folder }}/README.md"
- "{{ remote_frigate_root_folder }}/docker-compose.yml"
- "{{ remote_frigate_root_folder }}/LICENSE"
handlers:
- name: Restart frigate service
systemd:
name: frigate
state: restarted
enabled: yes |
Beta Was this translation helpful? Give feedback.
@Reverse256 just wanted to reply and say thanks for all your help and what the outcomes of everything was.
My first debugging step was to look at the video and work out if it was a video issue or a processing issue. I setup a minimal
go2rtc
configuration on the server and that ended up telling me that the video accelleration wasn't an issue - I had a very minimal delay and it never seemed to get any worse delay wise.That told me that the issue was down to Frigate itself and something it was doing. I had the USB devices passed to the VM through Proxmox. Digging through some of the
dmesg
logs I was actually getting USB issues with slowdowns there. From further research it seemed I wasn't t…