[Live-devel] Multicast Streaming with Axis servers Revisited

Federico Ares federico.ares at gmail.com
Wed Dec 14 12:09:52 PST 2005


Dear Ross,

I managed to get the multicast streaming with axis servers to work.
I took your advice and made tests with openRTSP.
At first it didnt work. I ran a netstat to look which port openRTSP was
listening at. The result was obvious: it was the wrong port.

I specified the correct port (the one i setup in the axis server) with the
-p option and began to receive data correctly.

Axis sends the multicast address and ports in the setup response but
it seems these are not taken into account unless I specify them explicitly.

Here are two RTSP conversations. The first failes to configure the client 
correctly. The second
is successful but the client needs to know explicitly the configured port in 
the server.

Note that in the unsuccesful conversation the server overrides the port 
values, while client keeps
listening at the ones in the SETUP request.

--------------------------------------------------------------------------------------
Unsuccessful Conversation (without -p 2048 command)
The client listens to ports 1396-1397
--------------------------------------------------------------------------------------

OPTIONS rtsp://192.168.200.100/mpeg4/1/media.amp RTSP/1.0
CSeq: 1
User-Agent: openrtsp (LIVE555 Streaming Media v2005.12.09)

RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, TEARDOWN

DESCRIBE rtsp://192.168.200.100/mpeg4/1/media.amp RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: openrtsp (LIVE555 Streaming Media v2005.12.09)

RTSP/1.0 401 Unauthorized
CSeq: 2
WWW-Authenticate: Basic realm="/"

DESCRIBE rtsp://192.168.200.100/mpeg4/1/media.amp RTSP/1.0
CSeq: 3
Accept: application/sdp
Authorization: Basic cm9vdDpyb290
User-Agent: openrtsp (LIVE555 Streaming Media v2005.12.09)

RTSP/1.0 200 OK
CSeq: 3
Content-Base: rtsp://192.168.200.100:554/mpeg4/1/media.amp/
Content-Type: application/sdp
Content-Length: 684

v=0
o=- 1134561457096646 1134561457096655 IN IP4 192.168.200.100
s=Media Presentation
e=NONE
c=IN IP4 0.0.0.0
b=AS:8000
t=0 0
a=control:*
a=range:npt=now-
a=mpeg4-iod: 
"data:application/mpeg4-iod;base64,AoDUAE8BAf/1AQOAbwABQFBkYXRhOmFwcGxpY2F0aW9uL21wZWc0LW9kLWF1O2Jhc2U2NCxBUjBCR3dVZkF4Y0F5U1FBWlFRTklCRUVrK0FBZWhJQUFIb1NBQVlCQkE9PQQNAQUABAAAAAAAAAAAAAYJAQAAAAAAAAAAAzoAAkA2ZGF0YTphcHBsaWNhdGlvbi9tcGVnNC1iaWZzLWF1O2Jhc2U2NCx3QkFTWVFTSVVFVUZQd0E9BBICDQAAAgAAAAAAAAAABQMAAEAGCQEAAAAAAAAAAA=="
m=video 0 RTP/AVP 96
b=AS:8000
a=control:trackID=1
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 profile-level-id=245; 
config=000001B0F5000001B50900000100000001200088401928582120A21F;
a=mpeg4-esid:201

SETUP rtsp://192.168.200.100/mpeg4/1/media.amp/trackID=1 RTSP/1.0
CSeq: 4
Transport: RTP/AVP;multicast;client_port=1396-1397
Authorization: Basic cm9vdDpyb290
User-Agent: openrtsp (LIVE555 Streaming Media v2005.12.09)

RTSP/1.0 200 OK
CSeq: 4
Session: 0430608627;timeout=60
Transport: 
RTP/AVP;multicast;mode=play;destination=239.245.104.178;port=2048-2049;ttl=5

PLAY rtsp://192.168.200.100/mpeg4/1/media.amp RTSP/1.0
CSeq: 5
Session: 0430608627
Range: npt=0.000-
Authorization: Basic cm9vdDpyb290
User-Agent: openrtsp (LIVE555 Streaming Media v2005.12.09)

RTSP/1.0 200 OK
CSeq: 5
Session: 0430608627
Range: npt=now-
RTP-Info: url=trackID=1;seq=6062

--------------------------------------------------------------------------------------
Successful Conversation (with -p 2048 command)
The client listens to ports 2048-2049
--------------------------------------------------------------------------------------
OPTIONS rtsp://192.168.200.100/mpeg4/1/media.amp RTSP/1.0
CSeq: 1
User-Agent: openrtsp (LIVE555 Streaming Media v2005.12.09)

RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, TEARDOWN

DESCRIBE rtsp://192.168.200.100/mpeg4/1/media.amp RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: openrtsp (LIVE555 Streaming Media v2005.12.09)

RTSP/1.0 401 Unauthorized
CSeq: 2
WWW-Authenticate: Basic realm="/"

DESCRIBE rtsp://192.168.200.100/mpeg4/1/media.amp RTSP/1.0
CSeq: 3
Accept: application/sdp
Authorization: Basic cm9vdDpyb290
User-Agent: openrtsp (LIVE555 Streaming Media v2005.12.09)

RTSP/1.0 200 OK
CSeq: 3
Content-Base: rtsp://192.168.200.100:554/mpeg4/1/media.amp/
Content-Type: application/sdp
Content-Length: 684

v=0
o=- 1134559982766879 1134559982766889 IN IP4 192.168.200.100
s=Media Presentation
e=NONE
c=IN IP4 0.0.0.0
b=AS:8000
t=0 0
a=control:*
a=range:npt=now-
a=mpeg4-iod: 
"data:application/mpeg4-iod;base64,AoDUAE8BAf/1AQOAbwABQFBkYXRhOmFwcGxpY2F0aW9uL21wZWc0LW9kLWF1O2Jhc2U2NCxBUjBCR3dVZkF4Y0F5U1FBWlFRTklCRUVrK0FBZWhJQUFIb1NBQVlCQkE9PQQNAQUABAAAAAAAAAAAAAYJAQAAAAAAAAAAAzoAAkA2ZGF0YTphcHBsaWNhdGlvbi9tcGVnNC1iaWZzLWF1O2Jhc2U2NCx3QkFTWVFTSVVFVUZQd0E9BBICDQAAAgAAAAAAAAAABQMAAEAGCQEAAAAAAAAAAA=="
m=video 0 RTP/AVP 96
b=AS:8000
a=control:trackID=1
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 profile-level-id=245; 
config=000001B0F5000001B50900000100000001200088401928582120A21F;
a=mpeg4-esid:201

SETUP rtsp://192.168.200.100/mpeg4/1/media.amp/trackID=1 RTSP/1.0
CSeq: 4
Transport: RTP/AVP;multicast;client_port=2048-2049
Authorization: Basic cm9vdDpyb290
User-Agent: openrtsp (LIVE555 Streaming Media v2005.12.09)

RTSP/1.0 200 OK
CSeq: 4
Session: 0136415656;timeout=60
Transport: 
RTP/AVP;multicast;mode=play;destination=239.245.104.178;port=2048-2049;ttl=5

PLAY rtsp://192.168.200.100/mpeg4/1/media.amp RTSP/1.0
CSeq: 5
Session: 0136415656
Range: npt=0.000-
Authorization: Basic cm9vdDpyb290
User-Agent: openrtsp (LIVE555 Streaming Media v2005.12.09)

RTSP/1.0 200 OK
CSeq: 5
Session: 0136415656
Range: npt=now-
RTP-Info: url=trackID=1;seq=41506
--------------------------------------------------------------------------------------

Well, it would be great if you can check this to fix the problem.

Thank you very much for your support and congratulations for your product.

Regards,

Federico Ares 



More information about the live-devel mailing list