From: Allen on
I'm trying to get any video fourcc video codec to work w/ MATLAB R2008b - I've tried WMV9, MPEG, H264, etc. - all of which show as installed on my PC when I look under the Device Manager Video codec properties. The default setting INDEO5 seems to work fine, but none of the people I need to send the file to has that installed on their machine (it is listed as a potential security hazard, and unsupported). The error message I get with all of them is:

Warning: Not a supported compression method. An attempt will be made to use this
compressor.
> In avifile.set>setCompression at 185
In avifile.set at 43
In avifile.avifile at 166
In Display_map_sequence at 15
In run at 74
??? Error using ==> avi
Can not locate compressor.

Error in ==> avifile.addframe at 188
avi('addframe',rot90(frame,-1), aviobj.Bitmapheader, ...

Error in ==> Display_map_sequence at 22
aviobj=addframe(aviobj,fig1);

The relevant code is as follows:
codec = 'WMV9';
frame_rate = 10;
aviobj=avifile('map_sequence.avi','fps',frame_rate,'compression',codec);

What am I doing wrong?
From: witek on
Hi,

I would strongly recommend that you consider upgrading to later releases. You can
use mmreader in MATLAB and in 10a you'd gain access to video.MultimediaFileReader
and video.MultimediaFileWriter System objects. mmreader can handle many compression
standards that you list below. If in addition to video, you need to process audio
and/or WMV9 files, then the System objects are your friends.

HTH,

Witek


Allen <allent(a)mail.esd.sri.com> wrote:
> I'm trying to get any video fourcc video codec to work w/ MATLAB R2008b - I've tried WMV9, MPEG, H264, etc. - all of which show as installed on my PC when I look under the Device Manager Video codec properties. The default setting INDEO5 seems to work fine, but none of the people I need to send the file to has that installed on their machine (it is listed as a potential security hazard, and unsupported). The error message I get with all of them is:
>
> Warning: Not a supported compression method. An attempt will be made to use this
> compressor.
> > In avifile.set>setCompression at 185
> In avifile.set at 43
> In avifile.avifile at 166
> In Display_map_sequence at 15
> In run at 74
> ??? Error using ==> avi
> Can not locate compressor.
>
> Error in ==> avifile.addframe at 188
> avi('addframe',rot90(frame,-1), aviobj.Bitmapheader, ...
>
> Error in ==> Display_map_sequence at 22
> aviobj=addframe(aviobj,fig1);
>
> The relevant code is as follows:
> codec = 'WMV9';
> frame_rate = 10;
> aviobj=avifile('map_sequence.avi','fps',frame_rate,'compression',codec);
>
> What am I doing wrong?