有大佬用过 frigate 吗,配置了硬件加速 cpu 占用还是很高怎么办

2025 年 4 月 5 日
 tmtstudio

2522 次点击
所在节点    程序员
12 条回复
roswellian
2025 年 4 月 5 日
仔细看看 FFmpeg 的 preset 是否用对...
jiaoguan1688
2025 年 4 月 6 日
怎么样了,我头大了额都
ZhaiSoul
2025 年 4 月 6 日
看看 Frigate 的统计信息,看是检测物体消耗多还是编解码消耗多
ananda183
2025 年 4 月 7 日
hassbian 关门了,我当初在那里找到了解决 frigate 问题的办法。
tmtstudio
2025 年 4 月 7 日
@roswellian #1 大佬,这个参数怎么配置
@jiaoguan1688 #2 还是很高
@ZhaiSoul #3 编码消耗的,检测物体都给关了
@ananda183 #4 大佬还记得怎么配置吗
lovelylain
2025 年 4 月 7 日
看你想用什么功能,如果要物体识别人体识别,就必须开识别功能,没有 gpu 加速就很消耗 cpu ,如果只是当 nvr 用,静止画面不录制,开个 motion 对比就行,那个消耗很低,用 n1 都能跑。
tmtstudio
2025 年 4 月 7 日
@lovelylain #6 大佬,怎么设置静止不录制,可以给个配置文件吗,感谢
我现在接了八个摄像头都是全天录制,应该是这个原因
ZhaiSoul
2025 年 4 月 7 日
@tmtstudio 编码消耗的话最好是用 GPU 编码,你的设备没有 GPU 吗
lovelylain
2025 年 4 月 7 日
@tmtstudio https://docs.frigate.video/configuration/record
tmtstudio
2025 年 4 月 8 日
此贴终结,贴一下配置

mqtt:
enabled: false

ffmpeg:
hwaccel_args: preset-intel-qsv-h264

detectors:
ov:
type: openvino
device: GPU

record:
enabled: True
retain:
days: 7
mode: motion
alerts:
retain:
days: 30
detections:
retain:
days: 30

snapshots:
enabled: True
retain:
default: 30

detect:
enabled: True
width: 1280
height: 720
fps: 5

audio:
enabled: True


model:
width: 300
height: 300
input_tensor: nhwc
input_pixel_format: bgr
path: /openvino-model/ssdlite_mobilenet_v2.xml
labelmap_path: /openvino-model/coco_91cl_bkgr.txt

logger:
default: info

objects:
track:
- cat

cameras:
dantawo:
enabled: true
ffmpeg:
inputs:
- path: rtsp://xxx:xxx@xxx/stream1&channel=1
roles:
- detect
- audio
tmtstudio
2025 年 4 月 8 日
@jiaoguan1688 #2 看楼下
v01
2025 年 4 月 10 日
正需要,试试~

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1123394

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX