Variable frame number in 2 different machines
이전 댓글 표시
vidObj = VideoReader('video_file.avi');
numFrames = 0;
while hasFrame(vidObj)
readFrame(vidObj);
numFrames = numFrames + 1;
end
numFrames
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?
댓글 수: 8
KSSV
2017년 10월 25일
is the video same?
Akshay Ravindran
2017년 10월 25일
KSSV
2017년 10월 25일
I checked same video in two different pc's..I got same number of frames.....is version same on all pc's? (I don't think this is going to affect anyways)
Akshay Ravindran
2017년 10월 25일
Duncan Lilley
2017년 10월 27일
Hi, are you able to provide an example file which you are noticing this issue with?
What operating systems are you using on the machines which you are testing this on?
Akshay Ravindran
2017년 10월 28일
Walter Roberson
2017년 10월 28일
I suggest using VLC to transcode the file. I suspect that it is either corrupt or uses some video feature that was not available in Windows 7 readers.
Akshay Ravindran
2017년 10월 28일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
