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

1 visualizzazione (ultimi 30 giorni)
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.

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by