Re: Can not transfer the video stream fastly!
Seven Pham <[email protected]>
| Newsgroups | gmane.comp.gnu.ccrtp.devel |
|---|---|
| Message-ID | <[email protected]> |
Thank u for your support!The problem is in the timestamp. I fixed it. :-) On 5/30/05, Federico Montesino Pouzols <[email protected]> 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 > > [email protected] > > http://lists.gnu.org/mailman/listinfo/ccrtp-devel > -- --------------Seven Pham----------------