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

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

Would it be possible for you to make the file available for testing purposes?
I just upgraded to 2020a and it solved the issue. Thanks.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

태그

질문:

2020년 7월 2일

댓글:

2020년 8월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by