- 论坛徽章:
- 0
|
30可用积分
RTSP Client:VLC+Live555的RTSP库
RTSP Server:DarwinStreamingServer(由第三方作过改动)
交互信息如下:- CSeq: 1
- Accept: application/sdp
- User-Agent: (v2008.07.24)
- Received DESCRIBE response: RTSP/1.0 200 OK
- Server: DSS/5.0.3.2 (Build/452.22.3; Platform/Linux; Release/Panther; Update/3GPP; )
- CSeq: 1
- Last-Modified: Tue,8 Jun 2010 09:45:52 GMT
- Cache-Control: must-revalidate
- Content-length: 1166
- Date: Tue,8 Jun 2010 09:45:52 GMT
- Expires: Tue,8 Jun 2010 09:45:52 GMT
- Content-Type: application/sdp
- x-Accept-Retransmit: our-retransmit
- x-Accept-Dynamic-Rate: 1
- Content-Base: rtsp://58.196.13.15/sitv/10084_E001070600002361.mp4/
- Need to read 1166 extra bytes
- Read 1166 extra bytes: v=0
- o=StreamingServer 3330517155 1118784660000 IN IP4 58.196.13.15
- s=/10084_E001070600002361.mp4
- u=http:///
- e=admin@
- c=IN IP4 0.0.0.0
- t=0 0
- a=control:*
- a=mpeg4-iod:"data:application/mpeg4-iod;base64,AoIvAE/+AQ/zAQOBQgABQKRkYXRhOmFwcGxpY2F0aW9uL21wZWc0LW9kLWF1O2Jhc2U2NCxBVjRCUFFVZkF6a0F5U0FBWlFRdklCRVVVQUFBS0tBQUFCUlFBQVVnQUFBQnNDSUFBQUcxRHFDZ29LQUFBQUVBQUFBQklBQ0VRUHdvb0NGYW93QUdBUVFCSFFLZkF4a0FaUUFFRVVBVkFBWUFBQU1BQUFBQmdBQUZBaElRQmdFRAQNAQUACCEAAAAAAAAAAAYJAQAAAAAAAAAAA2EAAkA+ZGF0YTphcHBsaWNhdGlvbi9tcGVnNC1iaWZzLWF1O2Jhc2U2NCx3QkFTZ1RBcUJYSmhCSWhRUlFVL0FBPT0EEgINAAAUAAAAAAAAAAAFAwAAQAYJAQAAAAAAAAAA"
- a=ISMA-compliance:1,1,1
- a=range:npt=0-5165.000
- m=audio 0 RTP/AVP 97
- a=rtpmap:97 mpeg4-generic/44100/2
- a=mpeg2-AudioPID:482
- a=fmtp:97 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1210; SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1
- a=mpeg4-esid:101
- a=x-envivio-verid:00001029
- a=control:trackID=1
- m=video 0 RTP/AVP 96
- a=rtpmap:96 MP4V-ES/1008
- a=fmtp:96 profile-level-id=243; config=000001B022000001B50EA0A0A0A00000010000000120008440FC28A0215AA300
- a=mpeg4-esid:201
- a=x-envivio-verid:0000102e
- a=control:trackID=2
- [0x9b0f470] live555 demux debug: RTP subsession 'audio/MPEG4-GENERIC'
- Sending request: SETUP rtsp://58.196.13.15/sitv/10084_E001070600002361.mp4/trackID=1 RTSP/1.0
- CSeq: 2
- Transport: MP2T/UDP;unicast;destination=172.20.32.198;client_port=37668-37669,MP2T/RTP/UDP;unicast;destination=172.20.32.198;client_port=37668-37669,MP2T/TCP;unicast;destination=172.20.32.198;interleaved=0-1,MP2T/RTP/TCP;unicast;destination=172.20.32.198;interleaved=0-1
- User-Agent: (v2008.07.24)
- Received SETUP response: RTSP/1.0 200 OK
- Server: DSS/5.0.3.2 (Build/452.22.3; Platform/Linux; Release/Panther; Update/3GPP; )
- CSeq: 2
- Last-Modified: Tue,8 Jun 2010 09:45:52 GMT
- Cache-Control: must-revalidat
- Session: 12340005
- Date: Tue,8 Jun 2010 09:45:52 GMT
- Expires: Tue,8 Jun 2010 09:45:52 GMT
- Transport: MP2T/UDP;unicast;client_port=37668-37669;server_port=8889-8890;ssrc=12345677;mode=PLAY
- [0xb7300e88] main input debug: selecting program id=0
- [0x9b0f470] live555 demux debug: RTP subsession 'video/MP4V-ES'
- Sending request: SETUP rtsp://58.196.13.15/sitv/10084_E001070600002361.mp4/trackID=2 RTSP/1.0
- CSeq: 3
- Transport: MP2T/UDP;unicast;destination=172.20.32.198;client_port=47060-47061,MP2T/RTP/UDP;unicast;destination=172.20.32.198;client_port=47060-47061,MP2T/TCP;unicast;destination=172.20.32.198;interleaved=0-1,MP2T/RTP/TCP;unicast;destination=172.20.32.198;interleaved=0-1
- Session: 12340005
- User-Agent: (v2008.07.24)
- Received SETUP response: RTSP/1.0 200 OK
- Server: DSS/5.0.3.2 (Build/452.22.3; Platform/Linux; Release/Panther; Update/3GPP; )
- CSeq: 3
- Last-Modified: Tue,8 Jun 2010 09:45:52 GMT
- Cache-Control: must-revalidat
- Session: 12340005
- Date: Tue,8 Jun 2010 09:45:52 GMT
- Expires: Tue,8 Jun 2010 09:45:52 GMT
- Transport: MP2T/UDP;unicast;client_port=47060-47061;server_port=8889-8890;ssrc=12345678;mode=PLAY
- [0x9b0f470] live555 demux debug: setup start: 0.000000 stop:5165.000000
- Sending request: PLAY rtsp://58.196.13.15/sitv/10084_E001070600002361.mp4/ RTSP/1.0
- CSeq: 4
- Session: 12340005
- Scale: 1.000000
- Range: npt=now-
- User-Agent: (v2008.07.24)
- [0x98e3050] qt4 interface debug: IM: Setting an input
- [0x98e3050] qt4 interface debug: Updating the geometry
- [0x98e3050] qt4 interface debug: Updating the geometry
- Received PLAY response: RTSP/1.0 200 OK
- Server: DSS/5.0.3.2 (Build/452.22.3; Platform/Linux; Release/Panther; Update/3GPP; )
- CSeq: 4
- Session: 12340005
- Scale: 1.000000
- [0x9b0f470] live555 demux debug: play start: 0.000000 stop:5165.000000
- [0x9b0f470] main demux debug: using access_demux module "live555"
- [0x9b0f470] main demux debug: TIMER module_need() : 1110.356 ms - Total 1110.356 ms / 1 intvls (Avg 1110.356 ms)
- [0x99f0380] main decoder debug: looking for decoder module: 56 candidates
- [0x99f0380] main decoder debug: using decoder module "faad"
- [0x99f0380] main decoder debug: TIMER module_need() : 7.720 ms - Total 7.720 ms / 1 intvls (Avg 7.720 ms)
- [0x99f0380] main decoder debug: thread (decoder) created at priority 5 (input/decoder.c:315)
- [0x99f0380] main decoder debug: thread started
- [0x9b42e90] main decoder debug: looking for decoder module: 56 candidates
- [0x9b42e90] avcodec decoder debug: libavcodec initialized (interface 0x344200)
- [0x9b42e90] avcodec decoder debug: using direct rendering
- [0x98e3050] qt4 interface debug: Updating the geometry
- [0x9b42e90] avcodec decoder debug: ffmpeg codec (MPEG-4 Video) started
- [0x9b42e90] main decoder debug: using decoder module "avcodec"
- [0x9b42e90] main decoder debug: TIMER module_need() : 18.044 ms - Total 18.044 ms / 1 intvls (Avg 18.044 ms)
- [0x9b42e90] main decoder debug: thread (decoder) created at priority 0 (input/decoder.c:315)
- [0x9b42e90] main decoder debug: thread started
- [0xb7300e88] main input debug: `rtsp://58.196.13.15/sitv/10084_E001070600002361.mp4' successfully opened
- [0x98e3050] qt4 interface debug: Updating the geometry
- [0x98e3050] qt4 interface debug: Updating the geometry
- [0x98e3050] qt4 interface debug: Updating the geometry
- [0x9b0f470] live555 demux warning: no data received in 10s. Switching to TCP
- [0x99f0380] main decoder debug: removing module "faad"
- [0x99f0380] main decoder debug: killing decoder fourcc `mp4a', 0 PES in FIFO
- [0x98e3050] qt4 interface debug: Updating the geometry
- [0x9b42e90] avcodec decoder debug: ffmpeg codec (MPEG-4 Video) stopped
- [0x98e3050] qt4 interface debug: Updating the geometry
- [0x9b42e90] main decoder debug: removing module "avcodec"
- [0x9b42e90] main decoder debug: killing decoder fourcc `mp4v', 0 PES in FIFO
- [0xb7300e88] main input debug: Program doesn't contain anymore ES
- Sending request: TEARDOWN rtsp://58.196.13.15/sitv/10084_E001070600002361.mp4/ RTSP/1.0
- CSeq: 5
- Session: 12340005
- User-Agent: (v2008.07.24)
- [0x98e3050] qt4 interface debug: Updating the geometry
- [0x98e3050] qt4 interface debug: Updating the geometry
- Received TEARDOWN response: RTSP/1.0 200 OK
- Server: DSS/5.0.3.2 (Build/452.22.3; Platform/Linux; Release/Panther; Update/3GPP; )
- CSeq: 5
- Session: 12340005
- Date: Tue,8 Jun 2010 09:46:04 GMT
- Connection: Close
复制代码 整个过程用Wireshark抓包,在RTSP PLAY后,显示有IP数据流过来,10秒后又被cut掉,然后又用rtsp over tcp的方式又交互了一次,最后失败,VLC无法完成播放。
请高人指点指点,谢谢! |
最佳答案
查看完整内容
这个提示应该是 udp 协议栈自己的信息,当它发现没有程序 listen 这个请求的 port 的时候便返回这种 icmp 信息了
|