This code runs on other computers but when I run on win7 32 bit operating system the code It does not works and give error Warning: Unable to determine the number of frames in this file.

1 view (last 30 days)
Muhammad Khan
Muhammad Khan on 25 May 2018
Commented: Muhammad Khan on 27 May 2018
x=VideoReader('clip.mp4');
for img = 1:x.NumberOfFrames
filename = strcat('frame',num2str(img),'.jpg');
b = read(x, img);
b=rgb2gray(b);
imwrite(b,filename);
end
  8 Comments

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!