I am trying to use the code below to convert yuv sequences into a single matlab video file.
but when i run the code it shows error "Invalid file identifier".
can someone please point out the mistake it would be a great help.
clear;
%***************
for i=1:150
i
indx=num2str(i,'%11.3d');
fid = fopen(['C:\video_sim\test_seq\tennis\tt',indx,'.yuv'],'r');
s = fread(fid,[352 240],'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)