Re: Missing links in RTP streaming solution

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: NON NAT HIGH SPEED MODEM ROUTERS
    ... from the PC or that the router had failed to negotiate a connection ... The router dropped the line from the isp. ... So it got showtime but failed to negotiate a PPP session? ...
    (uk.telecom.broadband)
  • RE: question regarding SAM file / l0phtcrack / pwdump2
    ... user list through a NULL session, the list contained about 30 userids, ... So then I proceeded to retrieve the SAM file using PWDUMP3 as I ...
    (Focus-Microsoft)
  • Re: Problem with asp.net app only allowing 1 user at a time
    ... from the client to the server), Application (an object that can store ... Now in your case you are reading and writing everything to the database, ... there is the Session object. ... To retrieve this you would do something like: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Compact Framework and Phone API Questions. Help!
    ... opennetcf working. ... connection and send that information and stuff as i spend more time ... i can't retrieve the imei. ... my phone,, it returns the same fake imei. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: How to Use SSL only for Login.aspx page
    ... I would suggest passing the session to a hidden textbox and then retrieve ... This way no one can see the session value. ... this button will then redirect then to the unsecure page. ...
    (microsoft.public.dotnet.framework.aspnet)