V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
tmtstudio
V2EX  ›  程序员

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

  •  
  •   tmtstudio · 3 天前 · 1027 次点击

    pE6HCX6.png

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

    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
        11
    tmtstudio  
    OP
       19 小时 42 分钟前
    @jiaoguan1688 #2 看楼下
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   925 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 21:23 · PVG 05:23 · LAX 14:23 · JFK 17:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.