Frigate - Low FPS in HA but not in Frigate

Hi all,

I have been troubleshooting an issue where the FPS is fine in Frigate but the HA card is a lot slower, around 1-2FPS. I have this card on a tablet showing two cameras, one at a time. Both camera’s are USB cameras on a Dell OptiPlex running Proxmox with Frigate in an LXC. I have tried many settings and options but so far nothing seems to fix the issue.

I have had no success with recording or detection so far, so I have disabled both for the time being.

Card config:

type: custom:frigate-card
cameras:
  - go2rtc:
      modes:
        - webrtc
      stream: back
    webrtc_card: {}
    live_provider: webrtc-card
    camera_entity: camera.back
  - camera_entity: camera.door
    go2rtc:
      modes:
        - webrtc
      stream: door
    live_provider: webrtc-card
view:
  default: live
  dark_mode: 'off'
  scan:
    enabled: true
live:
  lazy_unload: hidden
  layout:
    fit: fill
  preload: true
  lazy_load: false
  zoomable: false
  auto_play: all
dimensions:
  aspect_ratio: '9:16'
performance:
  style:
    border_radius: true
    box_shadow: true
  profile: high
view_layout:
  position: cameras

Frigate config:

mqtt:
  host: 10.0.3.1
  user: frigate
  password: njRVF6QHHs7cQ9ag

birdseye:
  enabled: True
  restream: False
  width: 1280
  height: 720
  quality: 4
  mode: continuous

go2rtc:
  streams:
    back: ffmpeg:device?video=0&video_size=1280x720&framerate=20#video=h264#raw=-pix_fmt yuv420p#rotate=90
    door: ffmpeg:device?video=2&video_size=1280x720&framerate=20#video=h264#raw=-pix_fmt yuv420p#rotate=90
  webrtc:
    candidates:
      - 10.0.200.23:8555
      - stun:8555

cameras:
  back:
    ffmpeg:
      output_args:
        record: preset-record-generic-audio-copy
      inputs:
        - path: rtsp://127.0.0.1:8554/back
          input_args: preset-rtsp-restream
          roles:
            - rtmp
  door:
    ffmpeg:
      output_args:
        record: preset-record-generic-audio-copy
      inputs:
        - path: rtsp://127.0.0.1:8554/door
          input_args: preset-rtsp-restream
          roles:
            - rtmp

detectors:
  ov:
    type: openvino
    device: AUTO
    model:
      path: /openvino-model/ssdlite_mobilenet_v2.xml

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

detect:
  enabled: False

Thanks a lot!

you should use go2rtc as the live provider

This seems to help a lot, thanks! I still have framedrops and disconnects, but these are also visible Frigate itself, so are not HA related.