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.

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 Commenti

what do you mean by releases. I need frames from a video. This code runs on other computers why not on mine I also install windows 7 codec. but I do not have windows media features for 32bit system. Is this the issue.
By release, Rik meant which MATLAB version are you using e.g. R2018a is the latest version.
Are you able to view the mp4 file using another program like windows media player? If not, it could be a 64bit vs 32bit codec issue as discussed here:
Attach the clip here if it's not too big, or on some third party web site if it's too big to attach here.
What operating systems are the "other computers" running?
Other computer is 64 bit operating system I am running on 32 bit operating system. This might be the reason. Should I install 64 bit operating system
I'd doubt that is the reason, but who knows - we've all seen some bizarre things before. If you can, a 64 bit OS is better overall if your hardware can handle it.

Accedi per commentare.

Risposte (0)

Richiesto:

il 25 Mag 2018

Commentato:

il 27 Mag 2018

Community Treasure Hunt

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

Start Hunting!

Translated by