skywm 发表于 2008-1-15 22:46

avifile中可以不用compression吗

把帮助中avifile例程抄下来,也报错
fig=figure;
set(fig,'DoubleBuffer','on');
set(gca,'xlim',[-80 80],'ylim',[-80 80],...
    'NextPlot','replace','Visible','off')
mov = avifile('example.avi')
x = -pi:.1:pi;
radius = 0:length(x);
for k=1:length(x)
h = patch(sin(x)*radius(k),cos(x)*radius(k),...
    );
set(h,'EraseMode','xor');
F = getframe(gca);
mov = addframe(mov,F);
end
mov = close(mov);

Can not locate Indeo5 compressor.Compressor can be downloaded and installed from the Ligos web site.
我找不到这个解压补丁,想干脆不用解压,或Windows的解压,
用mov = avifile('example.avi','compression','MSVC');
或mov = avifile('example.avi','compression','None');
又都
??? Failed to open file.
Error in ==> avifile.avifile at 171
aviobj.FileHandle = avi('open',filename);
请问我该怎么办,多谢

花如月 发表于 2008-1-16 13:43

先检查你的avi在你的系统里是否可以正常播放,应该是因为没有相应的解码器所致
页: [1]
查看完整版本: avifile中可以不用compression吗