rtsprecorder接收rtsp流并录像存档的调试过程

rtsp://uuc.witaction.com:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1 //VLC播放这个url可以。


rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1 //VLC播放这个url不行!原因:最后多了一个空格。


TS:18:50:10 :netsend[119]:SETUP rtsp://110.185.210.89/call/track2 RTSP/1.0
CSeq: 3
Transport: RTP/AVP/UDP;multicast;client_port=20000-20001




TS:18:50:10 :rtsp->answer[0]=RTSP/1.0 400 Bad Request //原因:path=call?owner_sip=603&peer_sip=2004&audio=1&video=1才行。


rtsp://110.185.210.89/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track2 还要加上track<n>才可以。


//-------------------------------------------
TS:21:45:10 :netsend[182]:SETUP rtsp://110.185.210.89/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track1 RTSP/1.0
CSeq: 4
Session: 12325781
Transport: RTP/AVP/UDP;multicast;client_port=20002-20003




TS:21:45:10 :rtsp->answer[0]=RTSP/1.0 200 OK
TS:21:45:10 :rtsp->answer[1]=CSeq: 4
TS:21:45:10 :rtsp->answer[2]=Date: Mon, Feb 01 2016 21:45:09 GMT+8
TS:21:45:10 :rtsp->answer[3]=Transport: RTP/AVP;unicast;client_port=20002-20003;server_port=6976-6977;ssrc=100
TS:21:45:10 :rtsp->answer[4]=Session: 12325781
TS:21:45:10 :rtspclt_send_setup_request(),ret=0
TS:21:45:10 :netsend[137]:PLAY rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1 RTSP/1.0
CSeq: 5
Session: 12325781
Range: npt=now-




TS:21:45:10 :rtsp->answer[0]=RTSP/1.0 200 OK
TS:21:45:10 :rtsp->answer[1]=CSeq: 5
TS:21:45:10 :rtsp->answer[2]=Date: Mon, Feb 01 2016 21:45:09 GMT+8
TS:21:45:10 :rtsp->answer[3]=Session: 12325781
TS:21:45:10 :rtsp->answer[4]=RTP-Info: url=rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track1;seq=0;rtptime=0, 


url=rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track2;seq=0;rtptime=0, url=rtsp://110.185.210.89:554/call?


owner //这里感觉buffer不够。uint8_t answer[256][256];改为uint8_t answer[64][1024];


TS:21:45:10 :netsend[120]:TEARDOWN rtsp://110.185.210.89/call?owner_sip=603&peer_sip=2004&audio=1&video=1 RTSP/1.0
CSeq: 6
Session: 12325781




TS:21:45:10 :rtspclt_create(rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1),ret=-9
==================================================
[root@localhost main]# cat /tmp/RR.log 
TS:11:35:08 :Install soft-ISR !Enter main loop...
TS:11:35:08 :netsend[104]:OPTIONS rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1 RTSP/1.0
CSeq: 1




TS:11:35:08 :rtsp->answer[0]=RTSP/1.0 200 OK
TS:11:35:08 :rtsp->answer[1]=CSeq: 1
TS:11:35:08 :rtsp->answer[2]=Date: Tue, Feb 02 2016 11:35:06 GMT+8
TS:11:35:08 :rtsp->answer[3]=Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN
TS:11:35:08 :netsend[130]:DESCRIBE rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1 RTSP/1.0
CSeq: 2
Accept: application/sdp




TS:11:35:08 :rtsp->answer[0]=RTSP/1.0 200 OK
TS:11:35:08 :rtsp->answer[1]=CSeq: 2
TS:11:35:08 :rtsp->answer[2]=Date: Tue, Feb 02 2016 11:35:06 GMT+8
TS:11:35:08 :rtsp->answer[3]=Content-Base: rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1
TS:11:35:08 :rtsp->answer[4]=Content-Type: application/sdp
TS:11:35:08 :rtsp->answer[5]=Content-Length: 476
TS:11:35:08 :rtsp->answer[0]=v=0
TS:11:35:08 :rtsp->answer[1]=o=- 12325788 1 IN IP4 110.185.210.89
TS:11:35:08 :rtsp->answer[2]=s=Session streamed by "live call streamer"
TS:11:35:08 :rtsp->answer[3]=c=IN IP4 110.185.210.89
TS:11:35:08 :rtsp->answer[4]=t=0 0
TS:11:35:08 :rtsp->answer[5]=a=tool:hzw flss v2.0
TS:11:35:08 :rtsp->answer[6]=a=control:*
TS:11:35:08 :rtsp->answer[7]=a=range:npt=0-
TS:11:35:08 :rtsp->answer[8]=a=x-qt-text-nam:Session streamed by "live call streamer"
TS:11:35:08 :rtsp->answer[9]=m=audio 0 RTP/AVP 97
TS:11:35:08 :rtsp->answer[10]=a=rtpmap:97 speex/16000
TS:11:35:08 :rtsp->answer[11]=a=control:track1
TS:11:35:08 :rtsp->answer[12]=m=video 0 RTP/AVP 98
TS:11:35:08 :rtsp->answer[13]=a=rtpmap:98 H264/90000
TS:11:35:08 :rtsp->answer[14]=a=fmtp:98 packetization-mode=1;profile-level-id=64000C;sprop-parameter-


sets=Z2QADKy0CwS0IAAAAwAgAAADA9HihVQ=,aO8yyLA=
TS:11:35:08 :rtsp->answer[15]=a=control:track2
TS:11:35:08 :send command=SETUP rtsp://110.185.210.89/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track2 RTSP/1.0
CSeq: 3
Transport: RTP/AVP/UDP;multicast;client_port=20000-20001




TS:11:35:08 :netsend[163]:SETUP rtsp://110.185.210.89/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track2 RTSP/1.0
CSeq: 3
Transport: RTP/AVP/UDP;multicast;client_port=20000-20001




TS:11:35:08 :rtsp->answer[0]=RTSP/1.0 200 OK
TS:11:35:08 :rtsp->answer[1]=CSeq: 3
TS:11:35:08 :rtsp->answer[2]=Date: Tue, Feb 02 2016 11:35:06 GMT+8
TS:11:35:08 :rtsp->answer[3]=Transport: RTP/AVP;unicast;client_port=20000-20001;server_port=6982-6983;ssrc=106
TS:11:35:08 :rtsp->answer[4]=Session: 12325788
TS:11:35:08 :rtspclt_send_setup_request(),ret=0
TS:11:35:08 :send command=SETUP rtsp://110.185.210.89/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track1 RTSP/1.0
CSeq: 4
Session: 12325788
Transport: RTP/AVP/UDP;multicast;client_port=20002-20003




TS:11:35:08 :netsend[182]:SETUP rtsp://110.185.210.89/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track1 RTSP/1.0
CSeq: 4
Session: 12325788
Transport: RTP/AVP/UDP;multicast;client_port=20002-20003




TS:11:35:08 :rtsp->answer[0]=RTSP/1.0 200 OK
TS:11:35:08 :rtsp->answer[1]=CSeq: 4
TS:11:35:08 :rtsp->answer[2]=Date: Tue, Feb 02 2016 11:35:06 GMT+8
TS:11:35:08 :rtsp->answer[3]=Transport: RTP/AVP;unicast;client_port=20002-20003;server_port=6984-6985;ssrc=105
TS:11:35:08 :rtsp->answer[4]=Session: 12325788
TS:11:35:08 :rtspclt_send_setup_request(),ret=0
TS:11:35:08 :netsend[137]:PLAY rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1 RTSP/1.0
CSeq: 5
Session: 12325788
Range: npt=now-




TS:11:35:08 :rtsp->answer[0]=RTSP/1.0 200 OK
TS:11:35:08 :rtsp->answer[1]=CSeq: 5
TS:11:35:08 :rtsp->answer[2]=Date: Tue, Feb 02 2016 11:35:06 GMT+8
TS:11:35:08 :rtsp->answer[3]=Session: 12325788
TS:11:35:08 :rtsp->answer[4]=RTP-Info: url=rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track1;seq=0;rtptime=0, 


url=rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track2;seq=0;rtptime=0, url=rtsp://110.185.210.89:554/call?


owner_sip=603&peer_sip=2004&audio=1&video=1/track3;seq=0;rtptime=0
TS:11:35:08 :netCreateUDPMulticastReceive(110.185.210.89:0--->110.185.210.89:20000),ret=-2
TS:11:35:08 :rtspclt_do_works(),ret=-13
TS:11:35:08 :netsend[120]:TEARDOWN rtsp://110.185.210.89/call?owner_sip=603&peer_sip=2004&audio=1&video=1 RTSP/1.0
CSeq: 6
Session: 12325788




TS:11:35:08 :rtspclt_create(rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1),ret=-9
[root@localhost main]# 


===============================================
[root@localhost main]# cat /tmp/RR.log 
TS:15:51:47 :Install soft-ISR !Enter main loop...
TS:15:51:47 :netsend[104]:OPTIONS rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1 RTSP/1.0
CSeq: 1




TS:15:51:47 :rtsp->answer[0]=RTSP/1.0 200 OK
TS:15:51:47 :rtsp->answer[1]=CSeq: 1
TS:15:51:47 :rtsp->answer[2]=Date: Tue, Feb 02 2016 15:51:46 GMT+8
TS:15:51:47 :rtsp->answer[3]=Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN
TS:15:51:47 :netsend[130]:DESCRIBE rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1 RTSP/1.0
CSeq: 2
Accept: application/sdp




TS:15:51:47 :rtsp->answer[0]=RTSP/1.0 200 OK
TS:15:51:47 :rtsp->answer[1]=CSeq: 2
TS:15:51:47 :rtsp->answer[2]=Date: Tue, Feb 02 2016 15:51:46 GMT+8
TS:15:51:47 :rtsp->answer[3]=Content-Base: rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1
TS:15:51:47 :rtsp->answer[4]=Content-Type: application/sdp
TS:15:51:47 :rtsp->answer[5]=Content-Length: 476
TS:15:51:47 :rtsp->answer[0]=v=0
TS:15:51:47 :rtsp->answer[1]=o=- 12325791 1 IN IP4 110.185.210.89
TS:15:51:47 :rtsp->answer[2]=s=Session streamed by "live call streamer"
TS:15:51:47 :rtsp->answer[3]=c=IN IP4 110.185.210.89
TS:15:51:47 :rtsp->answer[4]=t=0 0
TS:15:51:47 :rtsp->answer[5]=a=tool:hzw flss v2.0
TS:15:51:47 :rtsp->answer[6]=a=control:*
TS:15:51:47 :rtsp->answer[7]=a=range:npt=0-
TS:15:51:47 :rtsp->answer[8]=a=x-qt-text-nam:Session streamed by "live call streamer"
TS:15:51:47 :rtsp->answer[9]=m=audio 0 RTP/AVP 97
TS:15:51:47 :rtsp->answer[10]=a=rtpmap:97 speex/16000
TS:15:51:47 :rtsp->answer[11]=a=control:track1
TS:15:51:47 :rtsp->answer[12]=m=video 0 RTP/AVP 98
TS:15:51:47 :rtsp->answer[13]=a=rtpmap:98 H264/90000
TS:15:51:47 :rtsp->answer[14]=a=fmtp:98 packetization-mode=1;profile-level-id=64000C;sprop-parameter-


sets=Z2QADKy0CwS0IAAAAwAgAAADA9HihVQ=,aO8yyLA= //这个实际上是sps,pps
TS:15:51:47 :rtsp->answer[15]=a=control:track2
TS:15:51:47 :send command=SETUP rtsp://110.185.210.89/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track2 RTSP/1.0
CSeq: 3
Transport: RTP/AVP/UDP;multicast;client_port=20000-20001




TS:15:51:47 :netsend[163]:SETUP rtsp://110.185.210.89/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track2 RTSP/1.0
CSeq: 3
Transport: RTP/AVP/UDP;multicast;client_port=20000-20001




TS:15:51:47 :rtsp->answer[0]=RTSP/1.0 200 OK
TS:15:51:47 :rtsp->answer[1]=CSeq: 3
TS:15:51:47 :rtsp->answer[2]=Date: Tue, Feb 02 2016 15:51:46 GMT+8
TS:15:51:47 :rtsp->answer[3]=Transport: RTP/AVP;unicast;client_port=20000-20001;server_port=6988-6989;ssrc=106
TS:15:51:47 :rtsp->answer[4]=Session: 12325791
TS:15:51:47 :rtspclt_send_setup_request(),ret=0
TS:15:51:47 :send command=SETUP rtsp://110.185.210.89/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track1 RTSP/1.0
CSeq: 4
Session: 12325791
Transport: RTP/AVP/UDP;unicast;client_port=20002-20003




TS:15:51:47 :netsend[180]:SETUP rtsp://110.185.210.89/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track1 RTSP/1.0
CSeq: 4
Session: 12325791
Transport: RTP/AVP/UDP;unicast;client_port=20002-20003




TS:15:51:47 :rtsp->answer[0]=RTSP/1.0 200 OK
TS:15:51:47 :rtsp->answer[1]=CSeq: 4
TS:15:51:47 :rtsp->answer[2]=Date: Tue, Feb 02 2016 15:51:46 GMT+8
TS:15:51:47 :rtsp->answer[3]=Transport: RTP/AVP;unicast;client_port=20002-20003;server_port=6990-6991;ssrc=105
TS:15:51:47 :rtsp->answer[4]=Session: 12325791
TS:15:51:47 :rtspclt_send_setup_request(),ret=0
TS:15:51:47 :netsend[137]:PLAY rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1 RTSP/1.0
CSeq: 5
Session: 12325791
Range: npt=now-




TS:15:51:47 :rtsp->answer[0]=RTSP/1.0 200 OK
TS:15:51:47 :rtsp->answer[1]=CSeq: 5
TS:15:51:47 :rtsp->answer[2]=Date: Tue, Feb 02 2016 15:51:46 GMT+8
TS:15:51:47 :rtsp->answer[3]=Session: 12325791
TS:15:51:47 :rtsp->answer[4]=RTP-Info: url=rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track1;seq=0;rtptime=0, 


url=rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track2;seq=0;rtptime=0, url=rtsp://110.185.210.89:554/call?


owner_sip=603&peer_sip=2004&audio=1&video=1/track3;seq=0;rtptime=0
TS:15:51:47 :rtspclt_do_works(),ret=0
TS:15:51:47 :rtspclt_create(rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1),ret=0
TS:15:51:47 :setup rtsp[idx=0] stream connection success!
TS:15:51:47 :get sps, size=27,i=0. sps[]=
TS:15:51:47 :get pps, size=9,i=0. pps[]=
TS:15:53:09 :pid:3813 receive signal:15, prepare to exit!


Enter rtspclient thread[idx=0]>>
setup rtsp[idx=0] stream connection success!
sps[27]=0 0 0 1 67 64 0 c ac b4 b 4 b4 20 0 0 3 0 20 0 0 3 3 d1 e2 85 54 
pps[9]=0 0 0 1 68 ef 32 c8 b0 




===============================


TS:17:42:18 :rtsp->answer[4]=RTP-Info: url=rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track1;seq=0;rtptime=0, 


url=rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1/track2;seq=0;rtptime=0, url=rtsp://110.185.210.89:554/call?


owner_sip=603&peer_sip=2004&audio=1&video=1/track3;seq=0;rtptime=0
TS:17:42:18 :rtsp->num_track=2
TS:17:42:18 :netRTPReceive(0.0.0.0:20000--->110.185.210.89:7002),ret=4
TS:17:42:18 :idx=0,create RTP connection success!
TS:17:42:18 :netRTPReceive(0.0.0.0:20002--->110.185.210.89:7004),ret=5
TS:17:42:18 :idx=1,create RTP connection success!
TS:17:42:18 :idx=0,create RTCP connection success!
TS:17:42:18 :idx=1,create RTCP connection success!
TS:17:42:18 :rtspclt_do_works(),ret=0
TS:17:42:18 :rtspclt_create(rtsp://110.185.210.89:554/call?owner_sip=603&peer_sip=2004&audio=1&video=1),ret=0
TS:17:42:18 :setup rtsp[idx=0] stream connection success!
TS:17:42:18 :Enter rtp_over_udp_thread[idx=1]>>
TS:17:42:18 :Enter rtp_over_udp_thread[idx=0]>>







评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

草根大哥

进军大神程序员路上,谢谢支持!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值