Having a problem regarding mmreader (avi) video reading

Code ----
obj=mmreader('demo_video.avi');
a=read(obj);
frames=get(obj,'numberOfFrames');
for k = 1 : frames-1
I(k).cdata = a(:,:,:,k);
I(k).colormap = [];
StackTrace ----------
  • ??? Error using ==> mmreadermexInitialization failed. (No combination of intermediate filters could be found tomake the connection.)
Error in ==> mmreader.mmreader at 66 uddobj = mmreadermex(fullFilePath); % registers class

Answers (1)

Try VideoReader() instead. It's newer.

2 Comments

i m using a R2007b version, r u sure it will work there?
Wow, that's really old. I don't think it's over 7 years old. Can you upgrade to the current version?

This question is closed.

Asked:

on 23 May 2014

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!