avilib: a pedestrian AVI creator wrapper

버전 1.0.0.0 (18.6 KB) 작성자: us
creates avi files using syntax akin to fopen / fwrite / fclose
다운로드 수: 7.1K
업데이트 날짜: 2006/10/10

라이선스 보기

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

EXAMPLES
aid=aopen('-f','foo');
for i=1:10
aid=awrite(aid,rand(128,128,3));
aid=awrite(aid,{rand(128,128,3);rand(128,128,3)});
end
aid=aclose(aid);
% if used in a wintel (2k/xp) env
% with <windows player> installed,
% this will show the movie right away:
!foo.avi

set(gcf,'position',[100 100 200 200]);
cm=summer(10);
lh=plot(0:20,rand(1,21),'linewidth',5);
aid=aopen('-f','goo');
for i=1:10
set(lh,'color',cm(i,:));
f=getframe(gca);
r=uint8(255*rand(size(f.cdata)));
aid=awrite(aid,f,r,{f r;f r});
end
aid=aclose(aid);
% !goo.avi

인용 양식

us (2024). avilib: a pedestrian AVI creator wrapper (https://www.mathworks.com/matlabcentral/fileexchange/3133-avilib-a-pedestrian-avi-creator-wrapper), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

corrected a small annoying typo; version tag is 10-Oct-2006 11:38:50