[Live-devel] Initial rtptime calculation

Igor Slewsarev slewsarev at gmail.com
Tue Jun 9 08:51:42 PDT 2009


Hi all!

I'm new to this forum so please excuse me if I post my question in a 
wrong form.
I'm currently working on DirectShow filter for an IP-camera, which  
doesn't  properly fills in its SDP description.
It's funny but it forgets to add 'rtptime=' parameter in a "RTP-info" 
line, while 'seq=' parameter is present.
And I need this information to properly calculate NPT. Unluckily, 
function RTSPClient::playMediaSession doesn't
initialize its local variable 'timestamp' at line 1127 .  Since 'seq=' 
parameter is present, parseRTPInfoHeader() returns true;
rtpInfo.timestamp is filled in with an arbitrary value and function 
MediaSubsession::getNormalPlayTime returns garbage.
So I have to fix parseRTPInfoHeader() function code to be sure I have a 
valid rtp time. But I  still thinking on workaround
for this issue:  maybe there is a way to calculate intitial rtp time 
taking valid seqNum parameter. 
I'll be appreciated for any help

Igor



 


More information about the live-devel mailing list