I am executing the code from the example of AVIFILE in the MATLAB documentation but I always get an error.
t = linspace(0,2.5*pi,40);fact = 10*sin(t);fig=figure;aviobj = avifil('example.avi','compression','CODECINFO')% I replace CODECINFO with different codecs
[x,y,z] = peaks;for k=1:length(fact) h = surf(x,y,fact(k)*z); axis([-3 3 -3 3 -80 80]) axis off caxis([-90 90]) F = getframe(fig); aviobj = addframe(aviobj,F);endclose(fig)aviobj = close(aviobj);
My results of trying the 5 compression options:
- 'Indeo3' and 'Indeo5' are not available for 64 bit Windows OS. - With 'Cinepak' - the codec is not found. - 'RLE' and 'MSVC' cannot be used with color data.
Best Answer