Modern Python & TypeScript FFmpeg wrappers with comprehensive typing (latest version)
Project description
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 v8).
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
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-4.1.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.1.tar.gz.
File metadata
- Download URL: typed_ffmpeg-4.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
680b388b00a7f8aaa0731e6d284cdd8bedba19c17fc50f23b573fb1f037d990e
|
|
| MD5 |
cd6ecf26d5d388070f32618004037aff
|
|
| BLAKE2b-256 |
4fa74171baf4cfcb3f259d8f6c43a3fd9e1bfd17e8f09339b3c972f74320c815
|
File details
Details for the file typed_ffmpeg-4.1-py3-none-any.whl.
File metadata
- Download URL: typed_ffmpeg-4.1-py3-none-any.whl
- Upload date:
- Size: 1.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 |
1e066efa262f19b9254d315149d2e03511ffc96689d7b24788ede97db7dd7e2b
|
|
| MD5 |
93529dfe4b6071cdb45187cffd4886d3
|
|
| BLAKE2b-256 |
9bc4feea760dde1855b008b2f8a8c2052cd10431d6310f4ec9a351d02c43a55b
|