How To Extract All Frames From Video

How To Extract All Frames From Video / I have used the following matlab code to extract frames of a video, however, in the folder in which the frames are stored i see that after every five frames (for example), three frames are entirely there are many options, but one command that works fine to extract frames from a video is the following