×

签到

分享到微信

打开微信,使用扫一扫进入页面后,点击右上角菜单,

点击“发送给朋友”或“分享到朋友圈”完成分享

cnstream编译成功后使用rtsp运行demo出错 已解决 白堊紀2021-09-14 17:34:48 回复 8 查看 技术答疑 使用求助
cnstream编译成功后使用rtsp运行demo出错
分享到:

cnstream编译成功后,修改run.sh及配置文件,使用rtsp运行demo出错如下,请问下这里什么原因导致的呢?可以怎么解决?

[hevc @ 0x7fffc40067a0] No start code is found.

[hevc @ 0x7fffc40067a0] Error splitting the input into NAL units.


详细log如下:

MsgObserver::WaitForStop (this=0x7fffffffdd00) at /home/neousys/water/CNStream/samples/demo/demo.cpp:138

138  void WaitForStop() {

(gdb) l

133    if (stop_) {

134      wakener_.notify_one();

135    }

136  }

137

138  void WaitForStop() {

139    std::unique_lock

140    wakener_.wait(lk, [this]() {return stop_; });

141    lk.unlock();

142    pipeline_->Stop();

(gdb) n

Received 131 new bytes of response data.

Received a complete DESCRIBE response:

RTSP/1.0 401 Unauthorized

CSeq: 2

WWW-Authenticate: Digest realm="IPC", nonce="d1cfc06f10ba1b2fb3104e955a7a6571", stale=FALSE



Resending...

Sending request: DESCRIBE rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1 RTSP/1.0

CSeq: 3

Authorization: Digest username="admin", realm="IPC", nonce="d1cfc06f10ba1b2fb3104e955a7a6571", uri="rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1", response="b42b6c03afbb296567c37079ee3b18af"

User-Agent: cnstream (LIVE555 Streaming Media v2020.10.16)

Accept: application/sdp



139    std::unique_lock

(gdb) n

Received 687 new bytes of response data.

Received a complete DESCRIBE response:

RTSP/1.0 200 OK

CSeq: 3

Content-Type: application/sdp

Content- : rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1/

Content-Length: 533


v=0

o=- 1672 1 IN IP4 192.168.3.126

s=Huawei RTSP Server

c=IN IP4 0.0.0.0

t=0 0

a=range:npt=now-

m=video 0 RTP/AVP 98

a=rtpmap:98 H265/90000

a=control:rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1/trackID=1

a=recvonly

m=audio 0 RTP/AVP 0

a=rtpmap:0 PCMU/8000

a=control:rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1/trackID=2

a=recvonly

m=application 0 RTP/AVP 107

a=rtpmap:107 vnd.onvif. data/90000

a=control:rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1/trackID=4

a=recvonly


[URL:"rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1/"]: Got a SDP de ion:

v=0

o=- 1672 1 IN IP4 192.168.3.126

s=Huawei RTSP Server

c=IN IP4 0.0.0.0

t=0 0

a=range:npt=now-

m=video 0 RTP/AVP 98

a=rtpmap:98 H265/90000

a=control:rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1/trackID=1

a=recvonly

m=audio 0 RTP/AVP 0

a=rtpmap:0 PCMU/8000

a=control:rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1/trackID=2

a=recvonly

m=application 0 RTP/AVP 107

a=rtpmap:107 vnd.onvif. data/90000

a=control:rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1/trackID=4

a=recvonly


[URL:"rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1/"]: Initiated the "video/H265" subsession (client ports 43110-43111)

Sending request: SETUP rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1/trackID=1 RTSP/1.0

CSeq: 4

Authorization: Digest username="admin", realm="IPC", nonce="d1cfc06f10ba1b2fb3104e955a7a6571", uri="rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1/", response="5f92bf4f1465af6a416ee0c8dd20d4a0"

User-Agent: cnstream (LIVE555 Streaming Media v2020.10.16)

Transport: RTP/AVP/TCP;unicast;interleaved=0-1



140    wakener_.wait(lk, [this]() {return stop_; });

(gdb) n

Received 106 new bytes of response data.

Received a complete SETUP response:

RTSP/1.0 200 OK

CSeq: 4

Session: 39630928;timeout=60

Transport: RTP/AVP/TCP;unicast;interleaved=0-1



[URL:"rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1/"]: Set up the "video/H265" subsession (client ports 43110-43111)

[hevc @ 0x7fffc40067a0] No start code is found.

[hevc @ 0x7fffc40067a0] Error splitting the input into NAL units.

[URL:"rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1/"]: Created a data sink for the "video/H265" subsession

Sending request: PLAY rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1/ RTSP/1.0

CSeq: 5

Authorization: Digest username="admin", realm="IPC", nonce="d1cfc06f10ba1b2fb3104e955a7a6571", uri="rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1/", response="96e12938a73e3f7a155d13c8b7a891e0"

User-Agent: cnstream (LIVE555 Streaming Media v2020.10.16)

Session: 39630928

Range: npt=0.000-



Received a complete PLAY response:

RTSP/1.0 200 OK

CSeq: 5

Session: 39630928

Range: npt=now-

RTP-Info: seq=1;rtptime=1631627668



[URL:"rtsp://admin:HuaWei123@192.168.3.126/LiveMedia/ch1/Media1/"]: Started playing session...

CNSTREAM SOURCE I0914 17:29:58.972719  7270 data_handler_rtsp.cpp:209] [stream_0]: Rtsp connect success

Liveness timeout occured, shutdown stream...cnstream-demo-run-rtsp-error.png


版权所有 © 2024 寒武纪 Cambricon.com 备案/许可证号:京ICP备17003415号-1
关闭