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.1.tar.gz
(292.6 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.1-py3-none-any.whl
(312.7 kB
view details)
File details
Details for the file typed_ffmpeg_v5-4.1.tar.gz.
File metadata
- Download URL: typed_ffmpeg_v5-4.1.tar.gz
- Upload date:
- Size: 292.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
743992761c11ce37b8cf5aa8694cf43bb3610586de169788b723ffb2d1012aa1
|
|
| MD5 |
c5e822b8f55671b5ac974e9ec94a48a5
|
|
| BLAKE2b-256 |
07c5cc433431955cec75e723aaff423ca7349114d25040f9237f12d1479028af
|
File details
Details for the file typed_ffmpeg_v5-4.1-py3-none-any.whl.
File metadata
- Download URL: typed_ffmpeg_v5-4.1-py3-none-any.whl
- Upload date:
- Size: 312.7 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 |
30dcc0abf01ac55e534da27f51782c61f22f7c52d5c27ebe28b390f4176b728a
|
|
| MD5 |
99d0387dfd7e3941a4c990516bbb773e
|
|
| BLAKE2b-256 |
9168301ef7ad7168c071e72cf7d91990fcdafe520b196906c61b05f8d5b11f3b
|