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

回答(1 个)

Try VideoReader() instead. It's newer.

2 个评论

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?

此问题已关闭。

提问:

2014-5-23

关闭:

2021-8-20

Community Treasure Hunt

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

Start Hunting!

Translated by