Re: How to reduce % processor time while capturing video

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
.



Relevant Pages

  • performance monitor counters
    ... I have a web and database server that people complain is ... I am currently capturing the "%processor time" ... counter on performance monitor. ...
    (microsoft.public.win2000.general)
  • Re: How to deinterlace capture card video?
    ... When I capture at 640 x 480, I get interlaced video. ... This looks awful, ... I use Active Webcam fom Pysoft to upload via FTP. ... Capturing at 320 x 240 is OK. ...
    (rec.video.desktop)
  • Why filter graph display the previous frame...........
    ... graph edit tool using vmr9 filter and it is capturing from webcam and ... press the play button it will start capturing from webcam and display ...
    (microsoft.public.win32.programmer.directx.video)
  • Source change video solution from webcam - Its wrong???
    ... I want to change width and height of Webcam for capturing to a video ... error is "This media type is not valid". ...
    (microsoft.public.win32.programmer.directx.video)
  • Capturing web camera video stream
    ... capturing the video stream coming from my webcam using J2SE if this is ...
    (comp.lang.java.programmer)