home-assistant-libs / ha-ffmpeg

A python library that handling with ffmpeg for home-assistant
BSD 3-Clause "New" or "Revised" License
16 stars 13 forks source link

Feature: volume detection #75

Open daniel-simpson opened 1 year ago

daniel-simpson commented 1 year ago

Adds code for max and mean volume sensors using ffmpeg's volumedetection argument, as per feature request #74.

There doesn't seem to be any tests in this project (other than linting?), so this is more a proof of concept for now. Very happy to get some feedback if this would be useful, or if I've missed anything.

Thanks!

irakhlin commented 10 months ago

@pvizeli @bdraco what would need to happen to have this work merged? this would be a great addition to https://www.home-assistant.io/integrations/ffmpeg_noise/

slhad commented 6 months ago

I have been looking for volume detection since my son birth, almost 2y, I love your PR @daniel-simpson

semos2k commented 6 months ago

This modification is very useful, is it possible to convert it into a custom component?