[vlc-devel] [PATCH 3/3] access/udp: reduce mtu amount on initial packets

Ilkka Ollakka ileoo at videolan.org
Tue Oct 16 10:32:32 CEST 2018

On Mon, Oct 15, 2018 at 10:40:14PM +0200, Francois Cartegnie wrote:
> Le 15/10/2018 à 20:30, Ilkka Ollakka a écrit :
> > In this approach, mtu is setted to high on start, and if received data
> > is less than 1500 and mtu is higher than that, we adjust mtu on future
> > packets to be smaller. In majority of cases in UDP streaming, packet
> > size is usually quite constant, so it should work, even if it's not
> > generic solution to udp packet receiving.
> That can't work on a single packet.
> H264 RTP treaming usually sees packets for PPS, SPS, and the remainder
> of frames being < MTU.

Yes, but that approach is for UDP input not really for RTP. For RTP side, I'm
usually seeing just RTP/TS streams, so can't say anything on separated RTP
streams. And like stated, it doesn't try to be generic solution on all UDP
style receiving, but on UDP access that in majority of cases is UDP/TS.

Ilkka Ollakka

More information about the vlc-devel mailing list