When sound detection is enabled and home assistant is restarted, a new instance of ffmpeg is started but the old one isn't terminated.
The system accumulates instances off ffmpeg on each home assistant restart until the container/OS is restarted.
Reproduction Steps
run top from within home assistant container (docker exec -it homeassistant bash). After a fresh start of the container with only one tapo camera, there is only one instance of ffmpeg
Restart home assistant (Settings --> Menu --> Restart Home Assistant)
Monitor top. ffmpeg continues running through restart. After startup, another instance of ffmpeg appears
Expected behavior
Terminate ffmpeg when home assistant shuts down to restart. ffmpeg_noise, when configured on its own through the home assistant configuration.yaml file, terminates the old ffmpeg before starting a new one on startup.
Description
When sound detection is enabled and home assistant is restarted, a new instance of ffmpeg is started but the old one isn't terminated.
The system accumulates instances off ffmpeg on each home assistant restart until the container/OS is restarted.
Reproduction Steps
top
from within home assistant container (docker exec -it homeassistant bash
). After a fresh start of the container with only one tapo camera, there is only one instance of ffmpegExpected behavior
Terminate ffmpeg when home assistant shuts down to restart. ffmpeg_noise, when configured on its own through the home assistant configuration.yaml file, terminates the old ffmpeg before starting a new one on startup.
If applicable, add error logs.
top output:
Device Firmware
1.1.12 Build 240117 Rel.56102n
Integration Version
5.4.18
Using stream component
Yes
Does camera work via official integrations?
Yes
Camera has all attributes filled out in developer tools
Yes
HASS Environment
2024.5.4 Docker on Ubuntu 22.04.4
Search for similar issues
Yes
Additional information
No response