Lots of old video files from Frigate, I can't find a way to delete them! Any suggestions?

I know this has been asked 100 times before, and answer always is to let the configuration file handle the retention issues. But my configuration file does include those settings, but I have things going back since I first started using Frigate. I’m using HAOS, not a containerized installation.

Where are these files: Well, they are not on my NAS, nor on my camera storage. I can only assume they are on my NUC where my HAOS install is.

How do I see them: Using the HA media tab and click on Frigate.

There are clips, snapshots and recording sub-folders in the Media → Frigate tab. And lots of subdirectorlies.

So where do I go next? Here is my yaml file:

mqtt:
  host: 192.168.1.55
  port: 1883
  client_id: frigate
  user: harryfine
  password: REDACTED

detectors:
  cpu1:
    type: cpu

ffmpeg:
  input_args:
    - -avoid_negative_ts
    - make_zero
    - -fflags
    - nobuffer+genpts+discardcorrupt
    - -flags
    - low_delay
    - -strict
    - experimental
    - -analyzeduration
    - 1000M
    - -probesize
    - 1000M
    - -rw_timeout
    - "5000000"

  output_args:
    record: preset-record-generic-audio-aac

go2rtc:
  streams:
    reolink: 
      - http://192.168.1.105/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=eibboR
      - "ffmpeg:reolink#audio=opus"
    reolink_sub: 
      - http://192.168.1.105/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=eibboR

cameras:
  reolink:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/reolink?video=copy&audio=aac
          input_args: preset-rtsp-restream-low-latency
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/reolink_sub?video=copy
          input_args: preset-rtsp-restream-low-latency
          roles:
            - detect
detect:
  width: 640
  height: 480
  fps: 5

birdseye:
  enabled: true
  width: 640
  height: 480
  quality: 8
  mode: motion

record:
  enabled: true
  retain:
    days: 2
    mode: motion
  events:
    pre_capture: 5
    post_capture: 5
    retain:
      default: 2
      mode: active_objects

snapshots:
  enabled: true
  timestamp: true
  bounding_box: true
  retain:
    default: 5
    objects:
      person: 5
      dog: 2

You can find here the retain options Recording | Frigate

1 Like

I included them. And that doesn’t help me get rid of the old ones. Do you see an error in my attached config file?

The media folder is not accessible through the file manager or the command line in an HAOS installation.

The media browser in HA is not showing direct files, it is showing what is returned by the frigate integration / frigate api.

More information would be needed to understand what files are kept. The frigate webUI is the easiest way to see what events are in the DB

You are right. I just realized, the frigate files HAVE been pruned. What I’m looking at is HA media. Frankly not sure where that is, the video stuff, but I will keep searching.

Did you find a solution for this?
I too have these videos piling up.

1 Like