[Live-devel] live555ProxyServer closes source when last client disconnect (timeout)

sergio at comm5.com.br sergio at comm5.com.br
Fri May 29 06:19:23 PDT 2015


 

Hi, thank you for your reply; 

The commands for the server and
client: 

 ./live555ProxyServer -V
rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream 


./testRTSPClient rtsp://192.168.1.128:8554/proxyStream 

As I said
before, after 70 with the client disconnected, I tryed to connect again
and the client shows: 

 [URL:"rtsp://192.168.1.128:8554/proxyStream/"]:
Started playing session... 

and nothing happens after that 

*******
live555ProxyServer LOG ************ 

LIVE555 Proxy Server 

(LIVE555
Streaming Media library version 2015.05.25) 

Opening connection to
192.168.1.121, port 554...
RTSP stream, proxying the stream
"rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream"
 Play this
stream using the URL: rtsp://192.168.1.128:8554/proxyStream 

(We use
port 8000 for optional RTSP-over-HTTP tunneling.)
...remote connection
opened
Sending request: DESCRIBE
rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream RTSP/1.0 
CSeq: 2

User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.05.25)

Accept: application/sdp 

Received 160 new bytes of response
data.
Received a complete DESCRIBE response:
RTSP/1.0 401 Unauthorized

CSeq: 2 
WWW-Authenticate: Digest realm="Embedded Net DVR",
nonce="21aaecab7", algorithm="MD5" 
WWW-Authenticate: Basic realm="/"


Resending...
Sending request: DESCRIBE
rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream RTSP/1.0 
CSeq: 3

Authorization: Digest username="admin", realm="Embedded Net DVR",
nonce="21aaecab7",
uri="rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream",
response="fe9fec7476543381adcd21f1a5241fb8" 
User-Agent: ProxyRTSPClient
(LIVE555 Streaming Media v2015.05.25) 
Accept: application/sdp


Received 669 new bytes of response data.
Received a complete DESCRIBE
response:
RTSP/1.0 200 OK 
CSeq: 3 
Content-Type: application/sdp

Content-Length: 589 

v=0 
o=- 1109162014219182 0 IN IP4 0.0.0.0

s=Media Server V3.1.0 
i=Media Server Session Description : standard

e=NONE 
c=IN c=IN IP4 0.0.0.0 
t=0 0 
a=control:* 
a=range:npt=now-

m=video 0 RTP/AVP 96 
i=Video Media 
a=rtpmap:96 H264/90000 
a=fmtp:96
profile-level-id=4D0014;packetization-mode=0;sprop-parameter-sets=Z00AH5W4PA9oQAABdwAAV+Qh,aO48gA==

a=control:trackID=video 
m=audio 0 RTP/AVP 0 
i=Audio Media

a=rtpmap:0 PCMU/8000 
a=control:trackID=audio

a=Media_header:MEDIAINFO=494D4B48010100000400000110710110401F000000FA000000000000000000000000000000000000;

a=appversion:1.0


ProxyServerMediaSession["rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream"]
added new "ProxyServerMediaSubsession" for RTP/video/H264
track
ProxyServerMediaSession["rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream"]
added new "ProxyServerMediaSubsession" for RTP/audio/PCMU
track
ProxyServerMediaSubsession["H264"]::createNewStreamSource(session
id 0)
 Initiated:
ProxyServerMediaSubsession["H264"]
ProxyServerMediaSubsession["H264"]::createNewRTPSink()
ProxyServerMediaSubsession["H264"]::closeStreamSource()
ProxyServerMediaSubsession["PCMU"]::createNewStreamSource(session
id 0)
 Initiated:
ProxyServerMediaSubsession["PCMU"]
ProxyServerMediaSubsession["PCMU"]::createNewRTPSink()
ProxyServerMediaSubsession["PCMU"]::closeStreamSource()
ProxyServerMediaSubsession["H264"]::createNewStreamSource(session
id 1294116621)
Sending request: SETUP
rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream/trackID=video
RTSP/1.0 
CSeq: 4 
Authorization: Digest username="admin",
realm="Embedded Net DVR", nonce="21aaecab7",
uri="rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream",
response="d05e58ef12c320c3aa751564defaedcd" 
User-Agent: ProxyRTSPClient
(LIVE555 Streaming Media v2015.05.25) 
Transport:
RTP/AVP;unicast;client_port=53678-53679


ProxyServerMediaSubsession["H264"]::createNewRTPSink()
ProxyServerMediaSubsession["PCMU"]::createNewStreamSource(session
id
1294116621)
ProxyServerMediaSubsession["PCMU"]::createNewRTPSink()
Received
233 new bytes of response data.
Received a complete SETUP
response:
RTSP/1.0 200 OK 
Session: 187345554;timeout=60 
Transport:
RTP/AVP;unicast;client_port=53678-53679;server_port=64080-64081;ssrc=b2aaa92

CSeq: 4 
Accept-Ranges: NPT 
Media-Properties: No-Seeking,
Time-Progressing, Time-Duration=0


ProxyRTSPClient["rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream"]::continueAfterSETUP():
head codec: H264; numSubsessions 2
 queue: H264 PCMU
Sending request:
SETUP
rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream/trackID=audio
RTSP/1.0 
CSeq: 5 
Authorization: Digest username="admin",
realm="Embedded Net DVR", nonce="21aaecab7",
uri="rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream",
response="d05e58ef12c320c3aa751564defaedcd" 
User-Agent: ProxyRTSPClient
(LIVE555 Streaming Media v2015.05.25) 
Transport:
RTP/AVP;unicast;client_port=45040-45041 
Session: 187345554 

Received
233 new bytes of response data.
Received a complete SETUP
response:
RTSP/1.0 200 OK 
Session: 187345554;timeout=60 
Transport:
RTP/AVP;unicast;client_port=45040-45041;server_port=64082-64083;ssrc=b2aaa93

CSeq: 5 
Accept-Ranges: NPT 
Media-Properties: No-Seeking,
Time-Progressing, Time-Duration=0


ProxyRTSPClient["rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream"]::continueAfterSETUP():
head codec: PCMU; numSubsessions 2
 queue: PCMU
Sending request: PLAY
rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream RTSP/1.0 
CSeq: 6

Authorization: Digest username="admin", realm="Embedded Net DVR",
nonce="21aaecab7",
uri="rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream",
response="c5d2d809780e7cb6619d8be38ba5749c" 
User-Agent: ProxyRTSPClient
(LIVE555 Streaming Media v2015.05.25) 
Session: 187345554 

Received 48
new bytes of response data.
Received a complete PLAY response:
RTSP/1.0
200 OK 
Session: 187345554 
CSeq: 6 

Sending request: OPTIONS
rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream RTSP/1.0 
CSeq: 7

Authorization: Digest username="admin", realm="Embedded Net DVR",
nonce="21aaecab7",
uri="rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream",
response="da99a7269aabbcadd4c79a5d6f88479b" 
User-Agent: ProxyRTSPClient
(LIVE555 Streaming Media v2015.05.25) 
Session: 187345554 

Received 100
new bytes of response data.
Received a complete OPTIONS
response:
RTSP/1.0 200 OK 
CSeq: 7 
Public: OPTIONS, DESCRIBE, SETUP,
PLAY, TEARDOWN, PAUSE, SET_PARAMETER


ProxyServerMediaSubsession["H264"]::closeStreamSource()
Sending
request: PAUSE rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream
RTSP/1.0 
CSeq: 8 
Authorization: Digest username="admin",
realm="Embedded Net DVR", nonce="21aaecab7",
uri="rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream",
response="1d931426e26bcfbfe214528a9f6b45ce" 
User-Agent: ProxyRTSPClient
(LIVE555 Streaming Media v2015.05.25) 
Session: 187345554


ProxyServerMediaSubsession["PCMU"]::closeStreamSource()
Received 44
new bytes of response data.
Received a complete PAUSE response:
RTSP/1.0
405 Method Not Allowed 
CSeq: 8


ProxyServerMediaSubsession["H264"]::createNewStreamSource(session id
1438568373)
Sending request: PLAY
rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream RTSP/1.0 
CSeq: 9

Authorization: Digest username="admin", realm="Embedded Net DVR",
nonce="21aaecab7",
uri="rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream",
response="c5d2d809780e7cb6619d8be38ba5749c" 
User-Agent: ProxyRTSPClient
(LIVE555 Streaming Media v2015.05.25) 
Session: 187345554


ProxyServerMediaSubsession["H264"]::createNewRTPSink()
ProxyServerMediaSubsession["PCMU"]::createNewStreamSource(session
id
1438568373)
ProxyServerMediaSubsession["PCMU"]::createNewRTPSink()
Received
56 new bytes of response data.
Received a complete PLAY
response:
RTSP/1.0 455 Method Not Valid In This State 
CSeq: 9 

Sending
request: OPTIONS rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream
RTSP/1.0 
CSeq: 10 
Authorization: Digest username="admin",
realm="Embedded Net DVR", nonce="21aaecab7",
uri="rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream",
response="da99a7269aabbcadd4c79a5d6f88479b" 
User-Agent: ProxyRTSPClient
(LIVE555 Streaming Media v2015.05.25) 
Session: 187345554 

Received 101
new bytes of response data.
Received a complete OPTIONS
response:
RTSP/1.0 200 OK 
CSeq: 10 
Public: OPTIONS, DESCRIBE, SETUP,
PLAY, TEARDOWN, PAUSE, SET_PARAMETER 

Sending request: OPTIONS
rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream RTSP/1.0 
CSeq: 11

Authorization: Digest username="admin", realm="Embedded Net DVR",
nonce="21aaecab7",
uri="rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream",
response="da99a7269aabbcadd4c79a5d6f88479b" 
User-Agent: ProxyRTSPClient
(LIVE555 Streaming Media v2015.05.25) 
Session: 187345554 

Received 101
new bytes of response data.
Received a complete OPTIONS
response:
RTSP/1.0 200 OK 
CSeq: 11 
Public: OPTIONS, DESCRIBE, SETUP,
PLAY, TEARDOWN, PAUSE, SET_PARAMETER 

********** testRTSPClient LOG
***************** 

Opening connection to 192.168.1.128, port
8554...
...remote connection opened
Sending request: DESCRIBE
rtsp://192.168.1.128:8554/proxyStream RTSP/1.0 
CSeq: 2 
User-Agent:
./testRTSPClient (LIVE555 Streaming Media v2015.05.25) 
Accept:
application/sdp 

Received 795 new bytes of response data.
Received a
complete DESCRIBE response:
RTSP/1.0 200 OK 
CSeq: 2 
Date: Fri, May 29
2015 13:02:13 GMT 
Content-Base: rtsp://192.168.1.128:8554/proxyStream/

Content-Type: application/sdp 
Content-Length: 624 

v=0 
o=-
1432904526026656 1 IN IP4 192.168.1.128 
s=LIVE555 Streaming Media
v2015.05.25 
i=LIVE555 Streaming Media v2015.05.25 
t=0 0

a=tool:LIVE555 Streaming Media v2015.05.25 
a=type:broadcast

a=control:* 
a=range:npt=0- 
a=x-qt-text-nam:LIVE555 Streaming Media
v2015.05.25 
a=x-qt-text-inf:LIVE555 Streaming Media v2015.05.25

m=video 0 RTP/AVP 96 
c=IN IP4 0.0.0.0 
b=AS:50 
a=rtpmap:96 H264/90000

a=fmtp:96
packetization-mode=1;profile-level-id=4D001F;sprop-parameter-sets=Z00AH5W4PA9oQAABdwAAV+Qh,aO48gA==

a=control:track1 
m=audio 0 RTP/AVP 97 
c=IN IP4 0.0.0.0 
b=AS:50

a=rtpmap:97 PCMU/8000 
a=control:track2


[URL:"rtsp://192.168.1.128:8554/proxyStream/"]: Got a SDP
description:
v=0 
o=- 1432904526026656 1 IN IP4 192.168.1.128 
s=LIVE555
Streaming Media v2015.05.25 
i=LIVE555 Streaming Media v2015.05.25 
t=0
0 
a=tool:LIVE555 Streaming Media v2015.05.25 
a=type:broadcast

a=control:* 
a=range:npt=0- 
a=x-qt-text-nam:LIVE555 Streaming Media
v2015.05.25 
a=x-qt-text-inf:LIVE555 Streaming Media v2015.05.25

m=video 0 RTP/AVP 96 
c=IN IP4 0.0.0.0 
b=AS:50 
a=rtpmap:96 H264/90000

a=fmtp:96
packetization-mode=1;profile-level-id=4D001F;sprop-parameter-sets=Z00AH5W4PA9oQAABdwAAV+Qh,aO48gA==

a=control:track1 
m=audio 0 RTP/AVP 97 
c=IN IP4 0.0.0.0 
b=AS:50

a=rtpmap:97 PCMU/8000 
a=control:track2


[URL:"rtsp://192.168.1.128:8554/proxyStream/"]: Initiated the
"video/H264" subsession (client ports 32812-32813)
Sending request:
SETUP rtsp://192.168.1.128:8554/proxyStream/track1 RTSP/1.0 
CSeq: 3

User-Agent: ./testRTSPClient (LIVE555 Streaming Media v2015.05.25)

Transport: RTP/AVP;unicast;client_port=32812-32813 

Received 216 new
bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200
OK 
CSeq: 3 
Date: Fri, May 29 2015 13:02:14 GMT 
Transport:
RTP/AVP;unicast;destination=192.168.1.128;source=192.168.1.128;client_port=32812-32813;server_port=6970-6971

Session: 4D22A70D;timeout=65


[URL:"rtsp://192.168.1.128:8554/proxyStream/"]: Set up the
"video/H264" subsession (client ports
32812-32813)
[URL:"rtsp://192.168.1.128:8554/proxyStream/"]: Created a
data sink for the "video/H264"
subsession
[URL:"rtsp://192.168.1.128:8554/proxyStream/"]: Initiated the
"audio/PCMU" subsession (client ports 54882-54883)
Sending request:
SETUP rtsp://192.168.1.128:8554/proxyStream/track2 RTSP/1.0 
CSeq: 4

User-Agent: ./testRTSPClient (LIVE555 Streaming Media v2015.05.25)

Transport: RTP/AVP;unicast;client_port=54882-54883 
Session: 4D22A70D


Received 216 new bytes of response data.
Received a complete SETUP
response:
RTSP/1.0 200 OK 
CSeq: 4 
Date: Fri, May 29 2015 13:02:14 GMT

Transport:
RTP/AVP;unicast;destination=192.168.1.128;source=192.168.1.128;client_port=54882-54883;server_port=6972-6973

Session: 4D22A70D;timeout=65


[URL:"rtsp://192.168.1.128:8554/proxyStream/"]: Set up the
"audio/PCMU" subsession (client ports
54882-54883)
[URL:"rtsp://192.168.1.128:8554/proxyStream/"]: Created a
data sink for the "audio/PCMU" subsession
Sending request: PLAY
rtsp://192.168.1.128:8554/proxyStream/ RTSP/1.0 
CSeq: 5 
User-Agent:
./testRTSPClient (LIVE555 Streaming Media v2015.05.25) 
Session:
4D22A70D 
Range: npt=0.000- 

Received 269 new bytes of response
data.
Received a complete PLAY response:
RTSP/1.0 200 OK 
CSeq: 5 
Date:
Fri, May 29 2015 13:02:14 GMT 
Range: npt=0.000- 
Session: 4D22A70D

RTP-Info:
url=rtsp://192.168.1.128:8554/proxyStream/track1;seq=18162;rtptime=3291441750,url=rtsp://192.168.1.128:8554/proxyStream/track2;seq=25479;rtptime=300309529


[URL:"rtsp://192.168.1.128:8554/proxyStream/"]: Started playing
session... 

********************************************************


Em 27.05.2015 17:52, Ross Finlayson escreveu: 

>> live555ProxyServer
LOG: 
>> 
>> ProxyServerMediaSubsession["H264"]::closeStreamSource() 
>>

>> ProxyServerMediaSubsession["H264"]::createNewRTPSink() 
>> 
>>
ProxyServerMediaSubsession["PCMU"]::createNewStreamSource(session id
929659699)
>> ProxyServerMediaSubsession["PCMU"]::createNewRTPSink()
>>
Received 57 new bytes of response data.
>> Received a complete PLAY
response:
>> RTSP/1.0 455 Method Not Valid In This State
> 
> This seems
to indicate a problem with your 'back end' server - i.e., with your IP
camera. To be sure, though, I'd need to see the *complete*
live555ProxyServer log (generated by running it with the "-V" option) -
not just the shortened log entries that you included in your message. 
>

> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/ [2] 
>

> _______________________________________________
> live-devel mailing
list
> live-devel at lists.live555.com
>
http://lists.live555.com/mailman/listinfo/live-devel [1]




Links:
------
[1]
http://lists.live555.com/mailman/listinfo/live-devel
[2]
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20150529/b258e3cb/attachment.html>


More information about the live-devel mailing list