[Live-devel] Live555 Proxy Server - Stuck in endless loop

Erik Montnemery erik at montnemery.com
Tue Jan 12 13:48:54 PST 2016


I'm using the live555ProxyServer to be able to reliably record and view
streams from four cheap cameras concurrently.
Recording is done in 15 minute chunks with 15 seconds of overlap, meaning
there will normally be between 4-8 active clients for the 4 proxied streams.
The live 555 version is 2015.12.22, compiled for linux-64bit.

Today the live555ProxyServer got stuck in an endless loop, with this tail
of the log:

ProxyRTSPClient["rtsp://192.168.0.126/ch0_0.h264/"]::continueAfterSETUP():
head codec: H264; numSubsessions 2
queue: H264 MPEG4-GENERIC MPEG4-GENERIC

"MPEG4-GENERIC" is then endlessly repeated.

I guess the 2nd element in the list starting with fSetupQueueHead has ended
up linking back to itself somehow?
I think the setup should mean the camera at 192.168.0.126 has just rebooted
or reconnected to the network, normally the only event being logged is
transmission of "OPTIONS".
(That's used to keep the connection alive?)
Any suggestions for debuggin this would be really welcome!

Some more log if useful:
Received 155 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 7968
Date: Tue, Jan 12 2016 16:52:27 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER


ProxyServerMediaSubsession["H264"]::closeStreamSource()
Sending request: PAUSE rtsp://192.168.0.126/ch0_0.h264/ RTSP/1.0
CSeq: 593
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 66334873


ProxyServerMediaSubsession["MPEG4-GENERIC"]::closeStreamSource()
Sending request: OPTIONS rtsp://192.168.0.125/ch0_0.h264/ RTSP/1.0
CSeq: 7948
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 66334873


Received 155 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 7948
Date: Tue, Jan 12 2016 16:52:50 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER


Sending request: OPTIONS rtsp://192.168.0.124/ch0_0.h264/ RTSP/1.0
CSeq: 7948
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 66334873


Received 155 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 7948
Date: Tue, Jan 12 2016 16:52:52 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER


ProxyServerMediaSubsession["H264"]::createNewStreamSource(session id
3102139562)
Sending request: PLAY rtsp://192.168.0.126/ch0_0.h264/ RTSP/1.0
CSeq: 594
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 66334873


ProxyServerMediaSubsession["H264"]::createNewRTPSink()
ProxyServerMediaSubsession["MPEG4-GENERIC"]::createNewStreamSource(session
id 3102139562)
ProxyServerMediaSubsession["MPEG4-GENERIC"]::createNewRTPSink()
Sending request: OPTIONS rtsp://192.168.0.123/ch0_0.h264/ RTSP/1.0
CSeq: 7969
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 6B8B4567


Received 155 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 7969
Date: Tue, Jan 12 2016 16:52:57 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER


ProxyServerMediaSubsession["H264"]::closeStreamSource()
Sending request: PAUSE rtsp://192.168.0.126/ch0_0.h264/ RTSP/1.0
CSeq: 595
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 66334873


ProxyServerMediaSubsession["MPEG4-GENERIC"]::closeStreamSource()
Sending request: OPTIONS rtsp://192.168.0.125/ch0_0.h264/ RTSP/1.0
CSeq: 7949
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 66334873


Received 155 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 7949
Date: Tue, Jan 12 2016 16:53:20 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER


Sending request: OPTIONS rtsp://192.168.0.124/ch0_0.h264/ RTSP/1.0
CSeq: 7949
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 66334873


Received 155 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 7949
Date: Tue, Jan 12 2016 16:53:22 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER


ProxyServerMediaSubsession["H264"]::createNewStreamSource(session id
2782791278)
Sending request: PLAY rtsp://192.168.0.126/ch0_0.h264/ RTSP/1.0
CSeq: 596
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 66334873


ProxyServerMediaSubsession["H264"]::createNewRTPSink()
ProxyServerMediaSubsession["MPEG4-GENERIC"]::createNewStreamSource(session
id 2782791278)
ProxyServerMediaSubsession["MPEG4-GENERIC"]::createNewRTPSink()
Sending request: OPTIONS rtsp://192.168.0.123/ch0_0.h264/ RTSP/1.0
CSeq: 7970
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 6B8B4567


Received 155 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 7970
Date: Tue, Jan 12 2016 16:53:27 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER


ProxyServerMediaSubsession["H264"]::closeStreamSource()
Sending request: PAUSE rtsp://192.168.0.126/ch0_0.h264/ RTSP/1.0
CSeq: 597
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 66334873


ProxyServerMediaSubsession["MPEG4-GENERIC"]::closeStreamSource()
Opening connection to 192.168.0.126, port 554...
...remote connection opened
Sending request: OPTIONS rtsp://192.168.0.126/ch0_0.h264/ RTSP/1.0
CSeq: 598
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 66334873


Received 154 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 598
Date: Sat, Jan 03 1970 16:25:20 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER


ProxyServerMediaSubsession["H264"]::~ProxyServerMediaSubsession()
ProxyServerMediaSubsession["MPEG4-GENERIC"]::~ProxyServerMediaSubsession()
Opening connection to 192.168.0.126, port 554...
...remote connection opened
Sending request: DESCRIBE rtsp://192.168.0.126/ch0_0.h264 RTSP/1.0
CSeq: 599
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Accept: application/sdp


Received 1020 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 599
Date: Sat, Jan 03 1970 16:25:20 GMT
Content-Base: rtsp://192.168.0.126/ch0_0.h264/
Content-Type: application/sdp
Content-Length: 853

v=0
o=- 231920889932 1 IN IP4 192.168.1.128
s=H.264 Program Stream, streamed by the LIVE555 Media Server
i=ch0_0.h264
t=0 0
a=DevVer:pusher2
a=GroupName:IPCAM
a=NickName:CIF
a=CfgSection:PROG_CHN0
a=tool:LIVE555 Streaming Media v2011.08.13
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:H.264 Program Stream, streamed by the LIVE555 Media Server
a=x-qt-text-inf:ch0_0.h264
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:4000
a=rtpmap:96 H264/90000
a=control:trackID=1
a=fmtp:96
packetization-mode=1;profile-level-id=64001F;sprop-parameter-sets=Z2QAH6wrUCgC3IA=,aO48MA==
a=framesize:96 1280-720
a=cliprect:0,0,1280,720
m=audio 0 RTP/AVP 97
a=rtpmap:97 mpeg4-generic/8000/2
a=fmtp:97
streamtype=5;profile-level-id=1;cpresent=0;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1590
a=control:trackID=2

ProxyServerMediaSession["rtsp://192.168.0.126/ch0_0.h264/"] added new
"ProxyServerMediaSubsession" for RTP/video/H264 track
ProxyServerMediaSession["rtsp://192.168.0.126/ch0_0.h264/"] added new
"ProxyServerMediaSubsession" for RTP/audio/MPEG4-GENERIC track
Sending request: OPTIONS rtsp://192.168.0.125/ch0_0.h264/ RTSP/1.0
CSeq: 7950
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 66334873


Received 155 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 7950
Date: Tue, Jan 12 2016 16:53:50 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER


Sending request: OPTIONS rtsp://192.168.0.124/ch0_0.h264/ RTSP/1.0
CSeq: 7950
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 66334873


Received 155 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 7950
Date: Tue, Jan 12 2016 16:53:52 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER


ProxyServerMediaSubsession["H264"]::createNewStreamSource(session id 0)
Initiated: ProxyServerMediaSubsession["H264"]
ProxyServerMediaSubsession["H264"]::createNewRTPSink()
ProxyServerMediaSubsession["H264"]::closeStreamSource()
ProxyServerMediaSubsession["MPEG4-GENERIC"]::createNewStreamSource(session
id 0)
Initiated: ProxyServerMediaSubsession["MPEG4-GENERIC"]
ProxyServerMediaSubsession["MPEG4-GENERIC"]::createNewRTPSink()
ProxyServerMediaSubsession["MPEG4-GENERIC"]::closeStreamSource()
ProxyServerMediaSubsession["H264"]::createNewStreamSource(session id
2382562206)
Sending request: SETUP rtsp://192.168.0.126/ch0_0.h264/trackID=1 RTSP/1.0
CSeq: 600
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Transport: RTP/AVP;unicast;client_port=53490-53491


ProxyServerMediaSubsession["H264"]::createNewRTPSink()
ProxyServerMediaSubsession["MPEG4-GENERIC"]::createNewStreamSource(session
id 2382562206)
ProxyServerMediaSubsession["MPEG4-GENERIC"]::createNewRTPSink()
Sending request: OPTIONS rtsp://192.168.0.123/ch0_0.h264/ RTSP/1.0
CSeq: 7971
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 6B8B4567


Received 155 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 7971
Date: Tue, Jan 12 2016 16:53:57 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER


ProxyServerMediaSubsession["H264"]::closeStreamSource()
ProxyServerMediaSubsession["MPEG4-GENERIC"]::closeStreamSource()
Sending request: OPTIONS rtsp://192.168.0.126/ch0_0.h264/ RTSP/1.0
CSeq: 601
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)


Sending request: OPTIONS rtsp://192.168.0.125/ch0_0.h264/ RTSP/1.0
CSeq: 7951
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 66334873


Received 155 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 7951
Date: Tue, Jan 12 2016 16:54:20 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER


Sending request: OPTIONS rtsp://192.168.0.124/ch0_0.h264/ RTSP/1.0
CSeq: 7951
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 66334873


Received 155 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 7951
Date: Tue, Jan 12 2016 16:54:22 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER


ProxyServerMediaSubsession["H264"]::createNewStreamSource(session id
34387053)
ProxyServerMediaSubsession["H264"]::createNewRTPSink()
Sending request: OPTIONS rtsp://192.168.0.126/ch0_0.h264/ RTSP/1.0
CSeq: 603
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)


ProxyServerMediaSubsession["MPEG4-GENERIC"]::createNewStreamSource(session
id 34387053)
ProxyServerMediaSubsession["MPEG4-GENERIC"]::createNewRTPSink()
Sending request: OPTIONS rtsp://192.168.0.123/ch0_0.h264/ RTSP/1.0
CSeq: 7972
User-Agent: ProxyRTSPClient (LIVE555 Streaming Media v2015.12.22)
Session: 6B8B4567


Received 155 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 7972
Date: Tue, Jan 12 2016 16:54:27 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER


ProxyServerMediaSubsession["H264"]::closeStreamSource()
ProxyServerMediaSubsession["MPEG4-GENERIC"]::closeStreamSource()
Received 221 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 600
Date: Sat, Jan 03 1970 16:26:37 GMT
Transport:
RTP/AVP;unicast;destination=192.168.0.105;source=192.168.0.126;client_port=53490-53491;server_port=6974-6975;ssrc=bd1b58ba
Session: 46E87CCD


ProxyRTSPClient["rtsp://192.168.0.126/ch0_0.h264/"]::continueAfterSETUP():
head codec: H264; numSubsessions 2
queue: H264 MPEG4-GENERIC MPEG4-GENERIC MPEG4-GENERIC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20160112/e77203cc/attachment.html>


More information about the live-devel mailing list