Problem on multiple openRTSP running concurrently

Zhang, David zxinming at amazon.com
Mon Jan 11 14:04:10 PST 2021


Hi, I am having the load test on my macbook. I have a connected IP camera, and I used the command ./openRTSP -q “rtsp://192.168.0.212:554/stream0?username=xxxxxxx&password=xxxxxxxxxxxxxx” to receive stream data.

I opened 11 iterm terminal sessions and run previous command for each of the session. The first 10 session were running properly, however for the 11th session, it reported failure as follows:

-----------------------------------------------------------------------------------------------------------------------------
Warning: The -q, -4 or -i option was used, but not -w.  Assuming a video width of 240 pixels
Warning: The -q, -4 or -i option was used, but not -h.  Assuming a video height of 180 pixels
Warning: The -q, -4 or -i option was used, but not -f.  Assuming a video frame rate of 15 frames-per-second
Created new TCP socket 3 for connection
Connecting to 192.168.0.212, port 554 on socket 3...
...remote connection opened
Sending request: OPTIONS rtsp://192.168.0.212:554/stream0?username=admin&password=E10ADC3949BA59ABBE56E057F20F883E RTSP/1.0
CSeq: 2
User-Agent: ./openRTSP (LIVE555 Streaming Media v2020.12.11)


Received 110 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 2
Public: DESCRIBE, PLAY, SETUP, TEARDOWN, KEYIFRAME, SET_PARAMETER, GET_PARAMETER


Sending request: DESCRIBE rtsp://192.168.0.212:554/stream0?username=admin&password=E10ADC3949BA59ABBE56E057F20F883E RTSP/1.0
CSeq: 3
User-Agent: ./openRTSP (LIVE555 Streaming Media v2020.12.11)
Accept: application/sdp


Received 932 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 3
Content-Type: application/sdp
Content-Length: 803
Content-Base: rtsp://192.168.0.212:554/stream0/

v=0
o=- 1109162014219182 1109162014219192 IN IP4 x.y.z.w
s=RTSP/RTP stream from anjvision ipcamera
e=NONE
c=IN IP4 0.0.0.0
a=tool:LIVE555 Streaming Media v2011.05.25 CHAM.LI at ANJVISION.COM
t=0 0
a=range:npt=0-
a=control:*
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=control:trackID=1
a=fmtp:96 profile-level-id=4D4032;packetization-mode=0;sprop-parameter-sets=Z01AMpWgCiA9flmwEA==,aO48gA==;config=00000001674d403295a00a203d7e59b0100000000168ee3c800000000106f02c104552880296573c3b4a56238ba76b7267b9a4eb7aa5cf73fadbc18a58a1b2f731bb7c93c11affffffffff7380
a=x-dimensions: 2592, 1944
a=x-framerate: 15
m=audio 0 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=control:trackID=2
a=Media_header:MEDIAINFO=494D4B48010100000400010010710110401F000000FA000000000000000000000000000000000000;
a=appversion:1.0

Opened URL "rtsp://192.168.0.212:554/stream0?username=admin&password=E10ADC3949BA59ABBE56E057F20F883E", returning a SDP description:
v=0
o=- 1109162014219182 1109162014219192 IN IP4 x.y.z.w
s=RTSP/RTP stream from anjvision ipcamera
e=NONE
c=IN IP4 0.0.0.0
a=tool:LIVE555 Streaming Media v2011.05.25 CHAM.LI at ANJVISION.COM
t=0 0
a=range:npt=0-
a=control:*
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=control:trackID=1
a=fmtp:96 profile-level-id=4D4032;packetization-mode=0;sprop-parameter-sets=Z01AMpWgCiA9flmwEA==,aO48gA==;config=00000001674d403295a00a203d7e59b0100000000168ee3c800000000106f02c104552880296573c3b4a56238ba76b7267b9a4eb7aa5cf73fadbc18a58a1b2f731bb7c93c11affffffffff7380
a=x-dimensions: 2592, 1944
a=x-framerate: 15
m=audio 0 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=control:trackID=2
a=Media_header:MEDIAINFO=494D4B48010100000400010010710110401F000000FA000000000000000000000000000000000000;
a=appversion:1.0

Created receiver for "video/H264" subsession (client ports 62454-62455)
Created receiver for "audio/PCMA" subsession (client ports 54440-54441)
Sending request: SETUP rtsp://192.168.0.212:554/stream0/trackID=1 RTSP/1.0
CSeq: 4
User-Agent: ./openRTSP (LIVE555 Streaming Media v2020.12.11)
Transport: RTP/AVP;unicast;client_port=62454-62455


Received 157 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 500 Internal Server Error
CSeq: 4
Session:       1668819569d
Transport: RTP/AVP;unicast;client_port=62454-62455;server_port=0-1;ssrc=006995C0


Failed to setup "video/H264" subsession: 500 Internal Server Error
Sending request: SETUP rtsp://192.168.0.212:554/stream0/trackID=2 RTSP/1.0
CSeq: 5
User-Agent: ./openRTSP (LIVE555 Streaming Media v2020.12.11)
Transport: RTP/AVP;unicast;client_port=54440-54441


Received 157 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 500 Internal Server Error
CSeq: 5
Session:       1668819569d
Transport: RTP/AVP;unicast;client_port=54440-54441;server_port=0-1;ssrc=006995C0


Failed to setup "audio/PCMA" subsession: 500 Internal Server Error

I don’t know what caused the problem, is there any setup limit that make this happen? What should I do if I want to connect 10 more like 18 20 subsessions at the same time?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20210111/b157f175/attachment.htm>


More information about the live-devel mailing list