Typed FFmpeg bindings for FFmpeg 5.x
Project description
typed-ffmpeg-v5
Typed FFmpeg bindings for FFmpeg 5.x.
Installation
pip install typed-ffmpeg-v5
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 5.x installed on your system
Features
- Full type hints for all FFmpeg 5.x filters, codecs, and formats
- IDE autocomplete support
- Runtime validation
- Filter graph visualization
- JSON serialization
Documentation
License
MIT License - see LICENSE file for details
Project details
Release history Release notifications | RSS feed
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_v5-4.3.tar.gz
(295.5 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
typed_ffmpeg_v5-4.3-py3-none-any.whl
(315.8 kB
view details)
File details
Details for the file typed_ffmpeg_v5-4.3.tar.gz.
File metadata
- Download URL: typed_ffmpeg_v5-4.3.tar.gz
- Upload date:
- Size: 295.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c96a09c4ef51482ff96338599c5942a786e7faa27050359643790361cff7e888
|
|
| MD5 |
8670f4fd4c758adb8aded19c44d0ca86
|
|
| BLAKE2b-256 |
cafb7be01c3f0d343c332d4390b16240d07562a38eab5bd3ccd5f53189710a45
|
File details
Details for the file typed_ffmpeg_v5-4.3-py3-none-any.whl.
File metadata
- Download URL: typed_ffmpeg_v5-4.3-py3-none-any.whl
- Upload date:
- Size: 315.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e5bea67478b08ba31b94dda907ba607e7ee8d016a737edd15b8fee7c0b7bc41
|
|
| MD5 |
e6aa53c82a0af8a865a3ebba06cc30ce
|
|
| BLAKE2b-256 |
0e1d6669620ff397175ae821a7f4432675e406e9165e36428893fa546f9c497b
|