[vlc-devel] [PATCH] live555: fix the subtitles issue
finlayson at live555.com
Mon Dec 30 18:32:29 CET 2013
On Dec 30, 2013, at 8:24 AM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> No, you cannot use RTSP unicast UDP behind a NAT. You have modified both the
> client and the server in proprietary ways to achieve NAT traversal. This is
> not RTSP unicast UDP; it is a proprietary protocol that looks like RTSP.
Rémi is correct. There is no reliable, general-purpose way to use standards-compliant RTSP streaming RTP/UDP across a NAT. It's true that there *are* some hacks that you can do to increase your chance of this working, on *some* NATs. For example, the LIVE555 RTSP client code (and thus, VLC's RTSP client) does, indeed, transmit a couple of 'dummy' packets (previously, after the "SETUP" response; but in recent versions, before each "PLAY" request, in case the "PLAY" follows a long "PAUSE" (which was what got Gilles started, before he hijacked this email thread; remember the "Subject:" line). But this is not standards-compliant (i.e., not all clients can be expected to do this), and it's not reliable (e.g., the dummy packets might get lost). But it can help for *some* NATs (e.g., those who don't modify the port numbers, so that the 'outer' port number (to use Rémi's terminology) is the same as the 'inner' port number, even though the IP address changes).
Gilles has also made another hack to *his* server to recognize the port number of these incoming 'dummy' packets, and use this to set the port number for his server's outgoing RTP packets. As both Rémi and I have noted to Gilles, this is non-standard and potentially insecure, and I certainly won't be adding it to the LIVE555 RTSP server implementation, and I assume that VLC won't be adding it to their RTSP server implementation either. But yes, Gilles, has hacked *his* server (just a hobbyist project, from what I can tell) so that it happens to work behind *his* NAT with *some* clients. Congratulations, Gilles, but please stop wasting our time harping on about this. (The VLC developers and I have real work to do :-)
Now, to get back to the original topic of this email thread: The (small) patch that I provided (to the "modules/access/live555.cpp" code) fixes a problem (introduced between versions 2.0.9 and 2.1.0) that had prevented subtitles tracks from working properly. FYI.
Live Networks, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vlc-devel