[Live-devel] RTP packet rate smoothing?
Marian Durkovic
md at bts.sk
Fri Jan 20 10:50:07 PST 2006
Hi,
On Thu, Jan 19, 2006 at 12:34:47PM -0800, Ross Finlayson wrote:
>
> >Any suggestions on to spread out the packets that make up a given
> >frame so they are uniformly distributed over the frame time
> >(durationInMicroSeconds).
>
> A better (or at least easier) solution would be to ensure that
> there's at least a minimum delay between successive outgoing packets,
> so as to not exceed the overall bit rate of the network.
I'd say this should be done automatically in LIVE555 libraries by computing
the inter-packet gap from the amount of data to sent in the current frame
and inter-frame interval. Throwing the full frames onto the network will
cause serious problems in all locations where the network bandwidth
decreases and as such is generally unusable. Introducing a fixed minimum
delay between successive packets is no good solution either, since every
stream has different bandwidth requirements so there's no one size fits all.
With kind regards,
M.
>
> I.e., add the following statement just before the call to
> "scheduleDelayedTask()" in "MultiFramedRTPSink.cpp":
> if (uSecondsToGo < minInterPacketGap) uSecondsToGo =
> minInterPacketGap;
>
> Where "minInterPacketGap" is defined as:
> minInterPacketGap = (8*1500*1000000)/B
> where B is the network bit rate (in bits per second).
>
> E.g., for a 1 Mbps network, "minInterPacketGap" would be 8*1500 =
> 12000 microseconds.
>
>
> Ross Finlayson
> Live Networks, Inc. (LIVE555.COM)
> <http://www.live555.com/>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
--------------------------------------------------------------------------
---- ----
---- Marian Durkovic network manager ----
---- ----
---- Slovak Technical University Tel: +421 2 524 51 301 ----
---- Computer Centre, Nam. Slobody 17 Fax: +421 2 524 94 351 ----
---- 812 43 Bratislava, Slovak Republic E-mail/sip: md at bts.sk ----
---- ----
--------------------------------------------------------------------------
More information about the live-devel
mailing list