ffmpeg filter graph bindings for python
Project description
ZPRP FFmpeg 2
docs |
|
|---|---|
tests |
|
package |
Implementation of the successor to the ffmpeg-python library
Free software: MIT license
Installation
The package is available on pip:
pip install zprp_ffmpeg2
Getting started
A minimal example showing basic usage of the library:
import zprp_ffmpeg2 as ffmpeg
stream = ffmpeg.input("input.mp4")
stream = ffmpeg.hflip(stream)
stream = ffmpeg.output(stream, "output.mp4")
ffmpeg.run(stream)
Check out more examples
Further documentation is available here
Development
Project uses poetry for package management. Check out their docs for installation steps. Tests are managed by tox, which uses pytest under the hood.
To install package in development mode, enter the virtual environment managed by poetry, then use install command:
poetry shell
poetry install --with="typecheck"
To run tests on multiple python interpreters, build documentation, check for linting issues, run:
tox
However, this might be cumbersome, since it requires having all supported python interpreters available.
To run only selected interpreters, use -e option, for example:
tox -e py312-lin,check #python 3.12 on linux, and linter checks
You can view all defined interpreters with tox -l
To check for typing and linting issues manually, run:
mypy src
pre-commit run --all-files
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 zprp_ffmpeg2-3.1.2.tar.gz.
File metadata
- Download URL: zprp_ffmpeg2-3.1.2.tar.gz
- Upload date:
- Size: 79.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d7463919eb22a08248907bb4c23dad2b90874a4e92b39c7a844f91fc2920e3a
|
|
| MD5 |
3f939eb13c001148062110efd3ffc49e
|
|
| BLAKE2b-256 |
24ba85098f5c80fb781a3031385b6cd25365126bccaf9150c78d01243e53c1b3
|
File details
Details for the file zprp_ffmpeg2-3.1.2-py3-none-any.whl.
File metadata
- Download URL: zprp_ffmpeg2-3.1.2-py3-none-any.whl
- Upload date:
- Size: 81.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abea547eea5297b00a459a27929482f6842ae6a9363e4de76e1d08d9f55770ae
|
|
| MD5 |
e26f9f48d733310b0529d392face3328
|
|
| BLAKE2b-256 |
31b58861448094bfb2f709e9ba93dd61fad5efbaddf04208ea4d73d32d5c3879
|