#Constant Memory Leaks with an Amcrest Camera

1 messages · Page 1 of 1 (latest)

steel blade
#

I'm running frigate on my Ubuntu LXC on Proxmox for a while now with almost no issues. Lately however, I've noticed that I'd get really bad memory leaks that would come from the ffmpeg stream from my camera. To the point where it would crash all other docker containers on the LXC and I'd have to reboot the entire thing. Not sure if my configuration is bad or there's an issue with the camera. Here is my config:

ffmpeg:
      hwaccel_args: preset-vaapi

cameras:
  front:
    objects:
      track:
        - person
        - cat
    enabled: true
    ffmpeg:
      #hwaccel_args: preset-vaapi
      output_args:
        record: preset-record-generic-audio-aac
      inputs:
        - path: rtsp://127.0.0.1:8554/front_main
          input_args: preset-rtsp-restream
          # hwaccel_args: preset-vaapi
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/front_main
          #hwaccel_args: preset-intel-qsv-h265
          input_args: preset-rtsp-restream
          roles:
            - detect
    detect:
      enabled: true
      width: 1296
      height: 972
    live:
      stream_name: front_sub

    record:
      expire_interval: 60
      retain:
        days: 0
        mode: all
      events:
        pre_capture: 5
        post_capture: 5
        objects:
          - person
          - cat
        retain:
          default: 7
          mode: motion
go2rtc:
  streams:
    front_main:
      - rtsp://admin:redacted!@192.168.1.3:554/cam/realmonitor?channel=1&subtype=0
      - ffmpeg:front_main#audio=opus
    front_sub:
      - rtsp://admin:redacted!@192.168.1.3:554/cam/realmonitor?channel=1&subtype=1
      - ffmpeg:front_sub#audio=opus
  webrtc:
    candidates:
      - 192.168.1.2:8555
heavy jewel
#

this is a known issue with the proxmox kernel / intel drivers, you could try using a newer version of ffmpeg and see if that helps. Otherwise Frigate 0.15 has a newer intel driver that might help depending on your hardware

steel blade
#

Ahh OK thanks for the heads up. How could I use a new version?

steel blade
#

Thanks

#

I have an i5 11400 so hopefully the new driver will help

heavy jewel
#

You'll be able to use qsv which might work better, but that will require running on 0.15