ccrtp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ccrtp-devel] Can not transfer the video stream fastly!


From: Seven Pham
Subject: Re: [Ccrtp-devel] Can not transfer the video stream fastly!
Date: Tue, 31 May 2005 08:33:51 +0700

Thank u for your support!The problem is in the timestamp. I fixed it. :-)
On 5/30/05, Federico Montesino Pouzols <address@hidden> wrote:
> 
> I guess the problem is in the timestamp. If you want to send 10
> packets per second, with RTP clock frequency 90khz, and each packet
> encodes 100ms, in principle, you should increase the timestamp by 9000
> for each packet.
> 
> On Sat, May 21, 2005 at 10:26:54AM +0700, Seven Pham wrote:
> > Dear all!
> > I 'm using the ccRTP to transfer the video stream. I set the
> > scheduling timeout 100000 and the expire Timeout is 1000000 in the
> > session send. And in the session receive , their value are 10000 and
> > 1000000. The payload type is DynamicPayloadType(100, 90000). And this
> > is the source code for sending:
> >
> > #define PERIOD 100 //send 10fps
> > #define PACKET_SIZE 176*144*3/2 //YUV frame
> > TimerPort::setTimer(PERIOD);
> > for( int i = 0 ; (count > 0) ; i++ ){
> >
> >                         count = fread(buffer, 1, PACKET_SIZE, videoinput);
> >                         if( count > 0 ){
> >                                 // send an RTP packet, providing timestamp,
> >                                 socket->putData(PACKET_SIZE*i,
> > buffer,PACKET_SIZE);
> >                         }
> >
> >                         // Let's wait for the next cycle
> >                         Thread::sleep(TimerPort::getTimer());
> >                         TimerPort::incTimer(PERIOD);
> >                 }
> > But it can not send the packet as fast as i want to. it only send them
> > approximately one frame per seccond. I checked the run() function in
> > the rtp.h, the value timeout that it gets from the
> > getSchedulingTimeout() function is not smaller 1000. so it can not
> > call dispatchDataPacket() function to send out the packet.I don'n how
> > to fix them, please help me.
> > Thanks!
> >       ---------------Seven Pham------------------
> >
> >
> > _______________________________________________
> > Ccrtp-devel mailing list
> > address@hidden
> > http://lists.gnu.org/mailman/listinfo/ccrtp-devel
> 


-- 
--------------Seven Pham----------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]