Re: Missing links in RTP streaming solution
- From: "Alessandro Angeli" <nobody@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 21 Nov 2007 06:15:24 -0500
From: "Ralf Globisch"
[...]
So my first question is: How would I set the output media
type of the RTPSource dynamically? Let's say I didn't
know before hand if I was going to retrieve 352x288 or
320x240?
Since graphs A and B are now disconnected, the only way I
would be able to set the media type of the RTPSource
would be to store data about the media type such as the
VIDEOINFOHEADER in the RTP packet itself or as part of
the payload and once the first packet has been received I
could retrieve this data and set the type of the Source
Filter.
But this needs to be connected to the rest of the
pipeline before receiving the first packet so what am I
missing?
RTP is only a transport protocol and you need an out-of-band
signalling protocol, e.g. RTSP or a custom one, to negotiate
whatever needs negotiating beforehand, that is to establish
a "session". Usually, session establishment takes place
inside the source filter's IFileSourceFile::Load() method
(or upon connection of the input pins for other filters). If
you do not implement IFileSourceFilter, you can move the
negotiation to IBaseFilter::JoinFilterGraph() instead or to
IPin::Connect() (the latter is safer and you should
establish the session right at the beginning of the method,
before the actual connection process starts).
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
.
- Follow-Ups:
- Re: Missing links in RTP streaming solution
- From: Ralf Globisch
- Re: Missing links in RTP streaming solution
- References:
- Missing links in RTP streaming solution
- From: Ralf Globisch
- Missing links in RTP streaming solution
- Prev by Date: Re: Missing links in RTP streaming solution
- Next by Date: Re: About Async Source Filter Sample Code
- Previous by thread: Re: Missing links in RTP streaming solution
- Next by thread: Re: Missing links in RTP streaming solution
- Index(es):
Relevant Pages
|