[streaming] REstricting RTP ports

Wang He-VHJ374 VHJ374 at motorola.com
Fri Oct 12 08:55:35 CEST 2007


Hi Vikal, Here is the RTSP protocol handshake and my comments embedded:
 
OPTIONS rtsp://10.193.50.53:554 RTSP/1.0
CSeq: 1
User-Agent: RealMedia Player (HelixDNAClient)/10.0.0.2587 (linux-2.2-libc6-gcc34-arm11)
GUID: 00000000-0000-0000-0000-000000000000
ClientID: Linux_2.6_10.0.0.2587_play32_RN01_EN_586
Pragma: initiate-session
ClientChallenge: 8627661ff04d870f9d0ad80b13b5faf1
CompanyID: ff6JTh9aXtzpgfbN5XRK3Q==
PlayerStarttime: [01/01/1970:04:31:25 00:00]
 
RTSP/1.0 200 OK
Server: DSS/5.5.4 (Build/489.13; Platform/Linux; Release/Darwin; )
Cseq: 1
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD
 
DESCRIBE rtsp://10.193.50.53:554/H264_AAC_60kbps.3gp RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: RealMedia Player (HelixDNAClient)/10.0.0.2587 (linux-2.2-libc6-gcc34-arm11)
Require: com.real.retain-entity-for-setup
Bandwidth: 10485800
GUID: 00000000-0000-0000-0000-000000000000
SupportsMaximumASMBandwidth: 1
 
RTSP/1.0 200 OK
Server: DSS/5.5.4 (Build/489.13; Platform/Linux; Release/Darwin; )
Cseq: 2
Last-Modified: Thu, 19 Apr 2007 13:50:08 GMT
Cache-Control: must-revalidate
Content-length: 827
Date: Fri, 20 Apr 2007 05:40:40 GMT
Expires: Fri, 20 Apr 2007 05:40:40 GMT
Content-Type: application/sdp
x-Accept-Retransmit: our-retransmit
x-Accept-Dynamic-Rate: 1
Content-Base: rtsp://10.193.50.53:554/H264_AAC_60kbps.3gp/
 
v=0
o=StreamingServer 3386036466 1176990608000 IN IP4 10.193.50.53
s=/H264_AAC_60kbps.3gp
u=http:///
e=admin@
c=IN IP4 0.0.0.0
t=0 0
t=0 0
a=control:*
a=range:npt:0-100.35200000
a=range:npt=0- 100.35200
m=video 0 RTP/AVP 96
b=AS:46
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=42E00A; sprop-parameter-sets=Z0LgCpZSBYnI,aM48gA==; packetization-mode=1
a=cliprect:0,0,144,176
a=mpeg4-esid:201
a=range:0-100.35199737
a=X-initpredecbufperiod:131193
a=X-predecbufsize:11000
a=X-initpostdecbufperiod:0
a=X-decbyterate:11000
a=x-envivio-verid:00035A23
a=control:trackID=65335
m=audio 0 RTP/AVP 97
b=AS:6
a=rtpmap:97 MP4A-LATM/12000/1
a=fmtp:97 profile-level-id=15; object=2; cpresent=0; config=400029103FC0
a=mpeg4-esid:101
a=range:0-100.35199737
a=x-envivio-verid:00035A23
a=control:trackID=65435
 
SETUP rtsp://10.193.50.53:554/H264_AAC_60kbps.3gp/trackID=65335 RTSP/1.0
CSeq: 3
Transport: RTP/AVP;UNICAST;client_port=6970-6971;mode=play
User-Agent: RealMedia Player (HelixDNAClient)/10.0.0.2587 (linux-2.2-libc6-gcc34-arm11)
 
[ After client gets DSS's SDP, he will try to SETUP the A/V connection for PLAY. ]
[ In SETUP command client describes his ports, you should modify the VLC's rtsp protocol module code for SETUP command construction. ]
[ In this example case, my client is realplayer, but the rtsp protocol is standard for VLC client. ]
 
RTSP/1.0 200 OK
Server: DSS/5.5.4 (Build/489.13; Platform/Linux; Release/Darwin; )
Cseq: 3
Last-Modified: Thu, 19 Apr 2007 13:50:08 GMT
Cache-Control: must-revalidate
Session: 1729760317244788463
Date: Fri, 20 Apr 2007 05:40:40 GMT
Expires: Fri, 20 Apr 2007 05:40:40 GMT
Transport: RTP/AVP;UNICAST;mode=play;source=10.193.50.53;client_port=6970-6971;server_port=6970-6971;ssrc=101B5FC8
 
SETUP rtsp://10.193.50.53:554/H264_AAC_60kbps.3gp/trackID=65435 RTSP/1.0
CSeq: 4
Transport: RTP/AVP;UNICAST;client_port=6972-6973;mode=play
User-Agent: RealMedia Player (HelixDNAClient)/10.0.0.2587 (linux-2.2-libc6-gcc34-arm11)
Session: 1729760317244788463
 
RTSP/1.0 200 OK
Server: DSS/5.5.4 (Build/489.13; Platform/Linux; Release/Darwin; )
Cseq: 4
Session: 1729760317244788463
Last-Modified: Thu, 19 Apr 2007 13:50:08 GMT
Cache-Control: must-revalidate
Date: Fri, 20 Apr 2007 05:40:40 GMT
Expires: Fri, 20 Apr 2007 05:40:40 GMT
Transport: RTP/AVP;UNICAST;mode=play;source=10.193.50.53;client_port=6972-6973;server_port=6970-6971;ssrc=01A3D949
 
PLAY rtsp://10.193.50.53:554/H264_AAC_60kbps.3gp/ RTSP/1.0
CSeq: 5
User-Agent: RealMedia Player (HelixDNAClient)/10.0.0.2587 (linux-2.2-libc6-gcc34-arm11)
Session: 1729760317244788463
Range: npt=0-100.352000
 
RTSP/1.0 200 OK
Server: DSS/5.5.4 (Build/489.13; Platform/Linux; Release/Darwin; )
Cseq: 5
Session: 1729760317244788463
Range: npt=0.00000-100.35201
RTP-Info: url=rtsp://10.193.50.53:554/H264_AAC_60kbps.3gp/trackID=65335;seq=8163;rtptime=691482838,url=rtsp://10.193.50.53:554/H264_AAC_60kbps.3gp/trackID=65435;seq=35880;rtptime=622213226
 
TEARDOWN rtsp://10.193.50.53:554/H264_AAC_60kbps.3gp/ RTSP/1.0
CSeq: 6
User-Agent: RealMedia Player (HelixDNAClient)/10.0.0.2587 (linux-2.2-libc6-gcc34-arm11)
Session: 1729760317244788463
 
RTSP/1.0 200 OK
Server: DSS/5.5.4 (Build/489.13; Platform/Linux; Release/Darwin; )
Cseq: 6
Session: 1729760317244788463
Connection: Close
 
He
 
[X] Public
[ ] Internal 
[ ] Motorola Confidential Restricted
 


________________________________

From: streaming-bounces at videolan.org [mailto:streaming-bounces at videolan.org] On Behalf Of Vikal Kumar Jain
Sent: 2007年10月12日 14:00
To: streaming at videolan.org
Subject: [streaming] REstricting RTP ports



I am trying to connect VLC player to Darwin Streaming Server using RTSP. I would like to restrict UDP ports it used to receive the audio/video data to overcome NAT issues. I could see it using different ports every time I make a new connection. 

 

May I if it is possible to restrict the range of ports the VLC uses to receive RTP data?

 

Regards,

Vikal.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.videolan.org/pipermail/streaming/attachments/20071012/486d1b21/attachment.htm 


More information about the streaming mailing list