Discussion:
Directshow - Open video stream from URL
(too old to reply)
shanks
2005-05-13 05:41:09 UTC
Permalink
Hi,

I want to render a streaming video using Directshow. The feature I want is
same as the one provided by Windows Media Player's Open Url option (Under the
File Menu), which works with with both http:\\ and mms:\\ protocols.

I have already developed a player that plays videos present on the local disk.
Can somebody give me a lead on this ? Some samples would be of real help.

Thanks
Shashank
Iain
2005-05-13 06:03:16 UTC
Permalink
Post by shanks
Hi,
I want to render a streaming video using Directshow. The feature I want is
same as the one provided by Windows Media Player's Open Url option (Under the
File Menu), which works with with both http:\\ and mms:\\ protocols.
I have already developed a player that plays videos present on the local disk.
Can somebody give me a lead on this ? Some samples would be of real help.
Thanks
Shashank
I think this question was addressed recently - a google should help. I
think it was Alessandro who answered.

Iain
--
Iain Downs (DirectShow MVP)
Software Product Consultant
www.idcl.co.uk
shanks
2005-05-13 09:11:04 UTC
Permalink
Hi,

That does work. But may be I did not make myself clear enough.

What I am trying to say is, I set up a broadcast session with Windows Media
9 Encoder to get a Url (something like http://15.106.208.31:3321). When I put
up this Url in Windows Media player - Open URL option, I am able to view the
streaming (broadcasted) video.

But this option does not work with Directshow RenderFile.

The solution Alexander gave is for a link like
http://example.microsoft.com/example.avi, where video file is hosted on a
server and you just pull it using your Directshow Application - This surely
works.

Any help on how to render this type of streaming link ?

-shanks
Post by Iain
Post by shanks
Hi,
I want to render a streaming video using Directshow. The feature I want is
same as the one provided by Windows Media Player's Open Url option (Under the
File Menu), which works with with both http:\\ and mms:\\ protocols.
I have already developed a player that plays videos present on the local disk.
Can somebody give me a lead on this ? Some samples would be of real help.
Thanks
Shashank
I think this question was addressed recently - a google should help. I
think it was Alessandro who answered.
Iain
--
Iain Downs (DirectShow MVP)
Software Product Consultant
www.idcl.co.uk
Iain
2005-05-13 13:49:51 UTC
Permalink
Post by shanks
Hi,
That does work. But may be I did not make myself clear enough.
What I am trying to say is, I set up a broadcast session with Windows Media
9 Encoder to get a Url (something like http://15.106.208.31:3321). When I put
up this Url in Windows Media player - Open URL option, I am able to view the
streaming (broadcasted) video.
But this option does not work with Directshow RenderFile.
The solution Alexander gave is for a link like
http://example.microsoft.com/example.avi, where video file is hosted on a
server and you just pull it using your Directshow Application - This surely
works.
I don't think this is what I was talking about (and Alessandro is NOT
Alexander!).

If you are using windows media you may be able to do this by getting the
IWMReaderAdvanced interface on the reader object and then specifiying a
network source (I think this has been covered).

I *think* that one or the other of hte WM Reader filters may do this just
by setting the file, but I could be wrong on this.

YOu may also want to check out GEraint's ASF Parser filter (www.gdcl.co.uk)
which may either do this natively or which can be easily tweaked to do so.


Iain
--
Iain Downs (DirectShow MVP)
Software Product Consultant
www.idcl.co.uk
Alessandro Angeli [MVP::DigitalMedia]
2005-05-13 14:16:57 UTC
Permalink
Post by Iain
Post by shanks
What I am trying to say is, I set up a broadcast session
with Windows Media 9 Encoder to get a Url (something
like http://15.106.208.31:3321). When I put up this Url
in Windows Media player - Open URL option, I am able to
view the streaming (broadcasted) video.
But this option does not work with Directshow RenderFile.
The solution Alexander gave is for a link like
http://example.microsoft.com/example.avi, where video
file is hosted on a server and you just pull it using
your Directshow Application - This surely works.
I don't think this is what I was talking about (and
Alessandro is NOT Alexander!).
Thanks :-)
Post by Iain
If you are using windows media you may be able to do this
by getting the IWMReaderAdvanced interface on the reader
object and then specifiying a network source (I think
this has been covered).
I *think* that one or the other of hte WM Reader filters
may do this just by setting the file, but I could be
wrong on this.
YOu may also want to check out GEraint's ASF Parser
filter (www.gdcl.co.uk) which may either do this natively
or which can be easily tweaked to do so.
There is no need for Geraint's parser or to use the
IWMAdvancedReader. Both WM source filters can open HTTP (the
MMS flavor), MMS, MMST, MMSU, MSBD and RTSP (this one, only
the newer filter) URLs just fine when asked by invoking the
usual IFileSourceFilter::Load() like
IGraphBuilder::RenderFile() and
IGraphBuilder::AddSourceFilter() do.

But there's a catch with HTTP URLs (and a workaround), which
I think is shanks problem:

http://groups-beta.google.com/group/microsoft.public.win32.programmer.directx.video/browse_thread/thread/70c7530a6d47120e
--
// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net
Loading...