From: rc3002 C on
Hi,

I'm reading AVI files into Matlab. I've encountered something strange - the movies are in grayscale format, but when loaded into Matlab, each frame appears like it is composed of R,G,B, where the three matrices are identical for each frame.

I worked on the frames, and removed the redundant G,B frames for each frame (I also added a gray color map as needed for each frame if it is not RGB). After saving it again using MOVIE2AVI I've got a file which is third in size relative to the original.

Well, it may not be a Matlab issue, but when saving a gray scale AVI file with some CODEC, is it saved with R,G,B values per each frame even for gray scale images? I would assume that it should only save one color map (because it is the same for each frame) and one matrix per frame.