linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] oRTP: receiving packets with unknown TS delta?


From: Simon Morlat
Subject: Re: [Linphone-developers] oRTP: receiving packets with unknown TS delta?
Date: Thu, 24 Aug 2006 14:18:28 +0200
User-agent: KMail/1.9.3

Le mardi 22 août 2006 16:41, Nicholas J Humfrey a écrit :
> What value for TS should I pass to rtp_session_recvm_with_ts()? Would
> passing 0 work? or do I have to work it out based on the payload type
> of the first packet? My problem is that I don't know the rate that I
> should be reading packets in. I just know that I want a packet
> whenever one is received.

Ok.
I think for that you'll need to hack oRTP to bypass the jitter buffer.
I suggest first that you create a RtpSession as you do normally.
Modify the rtp_session_rtp_recv() function defined in rtpsession_inet.c: 
instead of calling rtp_session_rtp_parse(), make it just return the mblk_t 
(the rtp packet).
Call that function at regular interval to get all packets enqueued on the 
socket.
The user_ts argument does not matter: it is just used for jitter calculation 
within rtp_session_rtp_parse().
Simon

>
> Thanks,
>
> nick.
>
> On 21 Aug 2006, at 13:28, Simon Morlat wrote:
> > oRTP does not need to know about the delta between packet
> > timestamp. The only
> > prequesite is to have a PayloadType that defines a clock_rate.
> > Then you can use rtp_session_recvm_with_ts() and dump out packets.
> > Simon
> >
> > Le mardi 15 août 2006 18:51, Nicholas J Humfrey a écrit :
> >> Hi,
> >>
> >> Is is possible to use oRTP to receive an RTP stream, when the delta
> >> between packet's time-stamps is unknown? I want to write a Payload
> >> Type agnostic recording tool, which just records packets to disk/
> >> stdout.
> >>
> >> I guess I am just looking for a rtp_session_recvm() type function,
> >> which just returns the first available RTP packet. Would be nice to
> >> be able to use the oRTP networking code, rather than write my own
> >> routines to do it.
> >>
> >>
> >> nick.
> >>
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> Linphone-developers mailing list
> >> address@hidden
> >> http://lists.nongnu.org/mailman/listinfo/linphone-developers
>
> _______________________________________________
> Linphone-developers mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-developers




reply via email to

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