Skip to main content

ctypes binding for libav and ffmpeg

Project description

Avpy is a Python binding for ffmpeg and libav (see or

Typical usage often looks like this:

>>> from avpy import formats, codecInfo, Media
>>> print formats()
>>> print codecInfo('mp3', decode=True)
>>> m = Media('test.avi')
>>> print

More examples can be found in the examples folder. Documentation is available online:

This software is licensed under the LGPL v.2.1+. Examples (and tools) are licensed under the Apache License 2.0.

The binding uses ctypes ( to wrap ffmpeg or libav and is compatible with all major version of ffmpeg (v1.2 and from v2.5 to v2.8) and libav (from v0.8 to v11). Note that python2 (v2.6 and v2.7), python3 (from v3.2 to v3.5) and pypy are supported.




for ubuntu users, please run the following command:

sudo apt-get install ffmpeg

Install from source:

  • pip install Avpy

Install from source:

Clone Avpy repo from bitbucket or github

Please read docs/DEV.txt (virtualenvs) or docs/Windows.txt for additional information.


sydhds __at__ gmail __dot__ com

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Avpy, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size Avpy-0.1.3.tar.gz (112.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page