<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">03.04.2014 20:02, Ross Finlayson пишет:<br>
</div>
<blockquote
cite="mid:13ABBA01-E987-4E8E-840A-E8CEE8B2D191@live555.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div>
<blockquote type="cite">Hi, Ross. I'm using VLC for creating
rtsp stream. The problem is that the built testRTSPClient app
starts playing the stream, but about every 40 seconds, the
client loses its connection and calls subsessionByeHandler
function.<br>
</blockquote>
</div>
<br>
<div>If the client is calling "subsessionByeHandler", it must be
because the server has sent a RTCP "BYE" packet, indicating that
its input stream has ended.</div>
<div><br>
</div>
<div>To verify this, please run "openRTSP" as your client, and
send us the diagnostic output (i.e., from stderr).</div>
<br>
<br>
<div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: Helvetica; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-align: -webkit-auto; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; "><span class="Apple-style-span" style="border-collapse:
separate; color: rgb(0, 0, 0); font-family: Helvetica;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; ">Ross Finlayson<br>
Live Networks, Inc.<br>
<a moz-do-not-send="true" href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
live-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a>
<a class="moz-txt-link-freetext" href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel</a>
</pre>
</blockquote>
Ross, it's log from "openRTSP" app. In SETUP response timeout = 60
seconds and RTCP "BYE" packet received after 60 seconds. If VLC sent
a RTCP "BYE" packet, why VLC is playing its own stream without
teardown?<br>
<br>
Opening connection to 192.168.33.77, port 8554...<br>
...remote connection opened<br>
Sending request: OPTIONS rtsp://192.168.33.77:8554/media0 RTSP/1.0<br>
CSeq: 2<br>
User-Agent: C:\dev\Live555Viewer\Release\Live555Viewer.exe (LIVE555
Streaming Me<br>
dia v2014.03.25)<br>
<br>
<br>
Received 124 new bytes of response data.<br>
Received a complete OPTIONS response:<br>
RTSP/1.0 200 OK<br>
Server: VLC/2.1.3<br>
Content-Length: 0<br>
Cseq: 2<br>
Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE,GET_PARAMETER<br>
<br>
<br>
Sending request: DESCRIBE rtsp://192.168.33.77:8554/media0 RTSP/1.0<br>
CSeq: 3<br>
User-Agent: C:\dev\Live555Viewer\Release\Live555Viewer.exe (LIVE555
Streaming Me<br>
dia v2014.03.25)<br>
Accept: application/sdp<br>
<br>
<br>
Received 662 new bytes of response data.<br>
Received a complete DESCRIBE response:<br>
RTSP/1.0 200 OK<br>
Server: VLC/2.1.3<br>
Date: Fri, 04 Apr 2014 03:26:41 GMT<br>
Content-Type: application/sdp<br>
Content-Base: rtsp://192.168.33.77:8554/media0<br>
Content-Length: 453<br>
Cache-Control: no-cache<br>
Cseq: 3<br>
<br>
v=0<br>
o=- 15485808675063797458 15485808675063797458 IN IP4 Jocker-PC<br>
s=Unnamed<br>
i=N/A<br>
c=IN IP4 0.0.0.0<br>
t=0 0<br>
a=tool:vlc 2.1.3<br>
a=recvonly<br>
a=type:broadcast<br>
a=charset:UTF-8<br>
a=control:rtsp://192.168.33.77:8554/media0<br>
m=video 0 RTP/AVP 96<br>
b=RR:0<br>
a=rtpmap:96 H264/90000<br>
a=fmtp:96
packetization-mode=1;profile-level-id=640028;sprop-parameter-sets=Z2QA<br>
KKzZQHgCJ+XARAAAAwAEAAADAMo8YMZY,aOvjyyLA;<br>
a=control:rtsp://192.168.33.77:8554/media0/trackID=2<br>
<br>
Opened URL "rtsp://192.168.33.77:8554/media0", returning a SDP
description:<br>
v=0<br>
o=- 15485808675063797458 15485808675063797458 IN IP4 Jocker-PC<br>
s=Unnamed<br>
i=N/A<br>
c=IN IP4 0.0.0.0<br>
t=0 0<br>
a=tool:vlc 2.1.3<br>
a=recvonly<br>
a=type:broadcast<br>
a=charset:UTF-8<br>
a=control:rtsp://192.168.33.77:8554/media0<br>
m=video 0 RTP/AVP 96<br>
b=RR:0<br>
a=rtpmap:96 H264/90000<br>
a=fmtp:96
packetization-mode=1;profile-level-id=640028;sprop-parameter-sets=Z2QA<br>
KKzZQHgCJ+XARAAAAwAEAAADAMo8YMZY,aOvjyyLA;<br>
a=control:rtsp://192.168.33.77:8554/media0/trackID=2<br>
<br>
Created receiver for "video/H264" subsession (client ports
64166-64167)<br>
Sending request: SETUP rtsp://192.168.33.77:8554/media0/trackID=2
RTSP/1.0<br>
CSeq: 4<br>
User-Agent: C:\dev\Live555Viewer\Release\Live555Viewer.exe (LIVE555
Streaming Me<br>
dia v2014.03.25)<br>
Transport: RTP/AVP;unicast;client_port=64166-64167<br>
<br>
<br>
Received 270 new bytes of response data.<br>
Received a complete SETUP response:<br>
RTSP/1.0 200 OK<br>
Server: VLC/2.1.3<br>
Date: Fri, 04 Apr 2014 03:26:41 GMT<br>
Transport:
RTP/AVP/UDP;unicast;client_port=64166-64167;server_port=64168-64169;s<br>
src=4D36B604;mode=play<br>
Session: 766278e0bcac1ed7;timeout=60<br>
Content-Length: 0<br>
Cache-Control: no-cache<br>
Cseq: 4<br>
<br>
<br>
Setup "video/H264" subsession (client ports 64166-64167)<br>
Created output file: "video-H264-1"<br>
Sending request: PLAY rtsp://192.168.33.77:8554/media0 RTSP/1.0<br>
CSeq: 5<br>
User-Agent: C:\dev\Live555Viewer\Release\Live555Viewer.exe (LIVE555
Streaming Me<br>
dia v2014.03.25)<br>
Session: 766278e0bcac1ed7<br>
Range: npt=0.000-<br>
<br>
<br>
Received 277 new bytes of response data.<br>
Received a complete PLAY response:<br>
RTSP/1.0 200 OK<br>
Server: VLC/2.1.3<br>
Date: Fri, 04 Apr 2014 03:26:41 GMT<br>
RTP-Info:
url=rtsp://192.168.33.77:8554/media0/trackID=2;seq=12802;rtptime=31960<br>
74254<br>
Range: npt=215.623000-<br>
Session: 766278e0bcac1ed7;timeout=60<br>
Content-Length: 0<br>
Cache-Control: no-cache<br>
Cseq: 5<br>
<br>
<br>
Started playing session<br>
Receiving streamed data...<br>
MultiFramedRTPSource::doGetNextFrame1(): The total received frame
size exceeds t<br>
he client's buffer size (100000). 4237 bytes of trailing data will
be dropped!<br>
FileSink::afterGettingFrame(): The input frame data was too large
for our buffer<br>
size (100000). 4237 bytes of trailing data was dropped! Correct
this by incre<br>
asing the "bufferSize" parameter in the "createNew()" call to at
least 104237<br>
Received RTCP "BYE" on "video/H264" subsession (after 60 seconds)<br>
Sending request: TEARDOWN rtsp://192.168.33.77:8554/media0 RTSP/1.0<br>
CSeq: 6<br>
User-Agent: C:\dev\Live555Viewer\Release\Live555Viewer.exe (LIVE555
Streaming Me<br>
dia v2014.03.25)<br>
Session: 766278e0bcac1ed7<br>
<br>
<br>
Received 166 new bytes of response data.<br>
Received a complete TEARDOWN response:<br>
RTSP/1.0 200 OK<br>
Server: VLC/2.1.3<br>
Date: Fri, 04 Apr 2014 03:27:41 GMT<br>
Session: 766278e0bcac1ed7;timeout=60<br>
Content-Length: 0<br>
Cache-Control: no-cache<br>
Cseq: 6<br>
</body>
</html>