Borrar filtros
Borrar filtros

Import Avi Files into Matlab on Mac

5 visualizaciones (últimos 30 días)
ceinem
ceinem el 24 de Abr. de 2017
Respondida: Prashant Arora el 28 de Abr. de 2017
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 comentario
Walter Roberson
Walter Roberson el 24 de Abr. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

Prashant Arora
Prashant Arora el 28 de Abr. de 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.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by