[Live-devel] A problem about openRTSP
小波 田
soaring_roc at yahoo.com.cn
Sun Jun 25 04:46:17 PDT 2006
Hi, folks
I use the test program(openRTSP) of liveMedia, the server is DSS. I use it as this: ./openRTSP -V rtsp://xxx.xxx.xxx.xxx/sample_100kbit.mp4 the program can record the Audio and Video tracks in the file named"audio-MPEG4-GENERIC-2" and "video-MP4V-ES-1", follow the discription of the openRTSP like this:
"The received data for each subsession is written into a separate output file, named according to its MIME type. For example, if the session contains a MPEG-1 or 2 audio subsession (RTP payload type 14) - e.g., MP3 - and a MPEG-1 or 2 video subsession (RTP payload type 32), then each subsession's data will be extracted from the incoming RTP packets and written to files named "audio-MPA-1" and "video-MPV-2" (respectively). (You will probably then need to rename these files - by giving them an appropriate filename extension (e.g., ".mp3" and ".mpg") - in order to be able to play them using common media player tools.) "
I add the extension ".mp4" to the file "video-MP4V-ES-1" result in "video-MP4V-ES-1.mp4" follow the discription. then I use the QuickTime player to play it, but it can't work with the error like:"the video-MP4V-ES-1.mp4 is not a valid MPEG-4 file, No 'moov' autom could be found". I am puzzled about the problem. any suggestion would be appreciated! Thanks!
Here is the message when the openRTSP works:
sending request: OPTIONS rtsp://192.168.0.68/sample_100kbit.mp4 RTSP/1.0
CSeq: 1
User-Agent: ./openRTSP (LIVE555 Streaming Media v2006.05.17)
Received OPTIONS response: RTSP/1.0 200 OK
Server: DSS/5.5 (Build/489.7; Platform/Linux; Release/Darwin; )
Cseq: 1
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD
Sending request: DESCRIBE rtsp://192.168.0.68/sample_100kbit.mp4 RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: ./openRTSP (LIVE555 Streaming Media v2006.05.17)
Received DESCRIBE response: RTSP/1.0 200 OK
Server: DSS/5.5 (Build/489.7; Platform/Linux; Release/Darwin; )
Cseq: 2
Last-Modified: Wed, 31 May 2006 07:28:00 GMT
Cache-Control: must-revalidate
Content-length: 1206
Date: Fri, 23 Jun 2006 13:32:03 GMT
Expires: Fri, 23 Jun 2006 13:32:03 GMT
Content-Type: application/sdp
x-Accept-Retransmit: our-retransmit
x-Accept-Dynamic-Rate: 1
Content-Base: rtsp://192.168.0.68/sample_100kbit.mp4/
Need to read 1206 extra bytes
Read 1206 extra bytes: v=0
o=StreamingServer 3360058323 1149060480000 IN IP4 192.168.0.68
s=/sample_100kbit.mp4
u=http:///
e=admin@
c=IN IP4 0.0.0.0
b=AS:96
t=0 0
a=control:*
a=mpeg4-iod:"data:application/mpeg4-iod;base64,AoJrAE///w/z/wOBdgABQNhkYXRhOmFwcGxpY2F0aW9uL21wZWc0LW9kLWF1O2Jhc2U2NCxBWUVDQVV3Rkh3TklBTWtnQUdVRUx5QVJBRzNkQUFFaytBQUJKUGdGSUFBQUFiRHpBQUFCdFE3Z1FNRFBBQUFCQUFBQUFTQUFoRUQ2S0RBZzhxSWZCaEFBUkFBQUFsZ0FBQUFBSUFBQUFBQURBVElDbndNdUFHVUFCSUNBZ0JSQUZRQVlBQUFBVGlBQUFFNGdCWUNBZ0FJVmtBWVFBRVFBQUI5QUFBQWZRQ0FnQUFBQUF3PT0EDQEFAADIAAAAAAAAAAAGCQEAAAAAAAAAAANpAAJARmRhdGE6YXBwbGljYXRpb24vbXBlZzQtYmlmcy1hdTtiYXNlNjQsd0JBU2daTUNvRmNtRUVIOEFBQUIvQUFBQkVLQ0tDbjQEEgINAABkAAAAAAAAAAAFAwAAYAYJAQAAAAAAAAAA"
a=isma-compliance:1,1.0,1
a=range:npt=0- 70.00000
m=video 0 RTP/AVP 96
b=AS:76
a=rtpmap:96 MP4V-ES/90000
a=control:trackID=3
a=cliprect:0,0,242,192
a=framesize:96 192-242
a=fmtp:96 profile-level-id=1;config=000001B0F3000001B50EE040C0CF0000010000000120008440FA283020F2A21F
a=mpeg4-esid:201
m=audio 0 RTP/AVP 97
b=AS:20
a=rtpmap:97 mpeg4-generic/8000/2
a=control:trackID=4
a=fmtp:97 profile-level-id=15;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1590
a=mpeg4-esid:101
Opened URL "rtsp://192.168.0.68/sample_100kbit.mp4", returning a SDP description:
v=0
o=StreamingServer 3360058323 1149060480000 IN IP4 192.168.0.68
s=/sample_100kbit.mp4
u=http:///
e=admin@
c=IN IP4 0.0.0.0
b=AS:96
t=0 0
a=control:*
a=mpeg4-iod:"data:application/mpeg4-iod;base64,AoJrAE///w/z/wOBdgABQNhkYXRhOmFwcGxpY2F0aW9uL21wZWc0LW9kLWF1O2Jhc2U2NCxBWUVDQVV3Rkh3TklBTWtnQUdVRUx5QVJBRzNkQUFFaytBQUJKUGdGSUFBQUFiRHpBQUFCdFE3Z1FNRFBBQUFCQUFBQUFTQUFoRUQ2S0RBZzhxSWZCaEFBUkFBQUFsZ0FBQUFBSUFBQUFBQURBVElDbndNdUFHVUFCSUNBZ0JSQUZRQVlBQUFBVGlBQUFFNGdCWUNBZ0FJVmtBWVFBRVFBQUI5QUFBQWZRQ0FnQUFBQUF3PT0EDQEFAADIAAAAAAAAAAAGCQEAAAAAAAAAAANpAAJARmRhdGE6YXBwbGljYXRpb24vbXBlZzQtYmlmcy1hdTtiYXNlNjQsd0JBU2daTUNvRmNtRUVIOEFBQUIvQUFBQkVLQ0tDbjQEEgINAABkAAAAAAAAAAAFAwAAYAYJAQAAAAAAAAAA"
a=isma-compliance:1,1.0,1
a=range:npt=0- 70.00000
m=video 0 RTP/AVP 96
b=AS:76
a=rtpmap:96 MP4V-ES/90000
a=control:trackID=3
a=cliprect:0,0,242,192
a=framesize:96 192-242
a=fmtp:96 profile-level-id=1;config=000001B0F3000001B50EE040C0CF0000010000000120008440FA283020F2A21F
a=mpeg4-esid:201
m=audio 0 RTP/AVP 97
b=AS:20
a=rtpmap:97 mpeg4-generic/8000/2
a=control:trackID=4
a=fmtp:97 profile-level-id=15;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1590
a=mpeg4-esid:101
Created receiver for "video/MP4V-ES" subsession (client ports 32772-32773)
Created receiver for "audio/MPEG4-GENERIC" subsession (client ports 32774-32775)Sending request: SETUP rtsp://192.168.0.68/sample_100kbit.mp4/trackID=3 RTSP/1.0CSeq: 3
Transport: RTP/AVP;unicast;client_port=32772-32773
User-Agent: ./openRTSP (LIVE555 Streaming Media v2006.05.17)
Received SETUP response: RTSP/1.0 200 OK
Server: DSS/5.5 (Build/489.7; Platform/Linux; Release/Darwin; )
Cseq: 3
Last-Modified: Wed, 31 May 2006 07:28:00 GMT
Cache-Control: must-revalidate
Session: 584703331794683763
Date: Fri, 23 Jun 2006 13:32:03 GMT
Expires: Fri, 23 Jun 2006 13:32:03 GMT
Transport: RTP/AVP;unicast;source=192.168.0.68;client_port=32772-32773;server_port=6970-6971;ssrc=4F35562D
Setup "video/MP4V-ES" subsession (client ports 32772-32773)
Sending request: SETUP rtsp://192.168.0.68/sample_100kbit.mp4/trackID=4 RTSP/1.0CSeq: 4
Transport: RTP/AVP;unicast;client_port=32774-32775
Session: 584703331794683763
User-Agent: ./openRTSP (LIVE555 Streaming Media v2006.05.17)
Received SETUP response: RTSP/1.0 200 OK
Server: DSS/5.5 (Build/489.7; Platform/Linux; Release/Darwin; )
Cseq: 4
Session: 584703331794683763
Last-Modified: Wed, 31 May 2006 07:28:00 GMT
Cache-Control: must-revalidate
Date: Fri, 23 Jun 2006 13:32:03 GMT
Expires: Fri, 23 Jun 2006 13:32:03 GMT
Transport: RTP/AVP;unicast;source=192.168.0.68;client_port=32774-32775;server_port=6970-6971;ssrc=6367F43F
Setup "audio/MPEG4-GENERIC" subsession (client ports 32774-32775)
Created output file: "video-MP4V-ES-1"
Created output file: "audio-MPEG4-GENERIC-2"
Sending request: PLAY rtsp://192.168.0.68/sample_100kbit.mp4 RTSP/1.0
CSeq: 5
Session: 584703331794683763
Range: npt=0.000-
User-Agent: ./openRTSP (LIVE555 Streaming Media v2006.05.17)
Received PLAY response: RTSP/1.0 200 OK
Server: DSS/5.5 (Build/489.7; Platform/Linux; Release/Darwin; )
Cseq: 5
Session: 584703331794683763
Range: npt=0.00000-70.00000
RTP-Info: url=rtsp://192.168.0.68/sample_100kbit.mp4/trackID=3;seq=12166;rtptime=1202588821,url=rtsp://192.168.0.68/sample_100kbit.mp4/trackID=4;seq=17381;rtptime=776601757
Started playing session
Receiving streamed data (for up to 75.000000 seconds)...
Sending request: TEARDOWN rtsp://192.168.0.68/sample_100kbit.mp4 RTSP/1.0
CSeq: 6
Session: 584703331794683763
User-Agent: ./openRTSP (LIVE555 Streaming Media v2006.05.17)
Received TEARDOWN response: RTSP/1.0 200 OK
Server: DSS/5.5 (Build/489.7; Platform/Linux; Release/Darwin; )
Cseq: 6
Session: 584703331794683763
Connection: Close
Xiaobo Tian
---------------------------------
抢注雅虎免费邮箱-3.5G容量,20M附件!
---------------------------------
抢注雅虎免费邮箱-3.5G容量,20M附件!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20060625/41a80b77/attachment.html
More information about the live-devel
mailing list