From: Walter Roberson on
Naeem wrote:

> could u please tell me how to convert a matlab movie into a mat file.

save()

Somehow though I suspect that might not be exactly what you want; if
not, then please indicate what format you want to store the data in.
From: Naeem on
Walter Roberson <roberson(a)hushmail.com> wrote in message <IL1Rn.76430$HG1.22185(a)newsfe21.iad>...
> Naeem wrote:
>
> > could u please tell me how to convert a matlab movie into a mat file.
>
> save()
>
> Somehow though I suspect that might not be exactly what you want; if
> not, then please indicate what format you want to store the data in.

i have a file "football.mat" which is made from yuv video sequences such as football00.yuv,football01.yuv etc. i dont know how it was created so when i used the whos function in matlab it showed

whos -file football.mat
Name Size Bytes Class

org_football 240x352x125 84480000 double array

Grand total is 10560000 elements using 84480000 bytes

So i would like to create a similar mat file for some other yuv video sequences.
i have used the code below to read the yuv sequences and create a matlab movie.
All i need is a mat file like the above one. Please help.

clear;
%***************
for i=1:150
i
indx=num2str(i,'%03d');
fid = fopen(['C:\video_sim\test_seq\coastguard\coastguard',indx,'.yuv'],'r');
s = fread(fid,[352 288],'uchar');
fclose(fid);
frames_t(:,:,i)=s';
end
frames=frames_t;
for j = 1:150
imshow(frames_t(:,:,j)/255);
Frm(j) = getframe;
end
fp_sec=10;

movie(Frm,2,fp_sec);

movie2avi(Frm,'C:\video_sim\test_seq\coastguard\coastguard.avi','fps',10,'compression','none','quality',100);
From: Walter Roberson on
Naeem wrote:

> i have a file "football.mat" which is made from yuv video sequences such
> as football00.yuv,football01.yuv etc. i dont know how it was created so
> when i used the whos function in matlab it showed
> whos -file football.mat
> Name Size Bytes Class
>
> org_football 240x352x125 84480000 double array

It appears likely that the matrix org_bootball would be the same kind of
content as you would get if you were to save your variable frames_t
From: Naeem on
Walter Roberson <roberson(a)hushmail.com> wrote in message <24fRn.30435$yx.11982(a)newsfe13.iad>...
> Naeem wrote:
>
> > i have a file "football.mat" which is made from yuv video sequences such
> > as football00.yuv,football01.yuv etc. i dont know how it was created so
> > when i used the whos function in matlab it showed
> > whos -file football.mat
> > Name Size Bytes Class
> >
> > org_football 240x352x125 84480000 double array
>
> It appears likely that the matrix org_bootball would be the same kind of
> content as you would get if you were to save your variable frames_t

thanks a lot it worked.