Code covered by the BSD License  

Highlights from
VIDEO2FRAME CONVERSION

image thumbnail

VIDEO2FRAME CONVERSION

by

 

Video 2 frame conversion is an easy way to doing.First reading video file and writing into frames.

vid2frame.m
warning off;
clear all;
close all;
clc;

obj = mmreader('sat1.avi');
vid = read(obj);
frames = obj.NumberOfFrames %Read the Total number of frames and displyed in command window 
ST='.jpg';

%%ex)readind and writing the 100 frames 

%if u want to change the values means replace upto 1:776

 for x = 1:100       
      Sx=num2str(x);
      Strc=strcat(Sx,ST);
      Vid=vid(:,:,:,x);
      imwrite(Vid,Strc);
end

Contact us