Variable frame number in 2 different machines

2 views (last 30 days)
vidObj = VideoReader('video_file.avi');
numFrames = 0;
while hasFrame(vidObj)
numFrames = numFrames + 1;
I am getting a variable numFrames (number of frames) in running the same code on two different machines
i.e. I am reading the number of frames using the above code snippet in two separate machines both with Matlab2017 installed, on the same video file. However, I am getting two different values of frame numbers on each machine. Could you please let me know why that is so?
Akshay Ravindran
Akshay Ravindran on 28 Oct 2017
When I tried the vision.VideoReader function I am getting the same value in both systems.

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!