% Run this script in a directory with YUV images % This will convert all .png images to RGB % Finally, it will combine these pictures to a realtime .avi files = dir('*.png'); v = VideoWriter('video.avi'); v.FrameRate = 60; v.Quality = 100; open(v); for file = files' imwrite(ycbcr2rgb(imread(file.name)), file.name); disp(file.name); frame = imread(file.name); writeVideo(v, frame); end close(v);