Path: news.mathworks.com!not-for-mail
From: "Leslie McBrayer" <lmcbrayer@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Problem with mmreader and capture frame
Date: Thu, 4 Jun 2009 09:18:21 -0400
Organization: The MathWorks, Inc.
Lines: 33
Message-ID: <h08hiu$ek8$1@fred.mathworks.com>
References: <h0899s$8fo$1@fred.mathworks.com>
Reply-To: "Leslie McBrayer" <lmcbrayer@mathworks.com>
NNTP-Posting-Host: mcbrayerl.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1244121503 14984 144.212.105.130 (4 Jun 2009 13:18:23 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 4 Jun 2009 13:18:23 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:544798


> I read a movie with the function mmreader and I tried to extract a 
> specific frame from my video.I have extracted the frame but has lots of 
> horizontal lines and I can see anything.   ==== Why ???

This may be related to a known bug in mmreader, which has a workaround. 
See:

http://www.mathworks.com/support/bugreports

and search for mmreader and/or 536560.

> 2. When I use
>
> frame=get(handles.counter,'string'); % frame = 58 or the value when I push 
> the pause button
> poza=read(handles.film,frame);
>
> ==================================================
> it gives me this err:
>
> ??? Error using ==> mmreader.read at 81
> INDEX must be a numeric scalar or 1x2 vector.
>

Try changing

> frame=get(handles.counter,'String')

to

frame = str2num(get(handles.counter,'String'))