Skip to main content

A library for reading simple uncompressedor RLE compressed AVI files.

Project description

A native Python library (other than it’s dependence on Numpy) to read uncompressed and RLE-compressed AVI files.

The following is a simple example showing how to iterate over the frames in an AVI file:

>>> import matplotlib
>>> matplotlib.use('TKAGG')
>>> import matplotlib.pyplot as plt
>>> import avifilelib
>>> a = avifilelib.AviFile('sample.avi')
>>> for ct, frame in enumerate(a.iter_frames(stream_id=0)):
        _ = plt.imshow(frame, origin='lower')
        plt.gcf().savefig('frame_{:02d}.png'.format(ct))
>>> a.close()

See the API documentation for more information.

Project details


Download files

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

Files for avifilelib, version 0.9.1
Filename, size File type Python version Upload date Hashes
Filename, size avifilelib-0.9.1.tar.gz (14.9 kB) File type Source Python version None Upload date Hashes View

Supported by

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