Re: Render URL

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



aidanh wrote:

> I am trying to create an application that renders remote
> webcams which are being streamed using Windows Media
> Encoder.
>
> In GraphEdit I can simply use Render URL with mms://.....
>
> If I want to simulate this in my application what is the
> source filter that would be used? If it is an ASF Reader
> filter, this does not seem to be dispayed in my list of
> filters available and I think is part of a differnet SDK?
> Which i would prefer not to install.
>
> Is this the only option?

GraphEdit does the following:

1. ::CoCreateInstance(CLSID_FilterGraph,IID_IGraphBuilder)

2. IGraphBuilder::RenderFile(szURL,NULL)

RenderFile() will select an adeguate source filter for you,
just like it does in GraphEdit.

With an MMS URL, the source filter that's chosen by default
is the old WindowsMediaSourceFilter.

If you want to use the new WMASFReader, you need to do the
following:

1. ::CoCreateInstance(CLSID_FilterGraph,IID_IGraphBuilder)

2. ::CoCreateInstance(CLSID_WMAsfReader,IID_IBaseFilter)

3. IGraphBuilder::AddFilter(pReader,szURL)

4. IBaseFilter::EnumPins()

5. for each output pin, IGraphBuilder::Render()

You do not need any SDK other than the DirectShow SDK
(either the old version in the DirectX SDK or the new
version in the Platform SDK).

--

// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net


.



Relevant Pages

  • Re: Broadcasting using WME SDK
    ... I can use the Windows Media Encoder 9 SDK to create broadcast-ready encoding ... You can use DirectShow and an instance of the WM ASF Reader filter to ...
    (microsoft.public.windowsmedia.encoder)
  • Re: How to create VIDEO STREAM having multiple still images (frames)
    ... Windows Media Encoder (with it's SDK if need be) on the remote machine. ... This can be configured to unicast or multicast so you can pick up the video ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Windows Media Player 10 SDK
    ... Steve, have you read this section of the documentation? ... Windows Media Player SDK ...
    (microsoft.public.windowsmedia.sdk)
  • Conflicts btwn Media Player 11 and WMF SDK 9.5 !!!?
    ... I have developped a application using WMA and WMV codecs ... from the Windows Media Format 9.5 SDK, through DirectShow. ...
    (microsoft.public.windowsmedia.sdk)
  • windows media format sdk
    ... It seems there are 2 windows media source filters... ... one is the old windows media source filter, and the new is the WM ASF Reader ...
    (microsoft.public.win32.programmer.directx.audio)