From 1a9c6deb0dbaa3a95172f7a96290d80c53303ccc Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Thu, 17 Oct 2024 15:41:44 -0500 Subject: [PATCH] Remove metadata and cover art using ffmpeg proxy conversion (#128603) Remove metadata and cover art --- homeassistant/components/esphome/ffmpeg_proxy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/esphome/ffmpeg_proxy.py b/homeassistant/components/esphome/ffmpeg_proxy.py index c2bf72c40e5cb0..1003a0083e9234 100644 --- a/homeassistant/components/esphome/ffmpeg_proxy.py +++ b/homeassistant/components/esphome/ffmpeg_proxy.py @@ -155,6 +155,9 @@ async def prepare(self, request: BaseRequest) -> AbstractStreamWriter | None: # 16-bit samples command_args.extend(["-sample_fmt", "s16"]) + # Remove metadata and cover art + command_args.extend(["-map_metadata", "-1", "-vn"]) + # Output to stdout command_args.append("pipe:")