Re: How to reduce % processor time while capturing video
- From: Thore Karlsen [DShow MVP] <sid@xxxxxxxx>
- Date: Sun, 18 Jun 2006 18:42:05 -0500
On 18 Jun 2006 16:17:16 -0700, "Ziggy" <zmandel@xxxxxxx> wrote:
I am capturing images with a bitmap capture filter, and it works well.
The only problem is that it uses a lot of % processor time while the
images are being captured (from a webcam).
I know this behavior is normal because other video-capture apps I have
tried, like the one MSN messenger uses for video, also uses a lot of %
processor time while it is capturing (the "system" process uses about
90% of the processor time.)
90% is insane for capturing, but I suspect it's an issue with your
webcam or its driver.
Here is the twist: I only need to capture with a very low frame rate,
say about 4 frames/second.
I have found a couple interfaces to change framerates, like
VIDEOINFOHEADER::AvgTimePerFrame, and IMediaSeeking::SetRate , but
these seems to apply only to playback rates, not while capturing.
AvgTimePerFrame works for capturing. Try IAMStreamConfig::GetFormat() on
your capture pin to get the current capture format, then modify
AvgTimePerFrame, then SetFormat() to apply your change.
--
New to newsgroups? Read: http://dev.6581.com/newsgroups.html
.
- Follow-Ups:
- References:
- Prev by Date: Re: How to reduce % processor time while capturing video
- Next by Date: Re: How to reduce % processor time while capturing video
- Previous by thread: Re: How to reduce % processor time while capturing video
- Next by thread: Re: How to reduce % processor time while capturing video
- Index(es):
Relevant Pages
|