フィルターのクリア

Variable frame number in 2 different machines

1 回表示 (過去 30 日間)
Akshay Ravindran
Akshay Ravindran 2017 年 10 月 25 日
コメント済み: Akshay Ravindran 2017 年 10 月 28 日
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 件のコメント
Walter Roberson
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
Akshay Ravindran 2017 年 10 月 28 日
When I tried the vision.VideoReader function I am getting the same value in both systems.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by