[Live-devel] VLC RTSP Server and live555 testRTSPClient app

Andrey Shvyrkin ashvyrkin at gosniias.ru
Thu Apr 3 20:49:05 PDT 2014


03.04.2014 20:02, Ross Finlayson ?????:
>> 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.
>
> 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.
>
> To verify this, please run "openRTSP" as your client, and send us the 
> diagnostic output (i.e., from stderr).
>
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
>
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
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?

Opening connection to 192.168.33.77, port 8554...
...remote connection opened
Sending request: OPTIONS rtsp://192.168.33.77:8554/media0 RTSP/1.0
CSeq: 2
User-Agent: C:\dev\Live555Viewer\Release\Live555Viewer.exe (LIVE555 
Streaming Me
dia v2014.03.25)


Received 124 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
Server: VLC/2.1.3
Content-Length: 0
Cseq: 2
Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE,GET_PARAMETER


Sending request: DESCRIBE rtsp://192.168.33.77:8554/media0 RTSP/1.0
CSeq: 3
User-Agent: C:\dev\Live555Viewer\Release\Live555Viewer.exe (LIVE555 
Streaming Me
dia v2014.03.25)
Accept: application/sdp


Received 662 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
Server: VLC/2.1.3
Date: Fri, 04 Apr 2014 03:26:41 GMT
Content-Type: application/sdp
Content-Base: rtsp://192.168.33.77:8554/media0
Content-Length: 453
Cache-Control: no-cache
Cseq: 3

v=0
o=- 15485808675063797458 15485808675063797458 IN IP4 Jocker-PC
s=Unnamed
i=N/A
c=IN IP4 0.0.0.0
t=0 0
a=tool:vlc 2.1.3
a=recvonly
a=type:broadcast
a=charset:UTF-8
a=control:rtsp://192.168.33.77:8554/media0
m=video 0 RTP/AVP 96
b=RR:0
a=rtpmap:96 H264/90000
a=fmtp:96 
packetization-mode=1;profile-level-id=640028;sprop-parameter-sets=Z2QA
KKzZQHgCJ+XARAAAAwAEAAADAMo8YMZY,aOvjyyLA;
a=control:rtsp://192.168.33.77:8554/media0/trackID=2

Opened URL "rtsp://192.168.33.77:8554/media0", returning a SDP description:
v=0
o=- 15485808675063797458 15485808675063797458 IN IP4 Jocker-PC
s=Unnamed
i=N/A
c=IN IP4 0.0.0.0
t=0 0
a=tool:vlc 2.1.3
a=recvonly
a=type:broadcast
a=charset:UTF-8
a=control:rtsp://192.168.33.77:8554/media0
m=video 0 RTP/AVP 96
b=RR:0
a=rtpmap:96 H264/90000
a=fmtp:96 
packetization-mode=1;profile-level-id=640028;sprop-parameter-sets=Z2QA
KKzZQHgCJ+XARAAAAwAEAAADAMo8YMZY,aOvjyyLA;
a=control:rtsp://192.168.33.77:8554/media0/trackID=2

Created receiver for "video/H264" subsession (client ports 64166-64167)
Sending request: SETUP rtsp://192.168.33.77:8554/media0/trackID=2 RTSP/1.0
CSeq: 4
User-Agent: C:\dev\Live555Viewer\Release\Live555Viewer.exe (LIVE555 
Streaming Me
dia v2014.03.25)
Transport: RTP/AVP;unicast;client_port=64166-64167


Received 270 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
Server: VLC/2.1.3
Date: Fri, 04 Apr 2014 03:26:41 GMT
Transport: 
RTP/AVP/UDP;unicast;client_port=64166-64167;server_port=64168-64169;s
src=4D36B604;mode=play
Session: 766278e0bcac1ed7;timeout=60
Content-Length: 0
Cache-Control: no-cache
Cseq: 4


Setup "video/H264" subsession (client ports 64166-64167)
Created output file: "video-H264-1"
Sending request: PLAY rtsp://192.168.33.77:8554/media0 RTSP/1.0
CSeq: 5
User-Agent: C:\dev\Live555Viewer\Release\Live555Viewer.exe (LIVE555 
Streaming Me
dia v2014.03.25)
Session: 766278e0bcac1ed7
Range: npt=0.000-


Received 277 new bytes of response data.
Received a complete PLAY response:
RTSP/1.0 200 OK
Server: VLC/2.1.3
Date: Fri, 04 Apr 2014 03:26:41 GMT
RTP-Info: 
url=rtsp://192.168.33.77:8554/media0/trackID=2;seq=12802;rtptime=31960
74254
Range: npt=215.623000-
Session: 766278e0bcac1ed7;timeout=60
Content-Length: 0
Cache-Control: no-cache
Cseq: 5


Started playing session
Receiving streamed data...
MultiFramedRTPSource::doGetNextFrame1(): The total received frame size 
exceeds t
he client's buffer size (100000).  4237 bytes of trailing data will be 
dropped!
FileSink::afterGettingFrame(): The input frame data was too large for 
our buffer
  size (100000).  4237 bytes of trailing data was dropped!  Correct this 
by incre
asing the "bufferSize" parameter in the "createNew()" call to at least 
104237
Received RTCP "BYE" on "video/H264" subsession (after 60 seconds)
Sending request: TEARDOWN rtsp://192.168.33.77:8554/media0 RTSP/1.0
CSeq: 6
User-Agent: C:\dev\Live555Viewer\Release\Live555Viewer.exe (LIVE555 
Streaming Me
dia v2014.03.25)
Session: 766278e0bcac1ed7


Received 166 new bytes of response data.
Received a complete TEARDOWN response:
RTSP/1.0 200 OK
Server: VLC/2.1.3
Date: Fri, 04 Apr 2014 03:27:41 GMT
Session: 766278e0bcac1ed7;timeout=60
Content-Length: 0
Cache-Control: no-cache
Cseq: 6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20140404/a824a26b/attachment.html>


More information about the live-devel mailing list