Closed lahayeg closed 1 year ago
You're running out of GPU memory, you need to use ssh to increase the GPU memory
@NickM-27 how do you saw it? you proceed to use ssh to increase the GPU memory?
It's covered in the docs https://docs.frigate.video/configuration/hardware_acceleration#raspberry-pi-34
on HassOS, sudo raspi-config is not available through SSH addon
I know other HA OS users have gotten it configured. But if you are not able to, then the only option is to not use hwaccel for other cameras that are added
For other people, I'm able to use https://community.home-assistant.io/t/add-on-hassos-ssh-port-22222-configurator/264109 to access config.txt
So setup up gpu_mem=128 and uncomment
ffmpeg:
hwaccel_args: preset-rpi-64-h264
but then error in log
2023-04-28 12:29:25.013248359 [2023-04-28 14:29:25] watchdog.jardin INFO : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:29:25.207951434 [2023-04-28 14:29:25] watchdog.parking ERROR : No new recording segments were created for parking in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:29:25.207966416 [2023-04-28 14:29:25] watchdog.parking INFO : Terminating the existing ffmpeg process...
2023-04-28 12:29:25.207970045 [2023-04-28 14:29:25] watchdog.parking INFO : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:29:26.634562953 172.30.33.4 - - [28/Apr/2023:14:29:26 +0200] "GET /api/config/schema.json HTTP/1.1" 200 25632 "-" "-" "-"
2023-04-28 12:29:35.064962464 [2023-04-28 14:29:35] watchdog.jardin ERROR : No new recording segments were created for jardin in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:29:35.064978038 [2023-04-28 14:29:35] watchdog.jardin INFO : Terminating the existing ffmpeg process...
2023-04-28 12:29:35.065677774 [2023-04-28 14:29:35] watchdog.jardin INFO : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:29:35.274668593 [2023-04-28 14:29:35] watchdog.parking ERROR : No new recording segments were created for parking in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:29:35.275385125 [2023-04-28 14:29:35] watchdog.parking INFO : Terminating the existing ffmpeg process...
2023-04-28 12:29:35.276140675 [2023-04-28 14:29:35] watchdog.parking INFO : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:29:45.109988289 [2023-04-28 14:29:45] watchdog.jardin ERROR : No new recording segments were created for jardin in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:29:45.135978403 [2023-04-28 14:29:45] watchdog.jardin INFO : Terminating the existing ffmpeg process...
2023-04-28 12:29:45.136692231 [2023-04-28 14:29:45] watchdog.jardin INFO : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:29:45.327096323 [2023-04-28 14:29:45] watchdog.parking ERROR : No new recording segments were created for parking in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:29:45.337242696 [2023-04-28 14:29:45] watchdog.parking INFO : Terminating the existing ffmpeg process...
2023-04-28 12:29:45.337824711 [2023-04-28 14:29:45] watchdog.parking INFO : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:29:55.162985348 [2023-04-28 14:29:55] watchdog.jardin ERROR : No new recording segments were created for jardin in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:29:55.163689602 [2023-04-28 14:29:55] watchdog.jardin INFO : Terminating the existing ffmpeg process...
2023-04-28 12:29:55.164912131 [2023-04-28 14:29:55] watchdog.jardin INFO : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:29:55.358443490 [2023-04-28 14:29:55] watchdog.parking ERROR : No new recording segments were created for parking in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:29:55.359262151 [2023-04-28 14:29:55] watchdog.parking INFO : Terminating the existing ffmpeg process...
2023-04-28 12:29:55.360524735 [2023-04-28 14:29:55] watchdog.parking INFO : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:30:05.205175650 [2023-04-28 14:30:05] watchdog.jardin ERROR : No new recording segments were created for jardin in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:30:05.205203409 [2023-04-28 14:30:05] watchdog.jardin INFO : Terminating the existing ffmpeg process...
2023-04-28 12:30:05.206272290 [2023-04-28 14:30:05] watchdog.jardin INFO : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:30:05.391864123 [2023-04-28 14:30:05] watchdog.parking ERROR : No new recording segments were created for parking in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:30:05.392912245 [2023-04-28 14:30:05] watchdog.parking INFO : Terminating the existing ffmpeg process...
2023-04-28 12:30:05.393760869 [2023-04-28 14:30:05] watchdog.parking INFO : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:30:15.252925328 [2023-04-28 14:30:15] watchdog.jardin ERROR : No new recording segments were created for jardin in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:30:15.254847982 [2023-04-28 14:30:15] watchdog.jardin INFO : Terminating the existing ffmpeg process...
2023-04-28 12:30:15.255546255 [2023-04-28 14:30:15] watchdog.jardin INFO : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:30:15.427625820 [2023-04-28 14:30:15] watchdog.parking ERROR : No new recording segments were created for parking in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:30:15.428496351 [2023-04-28 14:30:15] watchdog.parking INFO : Terminating the existing ffmpeg process...
2023-04-28 12:30:15.429855712 [2023-04-28 14:30:15] watchdog.parking INFO : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:30:25.295172818 [2023-04-28 14:30:25] watchdog.jardin ERROR : No new recording segments were created for jardin in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:30:25.298768090 [2023-04-28 14:30:25] watchdog.jardin INFO : Terminating the existing ffmpeg process...
2023-04-28 12:30:25.300452264 [2023-04-28 14:30:25] watchdog.jardin INFO : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:30:25.464004526 [2023-04-28 14:30:25] watchdog.parking ERROR : No new recording segments were created for parking in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:30:25.464536467 [2023-04-28 14:30:25] watchdog.parking INFO : Terminating the existing ffmpeg process...
2023-04-28 12:30:25.464613670 [2023-04-28 14:30:25] watchdog.parking INFO : Waiting for ffmpeg to exit gracefully...
Any idea?
128 is not going to be close to enough, 512 is the minimum recommended and probably want 1024
Still some error on gpu_mem equals to 512. I read many block not recommending to setup 1024 on RPI4 4g (boot error, crash). I will remove hw accel has it seems to works pretty well
Describe the problem you are having
I'm using HassOS + Frigate (full access) add-ons on RPI4 with Coral and SSD. I have 2 Reolink POE camera: DUO 2 and RLC-811A. When I enable one only (does not matter which one), it works perfectly but when I enable both. it crash, I'm not able to stop add-on and I need to restart the RPI4
Version
0.12.0-DA3E197
Frigate config file
Relevant log output
Frigate stats
No response
Operating system
HassOS
Install method
HassOS Addon
Coral version
USB
Any other information that may be helpful
detect width, height and fps are the same that config on camera side