Re: Get DirectShow graph of WMP

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



From: "Ricciolo"

First, I have to hook WMP because Windows Presentation
Foundation use it to show media, but it doesn't allow to
show webcam.
Protocol handlers aren't permitted and I don't wont to
use custom source filter. So my intent is to capture the
graph and changes the graph source, but I'm using Vista,
infact CLSID_FilterGraphNoThread is never used and rot
doesn't expose it. May by I have to work with different
modes basing on OS.
Now I investigate on MediaFoundation, but if you have any
idea to reach my target, please tell me

MF only supports WindowsMedia, no video capture or streaming
protocols or other file formats.

The best way to achieve your goal is to write a custom
source filter and associate it with a custom URL scheme.
Writing a custom push source based on CSource/CSourceStream
is very easy (take a look at the Push[Source?] sample).

Otherwise you will have to write your own media element for
WPF. The trick would be to use the EVR as video renderer in
your DirectShow graph to integrate the element with WPF's
D3D9-based rendering mechanism.

Better yet, refuse to support Vista :-)


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


.



Relevant Pages

  • Re: ASF custom file type
    ... This source filter is loaded when playing the AVI. ... stock AVI/WAV handler or custom handler ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Looking for tutorials
    ... to write your own push-mode source filter or pull-mode ... Of course, your output media type will be a custom one, ... Media File) or a custom protocol or both. ... put the whole text in a media sample and use the allocator ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: WAVE_FORMAT_MPEGLAYER3
    ... and MP3 files, regardless of what source filter is specified ... Chris's suggestion to register a custom ... // a dot angeli at psynet dot net ...
    (microsoft.public.win32.programmer.mmedia)
  • DMO decoder reject FORMAT_VideoInfo2
    ... The custom WM source filter reads samples from an ASF file with the WM Sync ... However, I must support aspect ratio changes, so I tried to use ... the WMVideo Decoder DMO filter rejects the connection. ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Using DirectShow to receive MJPEG frames from an Axis IP Cam
    ... >DirectShow source filter for Windows Media Encoder that grabs frames ... >from an Axis IP device? ... I know that UnReal Media ... You can create a source filter that opens up an HTTP connection to the ...
    (microsoft.public.win32.programmer.directx.video)