Re: [libdc] dropping frames. possible bug in libdc1394 ?
Capture and control API for IIDC compliant cameras
Brought to you by:
ddouxchamps,
gordp
From: Michael J. <mjo...@gm...> - 2010-10-11 20:59:35
|
First of all sorry for the late response. On the day you wrote the first response my first son was born and I took some days off. Thank you Damien for interest. 1) I either set the shutter to about 30ms or use one-shot auto shutter. ( I am using Stingray F046C) This is a good advice - I have to set it permanently to less than 66ms. But I don't think this is my problem. If the shutter time would be expanded I would get less frames per second. I don't see any reason why the latency would grow up to 1000ms? But maybe there is a reason? 2) I checked many different scenarios and it seems my code is ok. I tried POLL and WAIT policy. I run only image acquisition with writing without preview. Even one camera grabbing caused high latency after some time (this is weird). I wrote a simple console application to avoid event loop processing and still the problem persists. 3) I think this is not the case since I measured times per frame and they were up to 40ms. I have checked the coriander today and the latency was not growing. That's good. I can take a look at the source and write a libdc1394 based code. Thank you for help. 2010/10/5 Damien Dusha <d....@gm...> > Hello, > > On Wed, Sep 22, 2010 at 6:10 PM, Michael Joachimiak > <mjo...@gm...> wrote: > > I am grabbing from 1394 IIDC cameras. > > > > From time to time I get very high latency - a bit more than 1s. The > frames > > are dropped of course after that. > > How I can debug it more? > > My acquisition loop is not a problem - in the worst case it takes only > 40ms > > per frame in 15Hz capturing. > > I am using DC1394_VIDEO1394_WAIT policy. > > The machine is Linux 2.6.32-24-generic #43-Ubuntu SMP Thu Sep 16 14:58:24 > > UTC 2010 x86_64 GNU/Linux > > I am using OpenCV for grabbing frames. > > It is reproducible using Coriander? > > -- Damien > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Mailing list for libdc1394-devel > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libdc1394-devel > -- Your Sincerely Michael Joachimiak |