Skip to main content

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.

Download files

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

Source Distribution

avifilelib-0.9.1.tar.gz (14.9 kB view details)

Uploaded Source

File details

Details for the file avifilelib-0.9.1.tar.gz.

File metadata

  • Download URL: avifilelib-0.9.1.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for avifilelib-0.9.1.tar.gz
Algorithm Hash digest
SHA256 ae47f79cf394a46c0bde03b4534baadd1bb54185fc401a89e68a61d02ecb0ab7
MD5 f464d3c85f80a7145d4c3e4129923376
BLAKE2b-256 39dc04725170bf88b5682dafbb83da6673ccd4329fe96094ef701dfbbf306353

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9.1 This release

1 file

0.9.0

1 file

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