To resolve this issue in MATLAB 7.7 (R2008b), you may create an uncompressed video using
avifile(filename, 'Compression', 'None')
and then compressing the file using a third party tool like:
- Windows Movie Maker
- Windows Media 9 encoder
- VirtualDub (<http://www.virtualdub.org/>)
- Quicktime Pro
VirtualDub has a command line interface so it is possible to drive it using SYSTEM.
The second workaround is to specify a codec for a compression that is installed. The ones that are included with Windows XP 64 are
* IYUV — Intel YUV codec (c:\winnt\system32\iyuv_32.dll)
* MRLE — Microsoft RLE codec (c:\winnt\system32\msrle32.dll)
* MSVC — Microsoft Video 1 codec (c:\winnt\system32\msvidc32.dll)
For example, to use the Intel YUV codec, use the four-CC code:
aviobj = avifile('myvideo.avi', 'compression', 'IYUV');
Note there are restrictions with some codecs. For example, some codecs can only be used with grayscale images.
Best Answer