ha-ffmpeg
A library that handling with ffmpeg for home-assistant
Decision gist · record as of 2026-08-14
Yes, if you are building Home Assistant integrations or async applications that need to control ffmpeg. The library is actively maintained, has low install friction, carries a permissive license, and has no known vulnerabilities. The main prerequisite is that ffmpeg itself must be installed on the system, and you should follow the asyncio.shield guidance in the documentation.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- ffmpeg must be installed and available on the system PATH; asyncio.shield should wrap function calls per the documentation.
- Low install friction with a single lightweight runtime dependency (async-timeout).
- Actively maintained with recent commits; last release was 644 days ago and the repository remains active.
License · maintenance · safety
BSD License (permissive) — Licensed under BSD License (permissive), allowing use in most commercial and open-source projects without significant restrictions.
last release 2024-11-08 (644 days) · last repo commit 2026-07-30 · 21 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 181,327 downloads/mo, #10,128 on PyPI
Alternatives
Verify before relying
import asyncio
from ha_ffmpeg import FFMpegManager
async def main():
manager = FFMpegManager()
# Use asyncio.shield to protect calls
await asyncio.shield(manager.start_process(...))
asyncio.run(main())- Whether ffmpeg must be installed separately on the system for this library to function
- Specific Python version requirements, as classifiers list 3.5–3.7 but requires_python is unspecified
- Whether asyncio.shield protection is mandatory for all use cases or only certain operations
What it is and what it does
ha-ffmpeg is a Python library that wraps ffmpeg for use in asyncio-based applications, particularly Home Assistant. It allows you to control ffmpeg processes asynchronously—emulating webcams from arbitrary video sources, analyzing streams for motion or noise, and extracting still images. The library depends only on async-timeout and is designed to integrate with Home Assistant's async architecture.
The package is actively maintained and carries a permissive BSD license. It has been in production use since 2016 and remains stable. The main design consideration is that function calls should be protected with asyncio.shield to ensure proper cancellation handling in async contexts.
Use it for
- Integrate video streams into Home Assistant as virtual webcams for automation and monitoring
- Detect motion or noise in surveillance feeds to trigger home automation routines
- Extract snapshots from live video streams for display in dashboards or notifications
- Wrap ffmpeg process management in async code without blocking the event loop
- Build Home Assistant add-ons that process multiple video sources concurrently
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building Home Assistant integrations or async applications that need to control ffmpeg.
The library is actively maintained, has low install friction, carries a permissive license, and has no known vulnerabilities. The main prerequisite is that ffmpeg itself must be installed on the system, and you should follow the asyncio.shield guidance in the documentation.
Install
ha-ffmpeg on PyPI
Before you install
Low install friction with a single lightweight runtime dependency (async-timeout). Actively maintained with recent commits; last release was 644 days ago and the repository remains active.
ffmpeg must be installed and available on the system PATH; asyncio.shield should wrap function calls per the documentation.
License in practice
Licensed under BSD License (permissive), allowing use in most commercial and open-source projects without significant restrictions.
Quickstart
import asyncio
from ha_ffmpeg import FFMpegManager
async def main():
manager = FFMpegManager()
# Use asyncio.shield to protect calls
await asyncio.shield(manager.start_process(...))
asyncio.run(main())
Verify before relying
- Whether ffmpeg must be installed separately on the system for this library to function
- Specific Python version requirements, as classifiers list 3.5–3.7 but requires_python is unspecified
- Whether asyncio.shield protection is mandatory for all use cases or only certain operations
Package facts
| License | BSD License permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageasync-timeout |
| Maintenance | Actively maintained 644 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 181,327 / month, #10,128 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: Scientific/Engineering :: Atmospheric ScienceTopic :: Software Development :: Libraries :: Python Modules |
Evidence: ha_ffmpeg-3.2.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ffmpeg asyncio wrapper”
- ha-ffmpegProvides an asyncio-based Python interface to control ffmpeg for Home…
- python-ffmpegProvides a Python binding for FFmpeg with both synchronous and…
- imageio-ffmpegProvides a simple Python wrapper around ffmpeg for reading and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also ffmpeg-python · aiohomekit · ffmpeg · ffmpy · python-ffmpeg · aioslimproto · typed-ffmpeg · aiohasupervisor · motioneye-client · infrared-protocols