Videoreader cannot read video frames properly

For example a *.wmv video length is 10 sec. Frame per second 50. Total frame= 10*50 =500 frames.
But Matlab NumberofFrames function gives 351 frames.
When same video start a blackframe, this time function gives 500 frames.
What can I do? What is problem? I think that the problem is Matlab videoreader function.

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 1 月 15 日

0 投票

It might be a variable framerate movie. Or the recording process might not have been able to store frames fast enough leading to frames being skipped.

3 件のコメント

seyit kara
seyit kara 2016 年 1 月 15 日
Thanks, but I think the problem is big. There is a problem Matlab videoreader function.
Walter Roberson
Walter Roberson 2016 年 1 月 15 日
Was the video written using videoWriter class? If so then which MATLAB release are you using and which operating system?
seyit kara
seyit kara 2016 年 1 月 15 日
The video written Edius program. Is that important? any video can be.
Op. system win 7 64 bit. Matlab R2013a
I said that Matlab NumberofFrames function gives 351 frames.
When same video start a blackframe, this time function gives 500 frames.

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

質問済み:

2016 年 1 月 15 日

コメント済み:

2016 年 1 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by