Import Avi Files into Matlab on Mac

11 次查看(过去 30 天)
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 个评论
Walter Roberson
Walter Roberson 2017-4-24
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.

请先登录,再进行评论。

采纳的回答

Prashant Arora
Prashant Arora 2017-4-28
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 个)

Community Treasure Hunt

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

Start Hunting!

Translated by