I’m sure it’s out there, but I had a similar idea to make an audio device plugin like soundflower to pipe audio through and automatically mute when it detects an ad. We really need an OpenWrt-like project for smart TVs so that you could run something like what you created to mute the sound and display art during ad breaks.