Import Avi Files into Matlab on Mac
10 views (last 30 days)
Show older comments
I'm trying to edit avi files in the latest version of Matlab on a MacBook Pro running macOs Sierra. When importing the video file (either via VideoReader or via vision.VideoFileReader) I get similar error messages. For vision.VideoFileReader it says: Error using dspmmfileinfo>tryVideoReader (line 305) The file does not appear to have any video data. The specified file is: .... For VideoReader it says: Error using VideoReader/init (line 619) The file does not appear to have any video data.
The files play perfectly fine using VLC player. As far as I can tell it's an MPEG-4 XVID Video Codec. Does anyone know if this is a mac issue and whether it would work on windows? or is it an issue with my video files? Anything I can do to get it running on mac?
I tried converting some of them into mp4 and Matlab handled them perfectly fine, but I don't want to go through all of them to convert them.
Thanks for the help!!
1 Comment
Walter Roberson
on 24 Apr 2017
On El Capitan, I cannot read in the standard traffic.avi demo file using MATLAB. Quicktime cannot handle it either. DiVX Player crashes on it. FlipPlayer tells me I need to add a commercial component to play it.
So... it might not be possible with native OS-X facilities.
Accepted Answer
Prashant Arora
on 28 Apr 2017
I think MATLAB relies on Platform APIs to read a file using VideoFileReader. If Quick Time can't open the file on your macOS, you will not be able to read it using VideoFileReader.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!