[Red5] Re d5 Performance
ddprasad
ddprasad at gmail.com
Mon Nov 16 19:29:40 PST 2009
Hello All,
I have written a function that logs time and packet length everytime a
server receives one. Here is the function:
////////////////////////////////////////////// Listeners
@Override
public void packetReceived(IBroadcastStream stream, IStreamPacket packet)
{
IoBuffer data = packet.getData();
long sv=0, sa=0;
String sLog="";
boolean v, a;
v = packet instanceof VideoData;
a = packet instanceof AudioData;
if ( v==true && a==false) {
sv = System.currentTimeMillis() - startTimeV;
sLog = "VStream," + stream.getPublishedName() + "," + sv + "," +
data.limit();
if (LOGGING==true) thisLogV.info(sLog);
}
else if ( a==true && v==false) {
sa = System.currentTimeMillis() - startTimeA;
Log = "AStream," + stream.getPublishedName() + "," + sa + "," +
data.limit();
if (LOGGING==true) thisLogA.fine(sLog);
}
}
I am receiving two log files that record packet arrival and its time. The
problem is with the Audio Packet. Its size is 65 fixed. No matter how long I
run the system. What can be the reason. I am doing any thing wrong. Is there
any other way?
AUDIO LOG:=
AStream,ddp#PATID,3032,65
AStream,ddp#PATID,3079,65
AStream,ddp#PATID,3125,65
AStream,ddp#PATID,3125,65
AStream,ddp#PATID,3141,65
AStream,ddp#PATID,3188,65
AStream,ddp#PATID,3235,65
VIDEO LOG:=
VStream,ddp#PATID,26000,5903
VStream,ddp#PATID,26219,4117
VStream,ddp#PATID,26329,2776
VStream,ddp#PATID,26547,4276
VStream,ddp#PATID,26735,5094
VStream,ddp#PATID,26860,3452
VStream,ddp#PATID,27079,5243
VStream,ddp#PATID,27188,4719
VStream,ddp#PATID,27407,5753
Thank You in advance!
--
View this message in context: http://old.nabble.com/Red5-Performance-tp26369099p26369099.html
Sent from the Red5 - English mailing list archive at Nabble.com.
More information about the Red5
mailing list