Re: Quick DirectShow question

Tech-Archive recommends: Fix windows errors by optimizing your registry



Andrew,

I don't like this example, personally. I think you would be better
using the ISampleGrabber interface and hooking into the video stream. For
AVI files, these samples ^should^ be in Bitmap format.

There is a library called DirectShow.NET, which has a good number of the
interfaces for DirectShow defined in a .NET assembly. You can use these to
access the render graph and insert your filter.

Here is a link to a good example of how to do this:

http://www.a2ii.com/tech/directx/tutorialDS6.htm

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"Andrew Bullock" <andrewREMOVEbullockTHIS@xxxxxxxxxxxxxxxxxxx> wrote in
message news:j7MFf.28627$mf2.6298@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

I'm trying to use direct show to grab arbitrary frames from a DV .avi.

I'm using the PlayWnd code from this example:
http://www.codeproject.com/cs/media/directshownet.asp

Currently an IGraphBuiler is cast to an IVideoWindow, which is passed the
Handle of a picturebox to display the video in.

How can I grab the video directly into a bitmap object?


Thanks

Andrew


.



Relevant Pages

  • Re: Windows media playback on TV
    ... The H+ driver can only output to TV what its own MPEG decoder is decoding. ... I know there is a couple of unsupported video renderers for DirectShow (not ... video card with TV-out and video-mirroring capabilities, ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Windows media playback on TV
    ... The H+ driver can only output to TV what its own MPEG decoder is decoding. ... I know there is a couple of unsupported video renderers for DirectShow (not ... video card with TV-out and video-mirroring capabilities, ...
    (microsoft.public.windowsmedia)
  • Re: Windows media playback on TV
    ... The H+ driver can only output to TV what its own MPEG decoder is decoding. ... I know there is a couple of unsupported video renderers for DirectShow (not ... video card with TV-out and video-mirroring capabilities, ...
    (microsoft.public.windowsmedia.player)
  • How do I fix WMP10? Can not play ANY streaming.
    ... Neither audio nor video streaming using the ... DirectShow Filters ... WDM Streaming Data Transforms: ... Microsoft Kernel Acoustic Echo Canceller,0x00000000,0,0,, ...
    (microsoft.public.windowsmedia.player)
  • Re: Saving screen shots of .avi files using Windows Media Player?
    ... QuickTime is the only free video ... player that I cannot get to run the .avi files. ... Editor shows a true image of all the Windows components of the screen ...
    (microsoft.public.multimedia.windows.mediaplayer)