Skip to main content

avfilters

Latest Release Python version Documentation Codecov PDM

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:

  1. you must have ffmpeg installed on your computer, and know the executable path;
  2. 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.

Metadata

Release files for avfilters 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for avfilters 0.0.1
File Size Uploaded
avfilters-0.0.1.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for avfilters 0.0.1
File Interpreter ABI Platform
avfilters-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.6 kB

Release files / avfilters-0.0.1.tar.gz

Download URL avfilters-0.0.1.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
25a176e8241e055a3b29688ab5584e52ecbe5523d3d0eb06bad38115cb8092dd
BLAKE2b-256 checksum
How to use checksums
964b46b5538fb711dfff08a4f02f803996ae96ab379723586f97657e85b87502
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.12.4 CPython/3.10.12

Release files / avfilters-0.0.1-py3-none-any.whl

Download URL avfilters-0.0.1-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c70c9a804d964312f0f51368312078e302c96a8b5649069b12d4a0f2c514970
BLAKE2b-256 checksum
How to use checksums
fbe0d5e9fe9561dbd05e7bfc8e8c5cf65fe906b5060d56e979628c6fa398e1ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.12.4 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page