[Config Support]: FFMPEG is crashing my intel NUC due to high memory issues #11189
Replies: 6 comments
-
|
might be good to try updating to go2rtc 1.9.0 as it has some fixes for the nest camera https://docs.frigate.video/configuration/advanced#custom-go2rtc-version |
Beta Was this translation helpful? Give feedback.
-
|
hmm that might be a good catch, ill give it a try. |
Beta Was this translation helpful? Give feedback.
-
|
I started using the custom version from go2rtc ram usage is now around 2.1GB in total (out of 8GB) and running smooth. It ran for about 50 minutes and all of a sudden the FFMPEG ram usage spiked again. go2rtc logs are clean, and nothing specifically logged in the frigate logs on the time of the ram usage increase. Is it in any way related to the frigate config? |
Beta Was this translation helpful? Give feedback.
-
|
I was looking at #8470 (comment) and ended up disabling |
Beta Was this translation helpful? Give feedback.
-
|
Seeing ffmpeg maxing out the memory repeatedly, on 0.14.0-rc1. Intel Nuc Gen5, 16 GB RAM, Coral M.2, va-api. I am using go2rtc with 4 cameras. There is one ffmpeg process that keeps blowing up memory, the one for cam3 (this one uses a different type of camera than the rest). The process grows to ~11 GB virtual, 9 GB resident. This happens within a few hours of starting the service. ffmpeg command line: One of the threads is in D state when this happens. config.yml: |
Beta Was this translation helpful? Give feedback.
-
|
Replaced go2rtc with version 1.9.4, did not help. It blows up within 30 min. Here are memory stats for the ffmpeg processes (numbers in kB): |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the problem you are having
i'm running home assistant supervised 2024.04.4 with the frigate addon 0.13.2 (full access) with protection mode off
It is running on:
I have setup a nest camera with the google nest integration and passing the stream trough the internal go2rtc
Now some minutes after starting frigate this is causing the intel nuc to go to 100% memory usage, and grinding the system to a halt.
I initially thought it might be the detection mode, but after disabling it via the frigate mqtt integration, it also went again to 100% memory usage

I really could use some insights here
Version
0.13.2-6476f8a
Frigate config file
Relevant log output
Frigate stats
{ "cameras": { "hass-achtertuin": { "audio_dBFS": 0, "audio_rms": 0, "camera_fps": 0, "capture_pid": null, "detection_enabled": 1, "detection_fps": 0, "ffmpeg_pid": 0, "pid": null, "process_fps": 0, "skipped_fps": 0 } }, "cpu_usages": { "1": { "cmdline": "/package/admin/s6/command/s6-svscan -d4 -- /run/service", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "15": { "cmdline": "s6-supervise s6-linux-init-shutdownd", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "16": { "cmdline": "/package/admin/s6-linux-init/command/s6-linux-init-shutdownd -c /run/s6/basedir -g 3000 -C -B", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "24": { "cmdline": "s6-supervise nginx-log", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "25": { "cmdline": "s6-supervise frigate-log", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "26": { "cmdline": "s6-supervise s6rc-oneshot-runner", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "27": { "cmdline": "s6-supervise s6rc-fdholder", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "28": { "cmdline": "s6-supervise go2rtc", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "29": { "cmdline": "s6-supervise nginx", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "30": { "cmdline": "s6-supervise go2rtc-healthcheck", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "31": { "cmdline": "s6-supervise go2rtc-log", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "32": { "cmdline": "s6-supervise frigate", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "41": { "cmdline": "/package/admin/s6/command/s6-ipcserverd -1 -- /package/admin/s6/command/s6-ipcserver-access -v0 -E -l0 -i data/rules -- /package/admin/s6/command/s6-sudod -t 30000 -- /package/admin/s6-rc/command/s6-rc-oneshot-run -l ../.. --", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "42": { "cmdline": "/package/admin/s6-2.11.3.2/command/s6-fdholderd -1 -i data/rules", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "79": { "cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/nginx", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "80": { "cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/go2rtc", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "82": { "cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/frigate", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "87": { "cmdline": "/config/go2rtc -config=/dev/shm/go2rtc.yaml", "cpu": "0.0", "cpu_average": "0", "mem": "0.3" }, "108": { "cmdline": "bash ./run.user go2rtc-healthcheck", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" }, "110": { "cmdline": "python3 -u -m frigate", "cpu": "0.9", "cpu_average": "3", "mem": "2.3" }, "122": { "cmdline": "nginx: master process nginx", "cpu": "0.0", "cpu_average": "0", "mem": "0.2" }, "147": { "cmdline": "nginx: worker process", "cpu": "0.0", "cpu_average": "0", "mem": "0.1" }, "148": { "cmdline": "nginx: worker process", "cpu": "0.0", "cpu_average": "0", "mem": "0.1" }, "149": { "cmdline": "nginx: worker process", "cpu": "0.0", "cpu_average": "0", "mem": "0.1" }, "150": { "cmdline": "nginx: worker process", "cpu": "0.0", "cpu_average": "0", "mem": "0.1" }, "151": { "cmdline": "nginx: cache manager process", "cpu": "0.0", "cpu_average": "0", "mem": "0.1" }, "305": { "cmdline": "frigate.logger ", "cpu": "0.0", "cpu_average": "0", "mem": "1.3" }, "319": { "cmdline": "frigate.recording_manager", "cpu": "0.2", "cpu_average": "0", "mem": "1.4" }, "328": { "cmdline": "/usr/bin/python3 -c from multiprocessing.resource_tracker import main;main(41)", "cpu": "0.0", "cpu_average": "0", "mem": "0.1" }, "329": { "cmdline": "frigate.detector.cpu ", "cpu": "0.1", "cpu_average": "0", "mem": "1.5" }, "331": { "cmdline": "frigate.output ", "cpu": "0.2", "cpu_average": "0", "mem": "1.5" }, "334": { "cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1920x1080 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:", "cpu": "0.0", "cpu_average": "0", "mem": "0.2" }, "335": { "cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1280x720 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:", "cpu": "0.0", "cpu_average": "0", "mem": "0.2" }, "441": { "cmdline": "sleep 30s", "cpu": "0.0", "cpu_average": "0", "mem": "0.0" } }, "detection_fps": 0, "detectors": { "cpu": { "detection_start": 0, "inference_speed": 10, "pid": 329 } }, "gpu_usages": { "error-gpu": { "gpu": -1, "mem": -1 } }, "processes": { "go2rtc": { "pid": 87 }, "logger": { "pid": 305 }, "recording": { "pid": 319 } }, "service": { "last_updated": 1714564074, "latest_version": "0.13.2", "storage": { "/dev/shm": { "free": 3936.3, "mount_type": "tmpfs", "total": 3936.8, "used": 0.5 }, "/media/frigate/clips": { "free": 65293.8, "mount_type": "ext4", "total": 111142.2, "used": 40157.6 }, "/media/frigate/recordings": { "free": 65293.8, "mount_type": "ext4", "total": 111142.2, "used": 40157.6 }, "/tmp/cache": { "free": 3936.8, "mount_type": "tmpfs", "total": 3936.8, "used": 0 } }, "temperatures": { }, "uptime": 121, "version": "0.13.2-6476f8a" } }Operating system
HassOS
Install method
HassOS Addon
Coral version
CPU (no coral)
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions