Trouble with VideoReader on MAC or with different MATLAB versions
Show older comments
I am trying to read an *.avi file with the following code:
VidObj=VideoReader('074745_CH1_MOT.AVI')
This works fine on my PC in verions R2011a, but we are getting the following error on a MAC running version 2014a.
Error using VideoReader/init (line 457) Failed to initialize internal resources.
Error in VideoReader (line 146) obj.init(fileName);
4 Comments
Geoff Hayes
on 1 Aug 2014
John - what can you say about your avi i.e. how large is it, and what does the following statement return
mmfileinfo('074745_CH1_MOT.AVI')
Can you play the video outside of MATLAB, say in QuickTime Player?
Suzanne Cox
on 19 Jan 2015
Edited: Suzanne Cox
on 19 Jan 2015
I have the same problem with VideoReader and the same error. mmfileinfo gives the same error: Failed to initialize internal resources
This also is only a problem for me on my mac for any AVI I'm trying to open (~3 MB). It works fine on the PC.
Ewa Nowara
on 27 Jul 2016
Installed gstreamer0.10-tools and gstreamer0.10-plugins-good and it worked for me.
Tudor Achim
on 11 Aug 2016
Thanks @Ewa that did the trick for me as well.
Answers (1)
Jan Ries
on 25 Feb 2015
0 votes
Hi John, hi Suzanne!
I've been having the exact same trouble using VideoReader on Mac. I found out that when I use QuickTime's trim feature to remove even the slightest bit at the beginning of the video and then save it with the same encoding, VideoReader handles it just fine. I'm not sure at this point why that's the case and where that problem comes from – I've had the "failed to initialize" with both mp4 and uncompressed avi files recorded on a Win8 machine as well as h.264 videos coming from Premiere Pro on a Mac.
Hope that helps, Jan.
2 Comments
Thomas Rapstine
on 11 Feb 2016
This work around did not work for me on El Capitan Mac when reading a .mp4 in R2015a.
Hari
on 4 Jun 2016
I am facing the same problem with .avi files only. Found any solution for it?
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!