VideoReader skips abruptly changes Current Time to equal Duration and throws error
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Konstantin Bakhurin
el 2 de Jul. de 2020
Comentada: Konstantin Bakhurin
el 11 de Ag. de 2020
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 comentarios
Walter Roberson
el 3 de Jul. de 2020
Would it be possible for you to make the file available for testing purposes?
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!