You should pass to rtp_session_recvm_with_ts a timestamp that reflects the current time you are calling that function. In linphone I poll every 10 ms using rtp_session_recvm_with_ts(), with a timestamp=clock_rate*current_time . oRTP takes care of synchronisation between your user supplied timestamp and the actual timestamps in the stream.
Simon Le jeudi 22 février 2007 04:32, Kannaiyan a écrit : > Thanks Simon. > > But How will I use the function rtp_session_recv_with_ts. > I need to give the exact timestamp right? if I give a differnent one + or > -. It may be ending up in 0 packets right. > > How will I pass the timestamp value to the receiving function? > > Regards, > Kannaiyan > > > ----- Original Message ----- > From: "Simon Morlat" <[EMAIL PROTECTED]> > To: "Kannaiyan" <[EMAIL PROTECTED]> > Cc: <[email protected]> > Sent: Saturday, February 17, 2007 6:19 PM > Subject: Re: [Linphone-users] lipsync by ortp for video and audio > > > Video timestamps should reflect the sampling instant of the picture. > There is no requirement that they increment with a fixed amount of units. > Read RFC2429(h263) or RFC3016 (Mpeg4). > > Simon > > Le mercredi 14 février 2007 01:49, Kannaiyan a écrit : > > Thanks. > > There is a problem with the video. The timestamp for vide varies for the > > incoming packet, It is not same like the audio incrementing by certain > > milliseconds. How did you sort this problem? > > > > /kans > > > > ----- Original Message ----- > > From: "Simon Morlat" <[EMAIL PROTECTED]> > > To: <[email protected]>; "Kannaiyan" <[EMAIL PROTECTED]> > > Sent: Tuesday, February 13, 2007 8:54 PM > > Subject: Re: [Linphone-users] lipsync by ortp for video and audio > > > > > > Hi, > > > > I know the lipsync mechanism but unfortunately it is not implemented in > > oRTP or mediastreamer2. > > Actually linphone sends audio and video synchronised, so expects to > > receive > > them synchronised too. > > > > Simon > > > > Le mercredi 7 février 2007 02:41, Kannaiyan a écrit : > > > Hi, > > > > > > Is there is any mechanism to lipsync for audio and video witn ortp? > > > lipsync is a mechanism in the rtp layer to supply the same rtp > > > synchronised > > > for audio and video. > > > > > > So you won't see what one talked before. > > > > > > Thanks. > > > > > > Regards, > > > Kannaiyan > > > > > > > > > > > > > > > _______________________________________________ > > > Linphone-users mailing list > > > [email protected] > > > http://lists.nongnu.org/mailman/listinfo/linphone-users _______________________________________________ Linphone-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/linphone-users
