[Live-devel] rtsp and keeping alive connection with rtcp packets

M&Ms M&Ms aimnms at hotmail.com
Wed Jun 4 23:35:38 PDT 2008


> >Why doesn't live555 sends this type of packet to keep the connection alive ?
> 
> It does.  I don't know why your camera would not be receiving these packets.

Well, in my case it doesn't, because I looked at network traffic with wireshark, and my computer sends nothing after the play request during 60sec... It sends a teardown request after receiving the good bye message from the camera.

Here is the output, thank you :

Sending request: OPTIONS rtsp://192.43.185.21/mpeg4/media.amp RTSP/1.0
CSeq: 1
User-Agent: ./openRTSP (LIVE555 Streaming Media v2008.05.12)


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


Sending request: DESCRIBE rtsp://192.43.185.21/mpeg4/media.amp RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: ./openRTSP (LIVE555 Streaming Media v2008.05.12)


Received DESCRIBE response: RTSP/1.0 200 OK
CSeq: 2
Content-Base: rtsp://192.43.185.21:554/mpeg4/media.amp/
Content-Type: application/sdp
Content-Length: 698


Need to read 698 extra bytes
Read 698 extra bytes: v=0
o=- 1212654651141785 1212654651141798 IN IP4 192.43.185.21
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=framerate:30.0
a=control:trackID=1
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 profile-level-id=245; config=000001B0F5000001B509000001000000012000844019285020F0A21F
a=mpeg4-esid:201

Opened URL "rtsp://192.43.185.21/mpeg4/media.amp", returning a SDP description:
v=0
o=- 1212654651141785 1212654651141798 IN IP4 192.43.185.21
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=framerate:30.0
a=control:trackID=1
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 profile-level-id=245; config=000001B0F5000001B509000001000000012000844019285020F0A21F
a=mpeg4-esid:201

Created receiver for "video/MP4V-ES" subsession (client ports 42658-42659)
Sending request: SETUP rtsp://192.43.185.21:554/mpeg4/media.amp/trackID=1 RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=42658-42659
User-Agent: ./openRTSP (LIVE555 Streaming Media v2008.05.12)


Received SETUP response: RTSP/1.0 200 OK
CSeq: 3
Session: 1375681847;timeout=60
Transport: RTP/AVP;unicast;client_port=42658-42659;server_port=50996-50997;ssrc=7F99326A;mode="PLAY"


Setup "video/MP4V-ES" subsession (client ports 42658-42659)
Created output file: "video-MP4V-ES-1"
Sending request: PLAY rtsp://192.43.185.21:554/mpeg4/media.amp/ RTSP/1.0
CSeq: 4
Session: 1375681847
Range: npt=0.000-0.000
User-Agent: ./openRTSP (LIVE555 Streaming Media v2008.05.12)


Received PLAY response: RTSP/1.0 200 OK
CSeq: 4
Session: 1375681847
Range: npt=now-
RTP-Info: url=trackID=1;seq=44200;rtptime=4102929997


Started playing session
Receiving streamed data (signal with "kill -HUP 6324" or "kill -USR1 6324" to terminate)...
Received RTCP "BYE" on "video/MP4V-ES" subsession (after 60 seconds)
Sending request: TEARDOWN rtsp://192.43.185.21:554/mpeg4/media.amp/ RTSP/1.0
CSeq: 5
Session: 1375681847
User-Agent: ./openRTSP (LIVE555 Streaming Media v2008.05.12)


_________________________________________________________________
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080605/8a36fa5e/attachment.html>


More information about the live-devel mailing list