Re: Cannot increase the sending rate

Federico Montesino Pouzols <[email protected]>
Newsgroups gmane.comp.gnu.ccrtp.devel
Message-ID <20060525112029.GC14298@paraguas>
Hi, 

On Wed, May 24, 2006 at 04:10:04PM +0200, neeryl_ka wrote:
> I've oberved this phenomenon using the rtphello
> example. 
> With the values given, the packets of "Hello, brave
> gnu world (#i)" are send at a rate of 1 packet per
> second.
> I changed the gap between timestamp from :
> timestamp += socket->getCurrentRTPClockRate()
> to 
> timestamp += socket->getCurrentRTPClockRate()/100
> and the sleep line from
> TimerPort::incTimer(1000);
> to 
> TimerPort::incTimer(10);
> 
> I successfully obtained a rate of a hundred packets
> per second.
> But I cannot get more than 100 packets/second by
> changing these values again...
> I don't understand where I am wrong...
> 

Umm, I see, you are using Thread::sleep? If so, the limited resolution
that sleep usually provides is probably the issue. I would not rely on
any sleep-like syscall if you require high frecuencies.

And...

> getFirstTimestamp) are all differents. I believed that
> the timestamps that could be the same would be video
> timestamp, not timestamps used with RTP.
> 

You're right, sorry for the mix-up.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.