Common Audio and Video filters
Project description
avfilters
Curated list of common Audio/Video filters.
This library wraps the relatively complex PyAV bindings to provide easy to use audio and video manipulation filters, such as files concatenation, video reversing or video to GIF.
Motivation
FFMPEG is a powerful tool for media files manipulation. Many
Python libraries already wrap the ffmpeg
executable to
easily perform audio and video processing in Python.
However, most of those libraries call ffmpeg
through subprocesses. While this is fine in many
use cases, this has two major drawbacks:
- you must have
ffmpeg
installed on your computer, and know the executable path; - and repeatedly calling subprocesses in a hot loop can be quite slow.
For performances reasons, a solution is to use
bindings to the FFMPEG C libraries, e.g.,
PyAV. Moreover,
PyAV ships (by default) with pre-built binary wheels
linking against FFMPEG C libraries, so you do not need
to rely on a possible local installation of ffmpeg
.
Unfortunately, using PyAV can be quite complex,
especially as ffmpeg
usually does a lot of
auto-corrections that PyAV does not automatically
perform.
This library aims at providing a straighforward
ffmpeg
-like API for some very common use cases.
If you feel like a feature is missing, please use the GitHub issues and detail your feature request.
Getting started
First, add avfilters
to you project's dependencies.
from avfilters import reverse
reverse("original.mp4", "expected.mp4")
For more examples, take a look at the documentation.
Getting help
You have a question or want to report a bug?
Please use the GitHub issues.
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
Built Distribution
File details
Details for the file avfilters-0.0.1.tar.gz
.
File metadata
- Download URL: avfilters-0.0.1.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.12.4 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25a176e8241e055a3b29688ab5584e52ecbe5523d3d0eb06bad38115cb8092dd |
|
MD5 | 62ea315e88dd33a2618aa8c91d1f4ff5 |
|
BLAKE2b-256 | 964b46b5538fb711dfff08a4f02f803996ae96ab379723586f97657e85b87502 |
File details
Details for the file avfilters-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: avfilters-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.12.4 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c70c9a804d964312f0f51368312078e302c96a8b5649069b12d4a0f2c514970 |
|
MD5 | 5cb7bd51a9850600bfcc7485b4e616be |
|
BLAKE2b-256 | fbe0d5e9fe9561dbd05e7bfc8e8c5cf65fe906b5060d56e979628c6fa398e1ba |