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.0.2.tar.gz
(293.0 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_v5-4.0.2.tar.gz.
File metadata
- Download URL: typed_ffmpeg_v5-4.0.2.tar.gz
- Upload date:
- Size: 293.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31347481ec7c65d0f685c4ddeb50cb88591f8579bc465d17b3e04710173c1722
|
|
| MD5 |
3fe6e5017bcf1f77aa7f9a9ac11d3a65
|
|
| BLAKE2b-256 |
9738e72033c377b7254f4d11bdaaa2837f5756a642370be1ce5350f22bd006e2
|
File details
Details for the file typed_ffmpeg_v5-4.0.2-py3-none-any.whl.
File metadata
- Download URL: typed_ffmpeg_v5-4.0.2-py3-none-any.whl
- Upload date:
- Size: 313.1 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 |
35809108ca1a30e360066dd5cfd2d6d260c08e7818f1a5bbb656b10a6de88ac7
|
|
| MD5 |
b023a0f63d904733e1db175f0f5cf799
|
|
| BLAKE2b-256 |
9e385b7f066559726069511fc40c66a0889bddf5d7bbebe234c43405c32825ce
|