Skip to main content

Pythonic bindings for FFmpeg's libraries.

Project description

PyAV

PyAV is a Pythonic binding for the FFmpeg libraries. We aim to provide all of the power and control of the underlying library, but manage the gritty details as much as possible.


GitHub Test Status Documentation Python Package Index Conda Forge

PyAV is for direct and precise access to your media via containers, streams, packets, codecs, and frames. It exposes a few transformations of that data, and helps you get your data to/from other packages (e.g. Numpy and Pillow).

This power does come with some responsibility as working with media is horrendously complicated and PyAV can't abstract it away or make all the best decisions for you. If the ffmpeg command does the job without you bending over backwards, PyAV is likely going to be more of a hindrance than a help.

But where you can't work without it, PyAV is a critical tool.

Installation

Binary wheels are provided on PyPI for Linux, MacOS and Windows linked against the latest stable version of ffmpeg. You can install these wheels by running:

pip install av

Another way of installing PyAV is via conda-forge:

conda install av -c conda-forge

See the Conda install docs to get started with (mini)Conda.

Alternative installation methods

Due to the complexity of the dependencies, PyAV is not always the easiest Python package to install from source. If you want to use your existing ffmpeg (must be the correct major version), the source version of PyAV is on PyPI:

[!WARNING] You must be in a posix env, and have the correct version of ffmpeg installed on your system.

pip install av --no-binary av

Installing From Source

Here's how to build PyAV from source. You must use MSYS2 when using Windows.

git clone https://github.com/PyAV-Org/PyAV.git
cd PyAV
source scripts/activate.sh

# Build ffmpeg from source. You can skip this step
# if ffmpeg is already installed.
./scripts/build-deps

# Build PyAV
make

# Testing
make test

# Install globally
deactivate
pip install .

Have fun, read the docs, come chat with us, and good luck!

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

deepcodec-0.0.1.tar.gz (3.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepcodec-0.0.1-cp311-cp311-manylinux_2_24_aarch64.whl (54.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ ARM64

File details

Details for the file deepcodec-0.0.1.tar.gz.

File metadata

  • Download URL: deepcodec-0.0.1.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.1

File hashes

Hashes for deepcodec-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8c7e9f3f9ab3c931cbafea96d5fc5a8aa6b2d9093ed77d53bac4310389a3462c
MD5 ad464c6269afdd93900b578ce793cbc0
BLAKE2b-256 4d3259814c8c476d28e14a3535bcdfad2771acdd96935c47774ff6f291fcaa39

See more details on using hashes here.

File details

Details for the file deepcodec-0.0.1-cp311-cp311-manylinux_2_24_aarch64.whl.

File metadata

File hashes

Hashes for deepcodec-0.0.1-cp311-cp311-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 4667972e2db21dc9e8a28fe478f0f0e7131b714e56474189fa8f3164d3f01036
MD5 a5464aacb5614329bc6f2d58705e4602
BLAKE2b-256 4234fd05445fd085ab5b69c5d2e75e3e97e9cef14cf33e9f3f82de24095d48e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page