Re: Render URL
- From: "Alessandro Angeli [MVP::DigitalMedia]" <nobody@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 4 May 2005 12:23:50 +0200
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
.
- References:
- Render URL
- From: aidanh
- Render URL
- Prev by Date: RE: Video compressors enumeration and FourCC
- Next by Date: VMR-9 with D3D Tutorial
- Previous by thread: Render URL
- Next by thread: VMR-9 with D3D Tutorial
- Index(es):
Relevant Pages
|