GNOME Bugzilla – Bug 552650
[rtspsrc] (partially) fails SETUP with MS RTSP servers
Last modified: 2009-02-23 21:53:14 UTC
According to MS RTSP specs (see also http://msdn.microsoft.com/en-us/library/cc245238.aspx), the UDP port pair used in subsequent SETUP requests for various streams must be identical (since there will actually be only 1 stream of muxed asf packets). rtspsrc follows traditional specs and will use different port pairs in the SETUPs (if UDP was negotiated). The typical result is that only the first stream (e.g. audio) will be selected/streamed. Note that this does not apply or occur if interleaved TCP happens to be chosen.
Created attachment 118883 [details] [review] Possible patch * If an UDP SETUP fails (and under sufficient conditions), retry the SETUP using previously (first) used UDP port pair.
Created attachment 128392 [details] [review] Updated patch As before, but updated to latest HEAD/master.
ping? :)
commit 21cb00aa9c290010c7da7afc04388348914e7c07 Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> Date: Mon Jan 26 11:06:13 2009 +0100 rtspsrc: perform UDP SETUP according to MS RTSP spec MS RTSP spec states that the UDP port pair used in subsequent SETUP requests for various streams must be identical (since there will actually be only 1 stream of muxed asf packets). Following traditional specs and using different port pairs in the SETUPs for separate streams will result in all but the first one failing and only one stream being streamed. So, in appropriate circumstances, retry UDP SETUP using previously used port pair. Fixes #552650.