File Exchange

image thumbnail

avilib: a pedestrian AVI creator wrapper

version (18.6 KB) by us
creates avi files using syntax akin to fopen / fwrite / fclose

1 Download

Updated 10 Oct 2006

View License

AVILIB is a simple wrapper for ML's basic AVI engine to easily create AVI movies using the more
familiar low-level file-i/o syntax of the form:

- aopen : open an AVI file
- awrite : write to an AVI file
- aclose : close an AVI file

takes image(s) of the form
- RGB (x/y/3)
- INDEXED (x/y)
- getframe(...)

performs extensive error checking on subsequent input(s)
- size
- bit-depth

for further explanations see:
help aopen
help awrite
help aclose
help avilib

for i=1:10
% if used in a wintel (2k/xp) env
% with <windows player> installed,
% this will show the movie right away:

set(gcf,'position',[100 100 200 200]);
for i=1:10
aid=awrite(aid,f,r,{f r;f r});
% !goo.avi

Cite As

us (2020). avilib: a pedestrian AVI creator wrapper (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Mr Smart

For me aopen command does not work.Why?
>>Undefined function or method 'aopen' for input arguments of type 'char'.<<

Harry Commin

This is absolutely excellent! I'll never use Windows Movie Maker again!

Just one thing to note is that a few more usage examples might be useful. For example, framerate is set using: "aid=aopen('-f','foo','-d',32);" ... not "aid=aopen('-f','foo','-d','32');" or "aid=aopen('-f','foo','-d 32');" etc.

This may be obvious, but it could save some people a little time.

Kambiz Bahaadini

In my Experinece, it is excellent

Kourosh Abdolmaleki

Krishna Venkat

good tool and easy to incorporate in one's own routine. I was stuck trying to write frames into avi files after processing them. This is fast and efficient. Thanx a ton

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!