Writing array to AVI using writeVideo

6 views (last 30 days)
SteveH
SteveH on 4 Mar 2016
I have double array I convert using I8bit = uint8(I); Here is snippet of my code that works:
vidProfile = 'Grayscale AVI' ;
v = VideoWriter(fname,vidProfile);
open(v);
writeVideo(v,I8bit);
close(v);
This provides no compression. If I try other profiles such as 'Archival' I get this error: 'Error using VideoWriter/writeVideo (line 408) IMG must be an array of either grayscale or RGB images.'
How do I compress 8bit grayscale for AVI?

Answers (0)

Community Treasure Hunt

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

Start Hunting!