Trouble with VideoReader on MAC or with different MATLAB versions

2 次查看(过去 30 天)
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 个评论
Ewa Nowara
Ewa Nowara 2016-7-27
Installed gstreamer0.10-tools and gstreamer0.10-plugins-good and it worked for me.

请先登录,再进行评论。

回答(1 个)

Jan Ries
Jan Ries 2015-2-25
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.

Community Treasure Hunt

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

Start Hunting!

Translated by