[FFmpeg-devel] [PATCH] Send NAT punching packets when starting to read an RTP/UDP stream

Martin Storsjö martin
Wed Feb 17 00:08:58 CET 2010


Hi,

On Tue, 16 Feb 2010, Ronald S. Bultje wrote:

> On Tue, Feb 16, 2010 at 5:22 PM, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> >
> > Oh, I noticed this doesn't work with WMS because of the
> > braindead-retarded way in which WMS servers set up RTP (see
> > surrounding code in make_setup_request()), you need:

Ah, fantastic weirdness there. ;P

> > + ? ? ? ? ? ?/* Try to initialize the connection state in a
> > + ? ? ? ? ? ? * potential NAT router by sending dummy packets.
> > + ? ? ? ? ? ? * RTP/RTCP dummy packets are used for RDT, too.
> > + ? ? ? ? ? ? */
> > + ? ? ? ? ? ?if (!(rt->server_type == RTSP_SERVER_WMS && i > 1))
> > + ? ? ? ? ? ? ? ?rtp_send_punch_packets(rtsp_st->rtp_handle);
> 
> Applied with this modification.

Wonderful, thanks!

// Martin



More information about the ffmpeg-devel mailing list