[Live-devel] negative presentation time in "afterGettingFrame" sink callback

Markus Schumann markuss at sonicfoundry.com
Tue Jan 15 08:16:00 PST 2013


Ross,

I downloaded your latest and ran it. The output is below.
I don't see much difference between the versions and I couldn't pin point your change diffing the sources.

Am I missing something?

Thanks
Markus.



Opening connection to 10.0.70.22, port 554...
...remote connection opened
Sending request: DESCRIBE rtsp://10.0.70.22/video1+audio1 RTSP/1.0
CSeq: 2
User-Agent: C:\sofodev\Mediasite\main\Core\Capture\Debug\Test_SfLive555Client.exe (LIVE555 Streaming Media v2012.11.16)
Accept: application/sdp



Received 759 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 2
x-Accept-Dynamic-Rate: 1
Content-Type: application/sdp
Content-Base: rtsp://10.0.70.22:554/video1+audio1
Content-Length: 602


v=0
o=- 1438766090 1357921184 IN IP4 10.0.70.22
s= RTSP server
i=audio video live media server
a=type:broadcast
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
i=Video channel in H264 VBR format
a=mpeg4-esid:201
a=control:trackID=0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=428032;sprop-parameter-sets=Z0KAMtoCgPSVIAAADwAAAwHCDAgAXjgA1AXvfC8IhGo=,aM48gA==
m=audio 0 RTP/AVP 0
i=Audio channel in standard mu-Low (G711) format
a=control:trackID=1
m=application 0 RTP/AVP 107
i=ONVIF metadata
a=control:events
a=sendonly
a=rtpmap:107 vnd.onvif.metadata/90000

[URL:"rtsp://10.0.70.22:554/video1+audio1"]: Got a SDP description:
v=0
o=- 1438766090 1357921184 IN IP4 10.0.70.22
s= RTSP server
i=audio video live media server
a=type:broadcast
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
i=Video channel in H264 VBR format
a=mpeg4-esid:201
a=control:trackID=0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=428032;sprop-parameter-sets=Z0KAMtoCgPSVIAAADwAAAwHCDAgAXjgA1AXvfC8IhGo=,aM48gA==
m=audio 0 RTP/AVP 0
i=Audio channel in standard mu-Low (G711) format
a=control:trackID=1
m=application 0 RTP/AVP 107
i=ONVIF metadata
a=control:events
a=sendonly
a=rtpmap:107 vnd.onvif.metadata/90000

[URL:"rtsp://10.0.70.22:554/video1+audio1"]: Initiated the "video/H264" subsession (client ports 50154-50155)
Sending request: SETUP rtsp://10.0.70.22:554/video1+audio1/trackID=0 RTSP/1.0
CSeq: 3
User-Agent: C:\sofodev\Mediasite\main\Core\Capture\Debug\Test_SfLive555Client.exe (LIVE555 Streaming Media v2012.11.16)
Transport: RTP/AVP;unicast;client_port=50154-50155



Received 138 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 3
Session: 301667356
Transport: RTP/AVP;unicast;server_port=64702-64703;client_port=50154-50155;ssrc=fec56a4b



[URL:"rtsp://10.0.70.22:554/video1+audio1"]: Set up the "video/H264" subsession (client ports 50154-50155)
[URL:"rtsp://10.0.70.22:554/video1+audio1"]: Created a data sink for the "video/H264" subsession
[URL:"rtsp://10.0.70.22:554/video1+audio1"]: Initiated the "audio/PCMU" subsession (client ports 50156-50157)
Sending request: SETUP rtsp://10.0.70.22:554/video1+audio1/trackID=1 RTSP/1.0
CSeq: 4
User-Agent: C:\sofodev\Mediasite\main\Core\Capture\Debug\Test_SfLive555Client.exe (LIVE555 Streaming Media v2012.11.16)
Transport: RTP/AVP;unicast;client_port=50156-50157
Session: 301667356



Received 138 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 4
Session: 301667356
Transport: RTP/AVP;unicast;server_port=64802-64803;client_port=50156-50157;ssrc=74562d4d



[URL:"rtsp://10.0.70.22:554/video1+audio1"]: Set up the "audio/PCMU" subsession (client ports 50156-50157)
[URL:"rtsp://10.0.70.22:554/video1+audio1"]: Created a data sink for the "audio/PCMU" subsession
[URL:"rtsp://10.0.70.22:554/video1+audio1"]: Initiated the "application/VND.ONVIF.METADATA" subsession (client ports 50158-50159)
Sending request: SETUP rtsp://10.0.70.22:554/video1+audio1/events RTSP/1.0
CSeq: 5
User-Agent: C:\sofodev\Mediasite\main\Core\Capture\Debug\Test_SfLive555Client.exe (LIVE555 Streaming Media v2012.11.16)
Transport: RTP/AVP;unicast;client_port=50158-50159
Session: 301667356



Received 138 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 5
Session: 301667356
Transport: RTP/AVP;unicast;server_port=64902-64903;client_port=50158-50159;ssrc=b1dca64c



[URL:"rtsp://10.0.70.22:554/video1+audio1"]: Set up the "application/VND.ONVIF.METADATA" subsession (client ports 50158-50159)
[URL:"rtsp://10.0.70.22:554/video1+audio1"]: Failed to create a data sink for the "application/VND.ONVIF.METADATA" subsession: liveMedia9
Sending request: PLAY rtsp://10.0.70.22:554/video1+audio1 RTSP/1.0
CSeq: 6
User-Agent: C:\sofodev\Mediasite\main\Core\Capture\Debug\Test_SfLive555Client.exe (LIVE555 Streaming Media v2012.11.16)
Session: 301667356
Range: npt=0.000-



Received 252 new bytes of response data.
Received a complete PLAY response:
RTSP/1.0 200 OK
CSeq: 6
Session: 301667356
Range: npt=now-
RTP-Info: url=rtsp://10.0.70.22:554/video1+audio1/trackID=0;seq=35993,url=rtsp://10.0.70.22:554/video1+audio1/trackID=1;seq=62348,url=rtsp://10.0.70.22:554/video1+audio1/events;seq=4808



[URL:"rtsp://10.0.70.22:554/video1+audio1"]: Started playing session...
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 32 bytes.          Presentation time: 1358266133.440908!        NPT: 46765.1
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 4 bytes.            Presentation time: 1358266133.440908!        NPT: 46765.1
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 23811 bytes.   Presentation time: 1358266133.440908!        NPT: 46765.1
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 2070 bytes.     Presentation time: 1358266133.507908!        NPT: 46765.2
Stream "rtsp://10.0.70.22:554/video1+audio1"; audio/PCMU:    Received 1024 bytes.     Presentation time: 1358266133.539475!        NPT: 144595
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 988 bytes.        Presentation time: 1358266133.575908!        NPT: 46765.3
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 628 bytes.        Presentation time: 1358266133.642908!        NPT: 46765.3
Stream "rtsp://10.0.70.22:554/video1+audio1"; audio/PCMU:    Received 1024 bytes.     Presentation time: 1358266133.667475!        NPT: 144595
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 655 bytes.        Presentation time: 1358266133.707908!        NPT: 46765.4
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 650 bytes.        Presentation time: 1358266133.774908!        NPT: 46765.5
Stream "rtsp://10.0.70.22:554/video1+audio1"; audio/PCMU:    Received 1024 bytes.     Presentation time: 1358266133.795475!        NPT: 144595
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 403 bytes.        Presentation time: 1358266133.842908!        NPT: 46765.5
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 418 bytes.        Presentation time: -850744096.878427            NPT: 46765.6
Stream "rtsp://10.0.70.22:554/video1+audio1"; audio/PCMU:    Received 1024 bytes.     Presentation time: -850744096.891680            NPT: 144595
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 396 bytes.        Presentation time: -850744096.944427            NPT: 46765.7
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 281 bytes.        Presentation time: -850744095.011427            NPT: 46765.7
Stream "rtsp://10.0.70.22:554/video1+audio1"; audio/PCMU:    Received 1024 bytes.     Presentation time: -850744095.019680            NPT: 144596
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 260 bytes.        Presentation time: -850744095.078427            NPT: 46765.8
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 238 bytes.        Presentation time: -850744095.144427            NPT: 46765.9
Stream "rtsp://10.0.70.22:554/video1+audio1"; audio/PCMU:    Received 1024 bytes.     Presentation time: -850744095.147680            NPT: 144596
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 299 bytes.        Presentation time: -850744095.210427            NPT: 46765.9
Stream "rtsp://10.0.70.22:554/video1+audio1"; audio/PCMU:    Received 1024 bytes.     Presentation time: -850744095.275680            NPT: 144596
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 253 bytes.        Presentation time: -850744095.277578            NPT: 46766
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 141 bytes.        Presentation time: -850744095.344578            NPT: 46766.1
Stream "rtsp://10.0.70.22:554/video1+audio1"; audio/PCMU:    Received 1024 bytes.     Presentation time: -850744095.403680            NPT: 144596
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 133 bytes.        Presentation time: -850744095.411578            NPT: 46766.1
Stream "rtsp://10.0.70.22:554/video1+audio1"; video/H264:       Received 134 bytes.        Presentation time: -850744095.478578            NPT: 46766.2

From: live-devel-bounces at ns.live555.com [mailto:live-devel-bounces at ns.live555.com] On Behalf Of Ross Finlayson
Sent: Tuesday, January 15, 2013 7:39 AM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] negative presentation time in "afterGettingFrame" sink callback

Received a complete PLAY response:
RTSP/1.0 200 OK
CSeq: 6
Session: 872219556
Range: npt=now-
RTP-Info: url=rtsp://10.0.70.22:554/video1+audio1/trackID=0;seq=35711,url=rtsp://10.0.70.22:554/video1+audio1/trackID=1;seq=62268,url=rtsp://10.0.70.22:554/video1+audio1/events;seq=4796<rtsp://10.0.70.22:554/video1+audio1/trackID=0;seq=35711,url=rtsp:/10.0.70.22:554/video1+audio1/trackID=1;seq=62268,url=rtsp:/10.0.70.22:554/video1+audio1/events;seq=4796>

FYI, it turned out that this "RTP-Info:" header - although legal - wasn't useful to us, because it didn't specify *both* the "seq" and "rtptime" parameters.  Our RTSP client code was getting confused by this, which explains why the "NPT" values were turning out strange.

I've just installed a new version of the code that ignores "RTP-Info:" headers - like this - that don't specify *both* the "seq" and "rtptime" parameters.

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20130115/5f24c214/attachment-0001.html>


More information about the live-devel mailing list