typed-ffmpeg
Modern Python FFmpeg wrappers with comprehensive typing.
Installation
pip install typed-ffmpeg
This meta-package installs the latest version of typed-ffmpeg (currently v9).
Usage
import ffmpeg
# Input and output
input_file = ffmpeg.input("input.mp4")
output_file = input_file.hflip().output("output.mp4")
output_file.run()
# Complex filter graph
in_file = ffmpeg.input("input.mp4")
overlay_file = ffmpeg.input("overlay.png")
output = (
ffmpeg.filters
.concat(
in_file.trim(start_frame=10, end_frame=20),
in_file.trim(start_frame=30, end_frame=40),
)
.video(0)
.overlay(overlay_file.hflip())
.output("out.mp4")
)
output.run()
Requirements
- Python 3.10+
- FFmpeg installed on your system
Features
- Full type hints for all FFmpeg filters, codecs, and formats
- IDE autocomplete support
- Runtime validation
- Filter graph visualization
- JSON serialization
Documentation
License
MIT License - see LICENSE file for details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
typed_ffmpeg-4.5.tar.gz
(2.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file typed_ffmpeg-4.5.tar.gz.
File metadata
- Download URL: typed_ffmpeg-4.5.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
452ce8ed5086abe875a8fb57ac1a899413ca956048553f2d5f94fcf4f49cae09
|
|
| MD5 |
29a9d5b065204550396ab6fac9087c9e
|
|
| BLAKE2b-256 |
51aa54c245c7c49fc41cebfe8a617b00bdcccb4c79b5826e7e71f4cda5b853ef
|
File details
Details for the file typed_ffmpeg-4.5-py3-none-any.whl.
File metadata
- Download URL: typed_ffmpeg-4.5-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd96c680558989bd7cd3e594001d805f51aa6a4c0509d0104b2b7b366020e254
|
|
| MD5 |
31b45e2dc5b79348629320899a789e5b
|
|
| BLAKE2b-256 |
dc872798afeb9a7691e5f12d1fc00dbd08dec0b1fe5880a1125e669cf7d429ac
|