Filter löschen
Filter löschen

Matlab cannot read video frames from .avi video file

1 Ansicht (letzte 30 Tage)
Yunhui Zhou
Yunhui Zhou am 30 Jan. 2018
Kommentiert: Lien Swatzer am 4 Jul. 2018
Our lab have a eye-tracking glasses which can record environment that the subjects are facing, and generates .avi video file. The file can be played by VLC player directly. However, when I try to read the video file into Matlab R2017a for further analysis, it seems that I can't get video frames out of the file.
First I create a VideoReader object by:
vidReader = VideoReader('EyeTrackerVideo.avi');
And the "vidReader" correctly reports my video duration, framerate, height and width. However, when I type
hasFrame(vidReader)
It returns "0", which prevents me from reading frames in my video file, according to matlab documentation.
What is the cause of this problem? Is there any other way I can read frames out of my video file?
  1 Kommentar
Lien Swatzer
Lien Swatzer am 4 Jul. 2018
Hello, I try to use VideoReader to read .avi file and face the same problem. Have you solved it?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Produkte

Community Treasure Hunt

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

Start Hunting!