Real Time Communication Application

73 views
Skip to first unread message

Tom Alter

unread,
May 26, 2012, 3:03:11 PM5/26/12
to c-rtmp...@googlegroups.com
Hi All,

I have been developing Video Whispering application using rtmpd server where two flash client will communicate with each other using RTMP Protocol. I am done with the application development. While testing the application what i found that latency of media (audio and video) is getting increased with time. On start all the communication happens on real time with latency less than one second. But with time it is getting increased means latency reached to 5 to 10 seconds.

Can any one share what would be the cause of latency Network Bandwidth or RTMPD server itself?

If latency is coming due to network (due to re-transmission of packets) then how we can solve this?

Any help would be greatly appreciated.

Thanks
TL

C++ RTMP Server

unread,
May 27, 2012, 8:05:18 AM5/27/12
to c-rtmp...@googlegroups.com
Hi,

First, congratulations of your achievement! It is really something!

crtmpserver has absolutely nothing to do with the latency because it passes the packet through right away. And when the network becomes crowded for a particular client, the data will start accumulate on its output buffer. So, yeah, it does a bit of buffering, but of completely different nature. Besides, when that happens you will definitely see garbage on the screen because frames are no longer transmitted.

What I found out from my past experience is that I'm seeing the exact same behavior when you set bufferTime != 0 in the flash client side. Try to set it to 0 and you will be just fine. Besides, VW is about live conferencing and client side bufferTime != 0 doesn't make any sense.

IMO, NetStream.bufferTime has the following special values:

0 - buffering completely disabled, best results for live streams,
< 1 - buffering enabled, but flash player completely ignores this value and does its own management. Is more like telling FP to size its buffer the way it wants
>=1 - buffering enabled, FP tries to respect this value as much as possible. However, it does a crappy job and in the end it will still drift away...

Best regards
Andrei
> You received this message because you are subscribed to "C++ RTMP Server" mailing list.
> To post to this group, send email to c-rtmp...@googlegroups.com
> To unsubscribe from this group, send email to
> c-rtmp-serve...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/c-rtmp-server?hl=en

------
C++ RTMP Server
Web: http://www.rtmpd.com




Reply all
Reply to author
Forward
0 new messages