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
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
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!