Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
movie not playing on windows media player

Subject: movie not playing on windows media player

From: nman2084

Date: 4 Aug, 2011 15:12:29

Message: 1 of 2

I can play the video produced by implay in matlab but windows media player cannot open the .avi file, here is the code


fnavi='Island_perspective.avi';
aviobj=avifile(fnavi,'fps',1,'quality',90);
for i=1:5
    s = int2str(i);
    fileName = strcat({'IslandV'},{s},{'.fig'});
    fileName = cell2mat(fileName);
    f = hgload(fileName);
    h=getframe(f);
    aviobj=addframe(aviobj,h);
end
aviobj=close(aviobj);

Subject: movie not playing on windows media player

From: matt dash

Date: 4 Aug, 2011 20:56:29

Message: 2 of 2

"nman2084" wrote in message <j1ecst$4m$1@newscl01ah.mathworks.com>...
> I can play the video produced by implay in matlab but windows media player cannot open the .avi file, here is the code
>
>
> fnavi='Island_perspective.avi';
> aviobj=avifile(fnavi,'fps',1,'quality',90);
> for i=1:5
> s = int2str(i);
> fileName = strcat({'IslandV'},{s},{'.fig'});
> fileName = cell2mat(fileName);
> f = hgload(fileName);
> h=getframe(f);
> aviobj=addframe(aviobj,h);
> end
> aviobj=close(aviobj);

Windows media player isn't very good. Use VLCplayer and it'll probably work just fine.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us