yybingyybing

yybingyybing

0个粉丝

3

问答

3

专栏

0

资料

yybingyybing  发布于  2015-02-02 17:28:55
采纳率 0%
3个问答
18498

关于HI3518 ONVIF的问题

 
大家好:

我们用libonvif_sf和libmtran实现ONVIF对接
用我编译出来的libmtran时,RTSP也连不上,提示错误:

seq: 4
[mrtsp]Parse url:rtsp://10.140.70.171:554/11/trackID=0
rtsp setup: chn 11 traID 0
setup the url is :rtsp://10.140.70.171:554/11/trackID=0
sprintf au8MediaFile = 11
the ssrc is :188213258 0b37e80a
VOD SETUP
the vod session init after
[VOD]MediaFile:11 vod of vschn 11
MTMNG: sps pps=Z00AH5WoFAFuQA==,aO48gA== len 25
MBUF_Alloc vschn 11 , mbuf chn 0
MBUF_Alloc:failed at 0!
VOD setup Failed for cli (MBUF alloc Error=1260319844).
vod setup failed A1326004 for 10.140.70.251
RTSPMethodProcess process error =A1326004RTSP response Send OK
Send Reply .Chn:11 S --> C(10.140.70.251) >>>>>>
RTSP/1.0 500 Internal Server Error
Server: HiIpcam/V100R003 VodServer/1.0.0
Cseq: 4


<<<<<<
----------s32RTSPProcRet =A1326004,s32SendRespRet = 0----------
[mrtsp]process rtsp error :-1590534140.  Teardown it
Recive C --> S >>>>>>

<<<<<<
RTSP_Get_SessId failed:fffffff6 Handle Teardown , sessid:511085064625862 / 511085064625862
VOD_TearDown, Protocol:0, SessID:511085064625862.
VOD teardown Failed for cli (can't find session :protocal 0, session id 511085064625862
Close the session socket :45
client 10.140.70.251 disconnected (0 client alive):[RTSP process: A1326004]
[mrtsp] RTSP DistribLink
[mrtsp]first msg come !
Recive C(10.140.70.251) --> S >>>>>>
OPTIONS rtsp://10.140.70.171:554 RTSP/1.0
CSeq: 1
User-Agent: RealMedia Player Version 6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)
ClientChallenge: 9e26d33f2984236010ef6253fb1887f7
PlayerStarttime: [28/03/2003:22:50:23 00:00]
CompanyID: KnKV4M4I/B2FjJ1TToLycw==
GUID: 00000000-0000-0000-0000-000000000000
RegionData: 0
ClientID: Linux_2.4_6.0.9.1235_play32_RN01_EN_586


<<<<<<
RTSP response Send OK
Send Reply .Chn: S --> C(10.140.70.251) >>>>>>
RTSP/1.0 200 OK
Server: HiIpcam/V100R003 VodServer/1.0.0
Cseq: 1
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY,SET_PARAMETER,GET_PARAMETER


<<<<<<
----------s32RTSPProcRet =0,s32SendRespRet = 0----------
[Info]client 10.140.70.251 connected (1 client alive) !!!
[Info]RTSP live process thread 1269478608 start ok, communite with cli 10.140.70.251....
472406299081311:just RTSP msg.
[mrtsp]recv no data. Teardown it
Recive C --> S >>>>>>

<<<<<<
RTSP_Get_SessId failed:fffffff6 Handle Teardown , sessid:472406299081311 / 472406299081311
VOD_TearDown, Protocol:0, SessID:472406299081311.
VOD teardown Failed for cli (can't find session :protocal 0, session id 472406299081311
Close the session socket :45


我看调试信息像是内存出错了,这错误是因为内存空间小的原因?
我来回答
回答3个
时间排序
认可量排序

kgui

0个粉丝

13

问答

0

专栏

4

资料

kgui 2015-02-03 11:21:43
认可0
rtsp 的 C-S  SETUP了。

MBUF_Alloc vschn 11 , mbuf chn 0
MBUF_Alloc:failed at 0!

[url]rtsp://10.140.70.171:554/11/trackID=0[/url]

估计这个描述符 还是有错误。

yybingyybing

0个粉丝

3

问答

3

专栏

0

资料

yybingyybing 2015-02-03 13:47:09
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=12197&ptid=5341]kgui 发表于 2015-2-3 11:21[/url]
rtsp 的 C-S  SETUP了。

MBUF_Alloc vschn 11 , mbuf chn 0
[/quote]

现在有新问题了:

[mrtsp] RTSP DistribLink
[mrtsp]first msg come !
Recive C(10.140.70.251) --> S >>>>>>
OPTIONS rtsp://10.140.70.207:554/11 RTSP/1.0
CSeq: 2
User-Agent: LibVLC/2.1.5 (LIVE555 Streaming Media v2014.05.27)


<<<<<<
RTSP response Send OK
Send Reply .Chn: S --> C(10.140.70.251) >>>>>>
RTSP/1.0 200 OK
Server: HiIpcam/V100R003 VodServer/1.0.0
Cseq: 2
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY,SET_PARAMETER,GET_PARAMETER


<<<<<<
----------s32RTSPProcRet =0,s32SendRespRet = 0----------
[Info]client 10.140.70.251 connected (1 client alive) !!!
[Info]RTSP live process thread 1227252944 start ok, communite with cli 10.140.70.251....
786884314920689:just RTSP msg.
Recive C(10.140.70.251) --> S >>>>>>
DESCRIBE rtsp://10.140.70.207:554/11 RTSP/1.0
CSeq: 3
User-Agent: LibVLC/2.1.5 (LIVE555 Streaming Media v2014.05.27)
Accept: application/sdp


<<<<<<
[mrtsp]Parse url:rtsp://10.140.70.207:554/11
[VOD]MediaFile:11 vod of vschn 11
MTMNG: sps pps=Z00AH5WoFAFuQA==,aO48gA== len 25
DISCRIBLE the band all:3080 video :3072 audio:8
RTSP response Send OK
Send Reply .Chn:11 S --> C(10.140.70.251) >>>>>>
RTSP/1.0 200 OK
Server: HiIpcam/V100R003 VodServer/1.0.0
Cseq: 3
Content-Type: application/sdp
Content-length: 413
Date: Mon, 23 May 2013 06:51:26 GMT
Content-Base: rtsp://10.140.70.207:554/11/

v=0
o=StreamingServer 3331435948 1116907222000 IN IP4 10.140.70.207
s=\11
c=IN IP4 0.0.0.0
b=AS:3080
t=0 0
a=control:*
m=video 0 RTP/AVP 96
b=AS:3072
a=framerate:20
a=control:trackID=0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=420029; sprop-parameter-sets=Z00AH5WoFAFuQA==,aO48gA==
a=framesize:96 1280-720
m=audio 0 RTP/AVP 8
a=control:trackID=2
a=rtpmap:8 PCMA/8000

<<<<<<
----------s32RTSPProcRet =0,s32SendRespRet = 0----------
786884314920689:just RTSP msg.
Recive C(10.140.70.251) --> S >>>>>>
SETUP rtsp://10.140.70.207:554/11/trackID=0 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/2.1.5 (LIVE555 Streaming Media v2014.05.27)
Transport: RTP/AVP;unicast;client_port=64994-64995


<<<<<<
Connecting to 127.0.0.1:80 (127.0.0.1:80)
Cseq: 4
[mrtsp]Parse url:rtsp://10.140.70.207:554/11/trackID=0
rtsp setup: chn 11 traID 0
setup the url is :rtsp://10.140.70.207:554/11/trackID=0
sprintf au8MediaFile = 11
the ssrc is :1984210012 7644a45c
VOD SETUP
the vod session init after
[VOD]MediaFile:11 vod of vschn 11
MTMNG: sps pps=Z00AH5WoFAFuQA==,aO48gA== len 25
MBUF_Alloc vschn 11 , mbuf chn 0
mtrans task init udp the media:1
min 5000 ---max 6000 ,cur = 5000
XXXXXXXXXAAAAAAAAAAAAAAAA
Client want to setup video,chn: 11, Track: 0.
RTSP response Send OK
Send Reply .Chn:11 S --> C(10.140.70.251) >>>>>>
RTSP/1.0 200 OK
Server: HiIpcam/V100R003 VodServer/1.0.0
Cseq: 4
Session: 786884314920689; timeout=60
Date: Mon, 23 May 2013 06:51:26 GMT
Transport: RTP/AVP;unicast;client_port=64994-64995;server_port=5000-5001;ssrc=7644a45c;mode="PLAY"


<<<<<<
----------s32RTSPProcRet =0,s32SendRespRet = 0----------
786884314920689:just RTSP msg.
hc->origfilename:cgi-bin/hi3510/devs.cgi
===devs.cgi,/cgi-bin/hi3510/devs.cgi?-act=rejoin,
proc icgi:devs.cgi
wget: no response from server
Recive C(10.140.70.251) --> S >>>>>>
SETUP rtsp://10.140.70.207:554/11/trackID=2 RTSP/1.0
CSeq: 5
User-Agent: LibVLC/2.1.5 (LIVE555 Streaming Media v2014.05.27)
Transport: RTP/AVP;unicast;client_port=64996-64997
Session: 786884314920689


<<<<<<
Cseq: 5
[mrtsp]Parse url:rtsp://10.140.70.207:554/11/trackID=2
rtsp setup: chn 11 traID 2
sprintf au8MediaFile = 11
the ssrc is :855636226 32fff902
rtsp handle setup two time
VOD SETUP
set up have aszSessID len is:15set up have before
[VOD]MediaFile:11 vod of vschn 11
vod setup handle have
MTMNG: sps pps=Z00AH5WoFAFuQA==,aO48gA== len 25
have the mtrans taskmtrans task init udp the media:2
min 5000 ---max 6000 ,cur = 5002
XXXXXXXXXAAAAAAAAAAAAAAAA
Client want to setup audio,chn: 11, Track: 2.
RTSP response Send OK
Send Reply .Chn:11 S --> C(10.140.70.251) >>>>>>
RTSP/1.0 200 OK
Server: HiIpcam/V100R003 VodServer/1.0.0
Cseq: 5
Session: 786884314920689; timeout=60
Date: Mon, 23 May 2013 06:51:26 GMT
Transport: RTP/AVP;unicast;client_port=64996-64997;server_port=5002-5003;ssrc=32fff902;mode="PLAY"


<<<<<<
----------s32RTSPProcRet =0,s32SendRespRet = 0----------
786884314920689:just RTSP msg.
Recive C(10.140.70.251) --> S >>>>>>
PLAY rtsp://10.140.70.207:554/11/ RTSP/1.0
CSeq: 6
User-Agent: LibVLC/2.1.5 (LIVE555 Streaming Media v2014.05.27)
Session: 786884314920689
Range: npt=0.000-


<<<<<<
Cseq: 6
[mrtsp]Parse url:rtsp://10.140.70.207:554/11/
Vod Play
the fua malloc pack buffer
MTRANS udp start:0 sendport 5000,send sock 38,cli ip 10.140.70.251
MTRANS udp start:1 sendport 5002,send sock 39,cli ip 10.140.70.251
To Request IDR, VeChn:0
Request IDR, VeChn:0, ret:0
get the alarm frame
VOD call Mtrans get base time :VOD id 786884314920689 hdl 169F768,trans hdl 169FCA0get base stamp:MBUF_Read read no data
get base stamp:MBUF_Read read no data
get base stamp:MBUF_Read read no data
not key video
get base stamp:MBUF_Read read no data
not key video
get base stamp:MBUF_Read read no data
video come,orig pts =33500182
video come,pro pts =3015016
get base time ok, now withdraw
vod get base time finish 3015016 apts 268001
HtimeVideo = tv = 3015016, 3015016, ta = 268001, 268001
RTSP response Send OK
Send Reply .Chn:11 S --> C(10.140.70.251) >>>>>>
RTSP/1.0 200 OK
Server: HiIpcam/V100R003 VodServer/1.0.0
Cseq: 6
Session: 786884314920689
Range: npt=0-
RTP-Info: url=rtsp://10.140.70.207:554/11/trackID=0;seq=0;rtptime=3015016,url=rtsp://10.140.70.207:554/11/trackID=2;seq=0;rtptime=268001
Date: Mon, 23 May 2013 06:51:26 GMT



<<<<<<
[mrtsp]playreading -> play
----------s32RTSPProcRet =0,s32SendRespRet = 0----------
go to send data
Start Send Data
Recive C(10.140.70.251) --> S >>>>>>
GET_PARAMETER rtsp://10.140.70.207:554/11/ RTSP/1.0
CSeq: 7
User-Agent: LibVLC/2.1.5 (LIVE555 Streaming Media v2014.05.27)
Session: 786884314920689


<<<<<<
Recive C --> S >>>>>>
GET_PARAMETER rtsp://10.140.70.207:554/11/ RTSP/1.0
CSeq: 7
User-Agent: LibVLC/2.1.5 (LIVE555 Streaming Media v2014.05.27)
Session: 786884314920689


<<<<<<
RTSP Session ID:786884314920689
RTSP response Send OK
Send Reply .Chn:11 S --> C(10.140.70.251) >>>>>>
RTSP/1.0 200 OK
Server: HiIpcam/V100R003 VodServer/1.0.0
Cseq: 7
Session: 786884314920689


<<<<<<
----------s32RTSPProcRet =2,s32SendRespRet = 0----------
[mrtsp]process rtsp required teardown :2.  Teardown it
Close the session socket :37
client teardown 10.140.70.251 disconnected the session

HiJack

0个粉丝

1

问答

0

专栏

0

资料

HiJack 2015-02-04 14:59:17
认可0
libonvif_sf和libmtran 是什么?
我也想用onvif的接口来对接,本人新手,请指教
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区