VideoReader skips abruptly changes Current Time to equal Duration and throws error

1 回表示 (過去 30 日間)
Konstantin Bakhurin
Konstantin Bakhurin 2020 年 7 月 2 日
Hello all,
Long time, first time. I've been working with the VideoReader function for about a year. Only recently the function has stopped being able to read in the AVI files that I record regularly for my experiments.
Before I begin reading frames using the readFrame function, the video object properties look like this: Note, current time is 0.
vidObj =
VideoReader with properties:
General Properties:
Name: 'VGLUT2 72 3bottom 642020 stim at 5 500ms-06042020224432-0000.avi'
Path: 'C:\Data\Vglut72 - GtACHR2 in VM VA VL\June 4 2020'
Duration: 600.0300
CurrentTime: 0
Tag: ''
UserData: []
Video Properties:
Width: 720
Height: 544
FrameRate: 149.9925
BitsPerPixel: 24
VideoFormat: 'RGB24'
After reading out a handful of frames, the function throws an error:
Error using VideoReader/throwNonEofException (line 660)
Unable to read the file.
Error in VideoReader/readFrame (line 114)
throwNonEofException(obj);
Error in epochExtractedVideoTight (line 106)
frame = readFrame(vidObj);
Calling the video object shows that it just set the current time to be the end of the video:
VideoReader with properties:
General Properties:
Name: 'VGLUT2 72 3bottom 642020 stim at 5 500ms-06042020224432-0000.avi'
Path: 'C:\Data\Vglut72 - GtACHR2 in VM VA VL\June 4 2020'
Duration: 600.0300
CurrentTime: 600.0300
Tag: ''
UserData: []
Video Properties:
Width: 720
Height: 544
FrameRate: 149.9925
BitsPerPixel: 24
VideoFormat: 'RGB24'
In this particular case, it happened after reading 17 frames. I have not changed anything about my recording software and I have not changed my Matlab release in years.
Using release Matlab 2018a.
  2 件のコメント
Walter Roberson
Walter Roberson 2020 年 7 月 3 日
Would it be possible for you to make the file available for testing purposes?
Konstantin Bakhurin
Konstantin Bakhurin 2020 年 8 月 11 日
I just upgraded to 2020a and it solved the issue. Thanks.

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

回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by