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.4.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.4.tar.gz.
File metadata
- Download URL: typed_ffmpeg-4.4.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2545a9da5ff2d308e08712916be185f651ae3e173be5f5a34d3192bc7c6f02c3
|
|
| MD5 |
18503e919f7bc82289ef13175b16794c
|
|
| BLAKE2b-256 |
a7dbd621888adfd403d50f95b4855a6267229b11ce38e87c625e6d4b11e1f7a7
|
File details
Details for the file typed_ffmpeg-4.4-py3-none-any.whl.
File metadata
- Download URL: typed_ffmpeg-4.4-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.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2d0a245bee69aa86739965f46a34cb1bb5369c7ee0809a394de73546851b57c
|
|
| MD5 |
73ee2341f6d346d60491c7e967bdd4fe
|
|
| BLAKE2b-256 |
c3f3836c7c9e8621b6005a2df6bf16bc69662a2b2b306404a0c086885d432a89
|