Re: how to do real-time video processing without showing the preview window?



From: "temp12000@xxxxxxxxx"

Is there any way so that I don't need show (or use) the
preview window and can access the image (video) data
directly? All I need do is some calculation.

That depends on what capture method you are using.

It doesn't matter as long as use webcam to get the image
data.

What do you mean it doesn't matter? If you want to keep
using whatever method you are using now, it matters.
Otherwise, you need DirectShow.

The documentation has a whole section on video capture and
the SDK contains the source code of a complete capture
application, that is the AmCap sample. Notice that a webcam
is just another video capture device (unless the webcam you
are using only provides proprietary drivers).

Once you know how to capture, you can process the frames in
real-time by replacing the muxer filter with a custom
sink/renderer or a SampleGrabber+NullRenderer. Both methods
have been discussed many times, so you can find details by
searching the history of this group on groups.google.com.


--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


.



Relevant Pages

  • Re: C# webcam
    ... You want to preview and capture video and audio from a webcam (or any other ... WDM capture hardware)? ... DirectShow sample, because it's the only thing you can do with Managed code, ...
    (microsoft.public.dotnet.general)
  • Re: URGENT...!!! Live stream recording quality
    ... I am using "Windows Media 9 Encoder SDK" to capture Monitor Screen. ... Where by Screen contains live video streamed from the WebCam. ...
    (microsoft.public.windowsmedia.encoder)
  • Re: Need a Camera Preview Application with Capture Capability
    ... This details everything about what DirectShow video capture does: ... -Enumerate the camera drivers in the device and configure the video capture ... Since you're new to DirectShow, I'd recommend reading up on COM and reading ...
    (microsoft.public.pocketpc.developer)
  • Video Capture Troubles
    ... I'm having a few troubles with DirectShow Video Capture on a Windows Mobile 5 PPC device, and I'm hoping that the people around here might be able to point me in the right direction. ... I'm writing a live streaming application, so the goal is to get access to video frames as they arrive from the device's camera with as little latency as possible. ...
    (microsoft.public.windowsce.app.development)
  • Re: LOGO in Video
    ... Some video capture cards, such as those from Osprey, support adding a bitmap ... Watermark to video that you are encoding with Windows Media Encoder (check ... Directshow for Digital Video and Television" has some mostly-useful ...
    (microsoft.public.windowsmedia.sdk)