加载中…
个人资料
microcreater
microcreater
  • 博客等级:
  • 博客积分:0
  • 博客访问:27,173
  • 关注人气:3
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
相关博文
推荐博文
谁看过这篇博文
加载中…
正文 字体大小:

live555 ubuntu下面验证服务端和客户端

(2012-12-25 22:34:31)
标签:

live555

rtsp

linux

ubuntu

it

分类: 视频

一,开2个终端,一个终端打开RTSP服务器端:

root@microcreat:/workdir/live/mediaServer# ./live555MediaServer
LIVE555 Media Server
 version 0.76 (LIVE555 Streaming Media library version 2012.12.24).
Play streams from this server using the URL
 rtsp://192.168.1.240/
where is a file present in the current directory.
Each file's type is inferred from its name suffix:
 ".264" => a H.264 Video Elementary Stream file
 ".aac" => an AAC Audio (ADTS format) file
 ".ac3" => an AC-3 Audio file
 ".amr" => an AMR Audio file
 ".dv" => a DV Video file
 ".m4e" => a MPEG-4 Video Elementary Stream file
 ".mkv" => a Matroska audio+video+(optional)subtitles file
 ".mp3" => a MPEG-1 or 2 Audio file
 ".mpg" => a MPEG-1 or 2 Program Stream (audio+video) file
 ".ts" => a MPEG Transport Stream file
  (a ".tsx" index file - if present - provides server 'trick play' support)
 ".wav" => a WAV Audio file
 ".webm" => a WebM audio(Vorbis)+video(VP8) file
See http://www.live555.com/mediaServer/ for additional documentation.
(We use port 8000 for optional RTSP-over-HTTP tunneling, or for HTTP live streaming (for indexed Transport Stream files only).)
二,另外一个终端打开RTSP的客户端

root@microcreat:/workdir/live/testProgs# ./testRTSPClient rtsp://192.168.1.240/in.264
Opening connection to 192.168.1.240, port 554...
...remote connection opened
Sending request: DESCRIBE rtsp://192.168.1.240/in.264 RTSP/1.0
CSeq: 2
User-Agent: ./testRTSPClient (LIVE555 Streaming Media v2012.12.24)
Accept: application/sdp


Received 654 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 2
Date: Tue, Dec 25 2012 14:32:38 GMT
Content-Base: rtsp://192.168.1.240/in.264/
Content-Type: application/sdp
Content-Length: 493

v=0
o=- 1356445910605434 1 IN IP4 192.168.1.240
s=H.264 Video, streamed by the LIVE555 Media Server
i=in.264
t=0 0
a=tool:LIVE555 Streaming Media v2012.12.24
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:H.264 Video, streamed by the LIVE555 Media Server
a=x-qt-text-inf:in.264
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=42001E;sprop-parameter-sets=Z0IAHpWoLQSZ,aFOPIA==
a=control:track1

[URL:"rtsp://192.168.1.240/in.264/"]: Got a SDP description:
v=0
o=- 1356445910605434 1 IN IP4 192.168.1.240
s=H.264 Video, streamed by the LIVE555 Media Server
i=in.264
t=0 0
a=tool:LIVE555 Streaming Media v2012.12.24
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:H.264 Video, streamed by the LIVE555 Media Server
a=x-qt-text-inf:in.264
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=42001E;sprop-parameter-sets=Z0IAHpWoLQSZ,aFOPIA==
a=control:track1

[URL:"rtsp://192.168.1.240/in.264/"]: Initiated the "video/H264" subsession (client ports 36818-36819)
Sending request: SETUP rtsp://192.168.1.240/in.264/track1 RTSP/1.0
CSeq: 3
User-Agent: ./testRTSPClient (LIVE555 Streaming Media v2012.12.24)
Transport: RTP/AVP;unicast;client_port=36818-36819


Received 205 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 3
Date: Tue, Dec 25 2012 14:32:38 GMT
Transport: RTP/AVP;unicast;destination=192.168.1.240;source=192.168.1.240;client_port=36818-36819;server_port=6970-6971
Session: 965AEC11


[URL:"rtsp://192.168.1.240/in.264/"]: Set up the "video/H264" subsession (client ports 36818-36819)
[URL:"rtsp://192.168.1.240/in.264/"]: Created a data sink for the "video/H264" subsession
Sending request: PLAY rtsp://192.168.1.240/in.264/ RTSP/1.0
CSeq: 4
User-Agent: ./testRTSPClient (LIVE555 Streaming Media v2012.12.24)
Session: 965AEC11
Range: npt=0.000-


Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9 bytes. Presentation time: 1356445958.586793!
Received 181 new bytes of response data.
Received a complete PLAY response:
RTSP/1.0 200 OK
CSeq: 4
Date: Tue, Dec 25 2012 14:32:38 GMT
Range: npt=0.000-
Session: 965AEC11
RTP-Info: url=rtsp://192.168.1.240/in.264/track1;seq=28229;rtptime=624074368


[URL:"rtsp://192.168.1.240/in.264/"]: Started playing session...
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445958.586793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445958.586793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 5 bytes. Presentation time: 1356445958.586793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 73606 bytes. Presentation time: 1356445958.586793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 20896 bytes. Presentation time: 1356445958.626793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 10096 bytes. Presentation time: 1356445958.666793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 6012 bytes. Presentation time: 1356445958.706793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7037 bytes. Presentation time: 1356445958.746793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7303 bytes. Presentation time: 1356445958.786793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 6563 bytes. Presentation time: 1356445958.826793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 6413 bytes. Presentation time: 1356445958.866793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8777 bytes. Presentation time: 1356445958.906793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 6077 bytes. Presentation time: 1356445958.946793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 6490 bytes. Presentation time: 1356445958.986793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 6368 bytes. Presentation time: 1356445959.026793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9165 bytes. Presentation time: 1356445959.066793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 6315 bytes. Presentation time: 1356445959.106793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9359 bytes. Presentation time: 1356445959.146793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 6103 bytes. Presentation time: 1356445959.186793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 6953 bytes. Presentation time: 1356445959.226793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 6107 bytes. Presentation time: 1356445959.266793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8426 bytes. Presentation time: 1356445959.306793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7278 bytes. Presentation time: 1356445959.346793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7992 bytes. Presentation time: 1356445959.386793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7184 bytes. Presentation time: 1356445959.426793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 6308 bytes. Presentation time: 1356445959.466793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9113 bytes. Presentation time: 1356445959.506793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7965 bytes. Presentation time: 1356445959.546793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9 bytes. Presentation time: 1356445959.586793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445959.586793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445959.586793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 5 bytes. Presentation time: 1356445959.586793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 58779 bytes. Presentation time: 1356445959.586793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7087 bytes. Presentation time: 1356445959.626793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9426 bytes. Presentation time: 1356445959.666793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8415 bytes. Presentation time: 1356445959.706793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8255 bytes. Presentation time: 1356445959.746793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8361 bytes. Presentation time: 1356445959.786793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8384 bytes. Presentation time: 1356445959.826793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8305 bytes. Presentation time: 1356445959.866793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8535 bytes. Presentation time: 1356445959.906793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8846 bytes. Presentation time: 1356445959.946793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9046 bytes. Presentation time: 1356445959.986793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8784 bytes. Presentation time: 1356445960.026793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8957 bytes. Presentation time: 1356445960.066793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7150 bytes. Presentation time: 1356445960.106793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9493 bytes. Presentation time: 1356445960.146793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7137 bytes. Presentation time: 1356445960.186793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7534 bytes. Presentation time: 1356445960.226793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7375 bytes. Presentation time: 1356445960.266793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7351 bytes. Presentation time: 1356445960.306793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7314 bytes. Presentation time: 1356445960.346793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7002 bytes. Presentation time: 1356445960.386793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7349 bytes. Presentation time: 1356445960.426793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7682 bytes. Presentation time: 1356445960.466793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7739 bytes. Presentation time: 1356445960.506793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7829 bytes. Presentation time: 1356445960.546793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9 bytes. Presentation time: 1356445960.586793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445960.586793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445960.586793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 5 bytes. Presentation time: 1356445960.586793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 58983 bytes. Presentation time: 1356445960.586793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9815 bytes. Presentation time: 1356445960.626793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 10326 bytes. Presentation time: 1356445960.666793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 10155 bytes. Presentation time: 1356445960.706793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9882 bytes. Presentation time: 1356445960.746793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7995 bytes. Presentation time: 1356445960.786793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8567 bytes. Presentation time: 1356445960.826793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8629 bytes. Presentation time: 1356445960.866793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8649 bytes. Presentation time: 1356445960.906793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8601 bytes. Presentation time: 1356445960.946793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8479 bytes. Presentation time: 1356445960.986793!
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8178 bytes. Presentation time: 1356445961.025706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7689 bytes. Presentation time: 1356445961.065706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7524 bytes. Presentation time: 1356445961.105706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7344 bytes. Presentation time: 1356445961.145706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 6883 bytes. Presentation time: 1356445961.185706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7151 bytes. Presentation time: 1356445961.225706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7356 bytes. Presentation time: 1356445961.265706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7591 bytes. Presentation time: 1356445961.305706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7706 bytes. Presentation time: 1356445961.345706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7797 bytes. Presentation time: 1356445961.385706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8070 bytes. Presentation time: 1356445961.425706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7994 bytes. Presentation time: 1356445961.465706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8215 bytes. Presentation time: 1356445961.505706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8275 bytes. Presentation time: 1356445961.545706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9 bytes. Presentation time: 1356445961.585706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445961.585706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445961.585706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 5 bytes. Presentation time: 1356445961.585706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 53927 bytes. Presentation time: 1356445961.585706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8926 bytes. Presentation time: 1356445961.625706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9270 bytes. Presentation time: 1356445961.665706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9182 bytes. Presentation time: 1356445961.705706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9047 bytes. Presentation time: 1356445961.745706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8869 bytes. Presentation time: 1356445961.785706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8908 bytes. Presentation time: 1356445961.825706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8604 bytes. Presentation time: 1356445961.865706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8227 bytes. Presentation time: 1356445961.905706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8102 bytes. Presentation time: 1356445961.945706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7739 bytes. Presentation time: 1356445961.985706
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7103 bytes. Presentation time: 1356445962.025694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7013 bytes. Presentation time: 1356445962.065694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7331 bytes. Presentation time: 1356445962.105694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7469 bytes. Presentation time: 1356445962.145694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7394 bytes. Presentation time: 1356445962.185694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7626 bytes. Presentation time: 1356445962.225694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7561 bytes. Presentation time: 1356445962.265694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7783 bytes. Presentation time: 1356445962.305694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7777 bytes. Presentation time: 1356445962.345694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7751 bytes. Presentation time: 1356445962.385694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7680 bytes. Presentation time: 1356445962.425694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7915 bytes. Presentation time: 1356445962.465694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8002 bytes. Presentation time: 1356445962.505694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8136 bytes. Presentation time: 1356445962.545694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9 bytes. Presentation time: 1356445962.585694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445962.585694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445962.585694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 5 bytes. Presentation time: 1356445962.585694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 58471 bytes. Presentation time: 1356445962.585694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9420 bytes. Presentation time: 1356445962.625694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9805 bytes. Presentation time: 1356445962.665694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9294 bytes. Presentation time: 1356445962.705694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9208 bytes. Presentation time: 1356445962.745694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9271 bytes. Presentation time: 1356445962.785694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8780 bytes. Presentation time: 1356445962.825694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8748 bytes. Presentation time: 1356445962.865694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8501 bytes. Presentation time: 1356445962.905694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8266 bytes. Presentation time: 1356445962.945694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8685 bytes. Presentation time: 1356445962.985694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8821 bytes. Presentation time: 1356445963.025694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8869 bytes. Presentation time: 1356445963.065694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9137 bytes. Presentation time: 1356445963.105694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9095 bytes. Presentation time: 1356445963.145694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9453 bytes. Presentation time: 1356445963.185694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9522 bytes. Presentation time: 1356445963.225694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9544 bytes. Presentation time: 1356445963.265694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9562 bytes. Presentation time: 1356445963.305694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7719 bytes. Presentation time: 1356445963.345694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8502 bytes. Presentation time: 1356445963.385694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8477 bytes. Presentation time: 1356445963.425694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8852 bytes. Presentation time: 1356445963.465694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9018 bytes. Presentation time: 1356445963.505694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8839 bytes. Presentation time: 1356445963.545694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9 bytes. Presentation time: 1356445963.585694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445963.585694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445963.585694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 5 bytes. Presentation time: 1356445963.585694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 54236 bytes. Presentation time: 1356445963.585694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9238 bytes. Presentation time: 1356445963.625694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 10242 bytes. Presentation time: 1356445963.665694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9361 bytes. Presentation time: 1356445963.705694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8704 bytes. Presentation time: 1356445963.745694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9057 bytes. Presentation time: 1356445963.785694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8517 bytes. Presentation time: 1356445963.825694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8487 bytes. Presentation time: 1356445963.865694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8140 bytes. Presentation time: 1356445963.905694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8432 bytes. Presentation time: 1356445963.945694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8617 bytes. Presentation time: 1356445963.985694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8588 bytes. Presentation time: 1356445964.025694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8596 bytes. Presentation time: 1356445964.065694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8383 bytes. Presentation time: 1356445964.105694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8792 bytes. Presentation time: 1356445964.145694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8549 bytes. Presentation time: 1356445964.185694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8590 bytes. Presentation time: 1356445964.225694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8687 bytes. Presentation time: 1356445964.265694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8651 bytes. Presentation time: 1356445964.305694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8391 bytes. Presentation time: 1356445964.345694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8535 bytes. Presentation time: 1356445964.385694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8658 bytes. Presentation time: 1356445964.425694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8452 bytes. Presentation time: 1356445964.465694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8385 bytes. Presentation time: 1356445964.505694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8376 bytes. Presentation time: 1356445964.545694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9 bytes. Presentation time: 1356445964.585694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445964.585694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445964.585694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 5 bytes. Presentation time: 1356445964.585694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 53560 bytes. Presentation time: 1356445964.585694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8566 bytes. Presentation time: 1356445964.625694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9021 bytes. Presentation time: 1356445964.665694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8889 bytes. Presentation time: 1356445964.705694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8512 bytes. Presentation time: 1356445964.745694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8393 bytes. Presentation time: 1356445964.785694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8071 bytes. Presentation time: 1356445964.825694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7651 bytes. Presentation time: 1356445964.865694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7446 bytes. Presentation time: 1356445964.905694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7620 bytes. Presentation time: 1356445964.945694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7660 bytes. Presentation time: 1356445964.985694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7891 bytes. Presentation time: 1356445965.025694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7798 bytes. Presentation time: 1356445965.065694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7857 bytes. Presentation time: 1356445965.105694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8134 bytes. Presentation time: 1356445965.145694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8260 bytes. Presentation time: 1356445965.185694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8254 bytes. Presentation time: 1356445965.225694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8204 bytes. Presentation time: 1356445965.265694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7965 bytes. Presentation time: 1356445965.305694
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8116 bytes. Presentation time: 1356445965.345682
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8203 bytes. Presentation time: 1356445965.385682
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8243 bytes. Presentation time: 1356445965.425682
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7998 bytes. Presentation time: 1356445965.465682
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8265 bytes. Presentation time: 1356445965.505682
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8411 bytes. Presentation time: 1356445965.545682
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9 bytes. Presentation time: 1356445965.585682
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445965.585682
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445965.585682
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 5 bytes. Presentation time: 1356445965.585682
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 58959 bytes. Presentation time: 1356445965.585682
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9502 bytes. Presentation time: 1356445965.625684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9753 bytes. Presentation time: 1356445965.665684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9211 bytes. Presentation time: 1356445965.705684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8535 bytes. Presentation time: 1356445965.745684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8427 bytes. Presentation time: 1356445965.785684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8030 bytes. Presentation time: 1356445965.825684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7879 bytes. Presentation time: 1356445965.865684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8264 bytes. Presentation time: 1356445965.905684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8657 bytes. Presentation time: 1356445965.945684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9308 bytes. Presentation time: 1356445965.985684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9381 bytes. Presentation time: 1356445966.025684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9391 bytes. Presentation time: 1356445966.065684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9351 bytes. Presentation time: 1356445966.105684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7594 bytes. Presentation time: 1356445966.145684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8002 bytes. Presentation time: 1356445966.185684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8265 bytes. Presentation time: 1356445966.225684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8221 bytes. Presentation time: 1356445966.265684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8613 bytes. Presentation time: 1356445966.305684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8648 bytes. Presentation time: 1356445966.345684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8799 bytes. Presentation time: 1356445966.385684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 5878 bytes. Presentation time: 1356445966.425684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 6225 bytes. Presentation time: 1356445966.465684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 6363 bytes. Presentation time: 1356445966.505684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 6205 bytes. Presentation time: 1356445966.545684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9 bytes. Presentation time: 1356445966.585684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445966.585684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445966.585684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 5 bytes. Presentation time: 1356445966.585684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 49532 bytes. Presentation time: 1356445966.585684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9921 bytes. Presentation time: 1356445966.625684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9207 bytes. Presentation time: 1356445966.665684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8473 bytes. Presentation time: 1356445966.705684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7982 bytes. Presentation time: 1356445966.745684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7737 bytes. Presentation time: 1356445966.785684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7436 bytes. Presentation time: 1356445966.825684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7213 bytes. Presentation time: 1356445966.865684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7098 bytes. Presentation time: 1356445966.905684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7447 bytes. Presentation time: 1356445966.945684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7482 bytes. Presentation time: 1356445966.985684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9873 bytes. Presentation time: 1356445967.025684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 10070 bytes. Presentation time: 1356445967.065684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 10505 bytes. Presentation time: 1356445967.105684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 12024 bytes. Presentation time: 1356445967.145684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 11831 bytes. Presentation time: 1356445967.185684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 10324 bytes. Presentation time: 1356445967.225684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 10488 bytes. Presentation time: 1356445967.265684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 7898 bytes. Presentation time: 1356445967.305684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8297 bytes. Presentation time: 1356445967.345684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8300 bytes. Presentation time: 1356445967.385684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8294 bytes. Presentation time: 1356445967.425684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8273 bytes. Presentation time: 1356445967.465684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9198 bytes. Presentation time: 1356445967.505684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 8847 bytes. Presentation time: 1356445967.545684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 9 bytes. Presentation time: 1356445967.585684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445967.585684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 4 bytes. Presentation time: 1356445967.585684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 5 bytes. Presentation time: 1356445967.585684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 49786 bytes. Presentation time: 1356445967.585684
Stream "rtsp://192.168.1.240/in.264/"; video/H264: Received 10091 bytes. Presentation time: 1356445967.625684
[URL:"rtsp://192.168.1.240/in.264/"]: Received RTCP "BYE" on "video/H264" subsession
[URL:"rtsp://192.168.1.240/in.264/"]: Closing the stream.
root@microcreat:/workdir/live/testProgs#

三,测试openRTSP

root@microcreat:/workdir/live/testProgs# ./openRTSP rtsp://192.168.1.240/in.264
Opening connection to 192.168.1.240, port 554...
...remote connection opened
Sending request: OPTIONS rtsp://192.168.1.240/in.264 RTSP/1.0
CSeq: 2
User-Agent: ./openRTSP (LIVE555 Streaming Media v2012.12.24)


Received 152 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 2
Date: Tue, Dec 25 2012 14:38:10 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER


Sending request: DESCRIBE rtsp://192.168.1.240/in.264 RTSP/1.0
CSeq: 3
User-Agent: ./openRTSP (LIVE555 Streaming Media v2012.12.24)
Accept: application/sdp


Received 654 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 3
Date: Tue, Dec 25 2012 14:38:10 GMT
Content-Base: rtsp://192.168.1.240/in.264/
Content-Type: application/sdp
Content-Length: 493

v=0
o=- 1356445910605434 1 IN IP4 192.168.1.240
s=H.264 Video, streamed by the LIVE555 Media Server
i=in.264
t=0 0
a=tool:LIVE555 Streaming Media v2012.12.24
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:H.264 Video, streamed by the LIVE555 Media Server
a=x-qt-text-inf:in.264
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=42001E;sprop-parameter-sets=Z0IAHpWoLQSZ,aFOPIA==
a=control:track1

Opened URL "rtsp://192.168.1.240/in.264", returning a SDP description:
v=0
o=- 1356445910605434 1 IN IP4 192.168.1.240
s=H.264 Video, streamed by the LIVE555 Media Server
i=in.264
t=0 0
a=tool:LIVE555 Streaming Media v2012.12.24
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:H.264 Video, streamed by the LIVE555 Media Server
a=x-qt-text-inf:in.264
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=42001E;sprop-parameter-sets=Z0IAHpWoLQSZ,aFOPIA==
a=control:track1

Created receiver for "video/H264" subsession (client ports 60252-60253)
Sending request: SETUP rtsp://192.168.1.240/in.264/track1 RTSP/1.0
CSeq: 4
User-Agent: ./openRTSP (LIVE555 Streaming Media v2012.12.24)
Transport: RTP/AVP;unicast;client_port=60252-60253


Received 205 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 4
Date: Tue, Dec 25 2012 14:38:10 GMT
Transport: RTP/AVP;unicast;destination=192.168.1.240;source=192.168.1.240;client_port=60252-60253;server_port=6970-6971
Session: C9540135


Setup "video/H264" subsession (client ports 60252-60253)
Created output file: "video-H264-1"
Sending request: PLAY rtsp://192.168.1.240/in.264/ RTSP/1.0
CSeq: 5
User-Agent: ./openRTSP (LIVE555 Streaming Media v2012.12.24)
Session: C9540135
Range: npt=0.000-


Received 182 new bytes of response data.
Received a complete PLAY response:
RTSP/1.0 200 OK
CSeq: 5
Date: Tue, Dec 25 2012 14:38:10 GMT
Range: npt=0.000-
Session: C9540135
RTP-Info: url=rtsp://192.168.1.240/in.264/track1;seq=39944;rtptime=3470062411


Started playing session
Receiving streamed data (signal with "kill -HUP 3806" or "kill -USR1 3806" to terminate)...
Received RTCP "BYE" on "video/H264" subsession (after 9 seconds)
Sending request: TEARDOWN rtsp://192.168.1.240/in.264/ RTSP/1.0
CSeq: 6
User-Agent: ./openRTSP (LIVE555 Streaming Media v2012.12.24)
Session: C9540135


Received 65 new bytes of response data.
Received a complete TEARDOWN response:
RTSP/1.0 200 OK
CSeq: 6
Date: Tue, Dec 25 2012 14:38:19 GMT


root@microcreat:/workdir/live/testProgs#

0

阅读 评论 收藏 转载 喜欢 打印举报/Report
  • 评论加载中,请稍候...
发评论

    发评论

    以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

      

    新浪BLOG意见反馈留言板 电话:4000520066 提示音后按1键(按当地市话标准计费) 欢迎批评指正

    新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 会员注册 | 产品答疑

    新浪公司 版权所有