#Efficient Camera Setup in Home Assistant: Managing Recordings Without Overloading the CPU

1 messages · Page 1 of 1 (latest)

nova python
#

Hi everyone! I have a Raspberry Pi 4 with an SSD connected and an Imou Ranger 2 camera.

I'm looking for a way to set up the camera in Home Assistant and save recordings for the last 7 days on the SSD without overloading the CPU.

I tried using Frigate, but whenever I turn it on, the CPU usage shoots up to 90% or more. Any suggestions?

Here you can see when i start the Frigate add-on the CPU is jumping

I use Frigate add-on + go2rtc

My idea is to have the following
1/ Be able to have live view in HA

2/ Save the recordings for 3 (or 7) days so i can review them

3/ Not mandatory but have PTZ control of the camera

Here are my configurations

frigate.yaml

mqttmqtt:
  enabled: false
logger:
  default: error
  logs:
    frigate.event: error
    ffmpeg: error

ffmpeg:
  global_args: -hide_banner
  output_args:
    record: -c:v libx264 -preset ultrafast -tune zerolatency -crf 28 -segment_time 60

cameras:
  loft:
    ffmpeg:
      inputs:
        - path: rtsp://XXX.XXX.XXX.XXX:8554/camera.loft?video=copy&audio=aac
          roles:
            - record
    detect:
      enabled: false
    record:
      enabled: true
      retain:
        days: 3
        mode: all
    onvif:
      host: XXX.XXX.XXX.XXX
      port: 80
      user: XXXXX
      password: XXXXX

version: 0.14