From: Matthew Wiggins on
I am trying to create an AVI file but I am getting some strange errors. I am on Windows 7 with R2010a.

My code is the following:
aviobj = avifile('example.avi','compression','None');

for i=0:255
aviobj = addframe(aviobj, i*ones(100,100,'uint8'));
end
aviobj=close(aviobj);
clear aviobj

readerobj = mmreader('example.avi'); % access AVI


I get the following error:
??? Initialization failed. (No combination of intermediate filters could be found
to make the connection.)

Error in ==> mmreader.mmreader>mmreader.init at 423
obj.MMReaderImpl = audiovideo.mmreader(fullName);

Error in ==> mmreader.mmreader>mmreader.mmreader at 133
obj.init(fileName);

Looking up this error around the web seems to indicate it is some kind of codec issue, but I am not doing any compression. Can anyone else reproduce this or offer a suggestion for fixing it?
Thanks!
From: Matthew Wiggins on
Solved. It required two things:
1) the installation of FFDShow from here... http://www.free-codecs.com/download/FFDshow.htm
2) adding a im2frame conversion for converting the indexed image to a MATLAB frame. This line of code from my original post,
aviobj = addframe(aviobj, i*ones(100,100,'uint8'));
becomes this
aviobj = addframe(aviobj, im2frame(i*ones(100,100,'uint8'), colormap(gray(256))));