Thread Subject: mmreader bug

Subject: mmreader bug

From: Peter Bone

Date: 7 May, 2009 09:25:03

Message: 1 of 4

I'm having a problem with mmreader where loading consecutive frames occasionally returns the same frame image. I have checked the video an there are no duplicate frames. This happens with mpeg4 video and uncompressed. Here's some code that demonstrates the problem

mov = mmreader('video.avi');
f = 1;
h = uicontrol('Style','pushbutton','String','Start','Callback',...
    'i=read(mov, f);imshow(i);set(h,''String'',num2str(f));f=f+1;');

Clicking the button loads a frame, displays it and increments the frame number. Every 10 or so frames it loads the same frame twice in a row even though the frame number has incremented.

Has anyone else had this problem?

Peter

Subject: mmreader bug

From: Peter Bone

Date: 7 May, 2009 10:14:02

Message: 2 of 4

It's also missing the frame after it gets a duplicate. So it's basically loading the wrong frame for the frame number but then loading the correct frame afterwards.

Subject: mmreader bug

From: Peter Bone

Date: 8 May, 2009 08:51:01

Message: 3 of 4

The Problem only happens when loading one frame at a time. When loading all frames in a given range there is no duplication.
Someone else must have experienced this? Could someone try running my code above with any video and see if you get the same problem just so I can check there's not something wrong my end. I'm using R2007b.

Subject: mmreader bug

From: Peter Bone

Date: 8 May, 2009 09:01:04

Message: 4 of 4

It seems that the problem only happens in Matlab 2007. Matlab 2008b doesn't have the problem. I will upgrade.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
mmreader Peter Bone 7 May, 2009 05:29:05
video Peter Bone 7 May, 2009 05:29:05
rssFeed for this Thread

Contact us at files@mathworks.com