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
Release history Release notifications | RSS feed
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)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae47f79cf394a46c0bde03b4534baadd1bb54185fc401a89e68a61d02ecb0ab7
|
|
| MD5 |
f464d3c85f80a7145d4c3e4129923376
|
|
| BLAKE2b-256 |
39dc04725170bf88b5682dafbb83da6673ccd4329fe96094ef701dfbbf306353
|