An asynchronous Python wrapper around FFmpeg for Home Assistant, providing tools to probe media, convert streams, and manage FFmpeg processes. As of version 3.2.2, it is fully async and no longer accepts a loop parameter in constructors. Maintained by the Home Assistant core team with a moderate release cadence.
pip install ha-ffmpegVerified import paths — ran on the pinned version, not inferred.
Basic usage: convert a video to audio and probe file info.
Remove the `loop` parameter. Ensure creation is done within an async context (e.g., inside an async function).
Install FFmpeg on your system (e.g., `sudo apt install ffmpeg` on Debian/Ubuntu).
Always use a try/finally or async context manager, or explicitly call await ffmpeg.close() after start().