[Live-devel] Problem with openRTSP and -t option

Norbert Donath Norbert.Donath at sigos.de
Mon Oct 17 19:01:59 PDT 2005


Hi,

I have a problem when using openRTSP with the -t, -E and -e
parameters. In this case openRTSP doesn't recognize the end of a
stream and says that a stream cut off was detected if -e specifies a
maximum duration that is longer as the stream duration (tested with a
Darwin server):

sigoslx114:/tmp/live/testProgs>./openRTSP -Q -V -E 15 -e 80 -t rtsp://localhost/sample_100kbit.mp4
Sending request: OPTIONS rtsp://localhost/sample_100kbit.mp4 RTSP/1.0
CSeq: 1
User-Agent: ./openRTSP (LIVE555 Streaming Media v2005.10.05)


Received OPTIONS response: RTSP/1.0 200 OK
Server: DSS/4.1.3 (Build/412.45; Platform/Linux)
Cseq: 1
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, ANNOUNCE, SET_PARAMETER, RECORD


Sending request: DESCRIBE rtsp://localhost/sample_100kbit.mp4 RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: ./openRTSP (LIVE555 Streaming Media v2005.10.05)


Received DESCRIBE response: RTSP/1.0 200 OK
Server: DSS/4.1.3 (Build/412.45; Platform/Linux)
Cseq: 2
Last-Modified: Fri, 01 Aug 2003 13:45:19 GMT
Cache-Control: must-revalidate
Content-length: 1051
Date: Mon, 17 Oct 2005 15:44:08 GMT
Expires: Mon, 17 Oct 2005 15:44:08 GMT
Content-Type: application/sdp
x-Accept-Retransmit: our-retransmit
x-Accept-Dynamic-Rate: 1
Content-Base: rtsp://localhost/sample_100kbit.mp4/


Need to read 1051 extra bytes
Read 1051 extra bytes: v=0
o=StreamingServer 3338552648 1059745519000 IN IP4 127.0.0.1
s=/sample_100kbit.mp4
u=http:///
e=admin@
c=IN IP4 0.0.0.0
b=AS:93
t=0 0
a=control:*
a=mpeg4-iod:"data:application/mpeg4-iod;base64,AoF/AE8BAQEBAQOBEgABQHRkYXRhOmFwcGxpY2F0aW9uL21wZWc0LW9kLWF1O2Jhc2U2NCxBVGdCR3dVZkF4Y0F5U1FBWlFRTklCRUFGM0FBQVBvQUFBRERVQVlCQkFFWkFwOERGUUJsQlFRTlFCVUFCOUFBQUQ2QUFBQStnQVlCQXc9PQQNAQUAAMgAAAAAAAAAAAYJAQAAAAAAAAAAA2EAAkA+ZGF0YTphcHBsaWNhdGlvbi9tcGVnNC1iaWZzLWF1O2Jhc2U2NCx3QkFTZ1RBcUJYSmhCSWhRUlFVL0FBPT0EEgINAAAUAAAAAAAAAAAFAwAAQAYJAQAAAAAAAAAA"
a=isma-compliance:1,1.0,1
a=range:npt=0-  66.47000
m=video 0 RTP/AVP 96
b=AS:65
a=rtpmap:96 MP4V-ES/90000
a=control:trackID=3
a=cliprect:0,0,240,192
a=fmtp:96 profile-level-id=1;config=000001B0F3000001B50EE040C0CF000001000000012000845D4C283020F0A21F
a=mpeg4-esid:201
m=audio 0 RTP/AVP 97
b=AS:28
a=rtpmap:97 mpeg4-generic/11025/2
a=control:trackID=4
a=fmtp:97 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=15000444000020006000
a=mpeg4-esid:101

Opened URL "rtsp://localhost/sample_100kbit.mp4", returning a SDP description:
v=0
o=StreamingServer 3338552648 1059745519000 IN IP4 127.0.0.1
s=/sample_100kbit.mp4
u=http:///
e=admin@
c=IN IP4 0.0.0.0
b=AS:93
t=0 0
a=control:*
a=mpeg4-iod:"data:application/mpeg4-iod;base64,AoF/AE8BAQEBAQOBEgABQHRkYXRhOmFwcGxpY2F0aW9uL21wZWc0LW9kLWF1O2Jhc2U2NCxBVGdCR3dVZkF4Y0F5U1FBWlFRTklCRUFGM0FBQVBvQUFBRERVQVlCQkFFWkFwOERGUUJsQlFRTlFCVUFCOUFBQUQ2QUFBQStnQVlCQXc9PQQNAQUAAMgAAAAAAAAAAAYJAQAAAAAAAAAAA2EAAkA+ZGF0YTphcHBsaWNhdGlvbi9tcGVnNC1iaWZzLWF1O2Jhc2U2NCx3QkFTZ1RBcUJYSmhCSWhRUlFVL0FBPT0EEgINAAAUAAAAAAAAAAAFAwAAQAYJAQAAAAAAAAAA"
a=isma-compliance:1,1.0,1
a=range:npt=0-  66.47000
m=video 0 RTP/AVP 96
b=AS:65
a=rtpmap:96 MP4V-ES/90000
a=control:trackID=3
a=cliprect:0,0,240,192
a=fmtp:96 profile-level-id=1;config=000001B0F3000001B50EE040C0CF000001000000012000845D4C283020F0A21F
a=mpeg4-esid:201
m=audio 0 RTP/AVP 97
b=AS:28
a=rtpmap:97 mpeg4-generic/11025/2
a=control:trackID=4
a=fmtp:97 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=15000444000020006000
a=mpeg4-esid:101

Created receiver for "video/MP4V-ES" subsession (client ports 32948-32949)
Created receiver for "audio/MPEG4-GENERIC" subsession (client ports 32950-32951)
Sending request: SETUP rtsp://localhost/sample_100kbit.mp4/trackID=3 RTSP/1.0
CSeq: 3
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
User-Agent: ./openRTSP (LIVE555 Streaming Media v2005.10.05)


Received SETUP response: RTSP/1.0 200 OK
Server: DSS/4.1.3 (Build/412.45; Platform/Linux)
Cseq: 3
Last-Modified: Fri, 01 Aug 2003 13:45:19 GMT
Cache-Control: must-revalidate
Session: 4930033336911678475
Date: Mon, 17 Oct 2005 15:44:08 GMT
Expires: Mon, 17 Oct 2005 15:44:08 GMT
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;ssrc=7AC6E0B8


Setup "video/MP4V-ES" subsession (client ports 32948-32949)
Sending request: SETUP rtsp://localhost/sample_100kbit.mp4/trackID=4 RTSP/1.0
CSeq: 4
Transport: RTP/AVP/TCP;unicast;interleaved=2-3
Session: 4930033336911678475
User-Agent: ./openRTSP (LIVE555 Streaming Media v2005.10.05)


Received SETUP response: RTSP/1.0 200 OK
Server: DSS/4.1.3 (Build/412.45; Platform/Linux)
Cseq: 4
Session: 4930033336911678475
Last-Modified: Fri, 01 Aug 2003 13:45:19 GMT
Cache-Control: must-revalidate
Date: Mon, 17 Oct 2005 15:44:08 GMT
Expires: Mon, 17 Oct 2005 15:44:08 GMT
Transport: RTP/AVP/TCP;unicast;interleaved=2-3;ssrc=7D693A04


Setup "audio/MPEG4-GENERIC" subsession (client ports 32950-32951)
Created output file: "video-MP4V-ES-1"
Created output file: "audio-MPEG4-GENERIC-2"
Sending request: PLAY rtsp://localhost/sample_100kbit.mp4 RTSP/1.0
CSeq: 5
Session: 4930033336911678475
Range: npt=0.000-
User-Agent: ./openRTSP (LIVE555 Streaming Media v2005.10.05)


Received PLAY response: RTSP/1.0 200 OK
Server: DSS/4.1.3 (Build/412.45; Platform/Linux)
Cseq: 5
Session: 4930033336911678475
RTP-Info: url=trackID=3;seq=24739;rtptime=271378246,url=trackID=4;seq=26672;rtptime=2009026086


Started playing session
Receiving streamed data (for up to 80.000000 seconds)...
Closing session, because we stopped receiving packets.
begin_QOS_statistics
server_availability	100
stream_availability	100
subsession	video/MP4V-ES
num_packets_received	1086
num_packets_lost	0
elapsed_measurement_time	60.001375
kBytes_received_total	541.180000
measurement_sampling_interval_ms	1000
kbits_per_second_min	0.000000
kbits_per_second_ave	72.155680
kbits_per_second_max	334.688507
packet_loss_percentage_min	0.000000
packet_loss_percentage_ave	0.000000
packet_loss_percentage_max	0.000000
inter_packet_gap_ms_min	0.016000
inter_packet_gap_ms_ave	38.162692
inter_packet_gap_ms_max	297.837000
subsession	audio/MPEG4-GENERIC
num_packets_received	715
num_packets_lost	0
elapsed_measurement_time	60.001375
kBytes_received_total	235.049000
measurement_sampling_interval_ms	1000
kbits_per_second_min	0.000000
kbits_per_second_ave	31.339148
kbits_per_second_max	63.907207
packet_loss_percentage_min	0.000000
packet_loss_percentage_ave	0.000000
packet_loss_percentage_max	0.000000
inter_packet_gap_ms_min	0.044000
inter_packet_gap_ms_ave	57.873197
inter_packet_gap_ms_max	297.819000
end_QOS_statistics
Sending request: TEARDOWN rtsp://localhost/sample_100kbit.mp4 RTSP/1.0
CSeq: 6
Session: 4930033336911678475
User-Agent: ./openRTSP (LIVE555 Streaming Media v2005.10.05)



If -e specifies a max duration that is shorter than the stream it
doesn't detect a cut off. Without -t it will also work without a
problem.

Is is possible to detect the end of the stream in this case without
complaining about a cut off?


Best Regards,
Norbert Donath


-- 
SIGOS Systemintegration GmbH
 - TESTING IS OUR COMPETENCE - 
Fon +49 911 95168-0
www.sigos.de



More information about the live-devel mailing list