clc
clear all
close all
VideoFile = VideoReader('D:\sample.format') ;
nFrames = VideoFile.NumberOfFrames ;
vidHeight = VideoFile.Height ;
vidWidth = VideoFile.Width ;
mov(1:nFrames) = struct('cdata', zeros(vidHeight, vidWidth, 3, 'uint8'), 'colormap', []) ;
for Fr = 1:nFrames
mov(Fr).cdata = read(VideoFile, nFrames - Fr + 1) ;
end
hf = figure;
set(hf, 'position', [150 150 vidWidth vidHeight])
movie(hf, mov, 1, VideoFile.FrameRate);