Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GB28181 access NVR, crashes after running for a while, process exits. #1790

Closed
dwj192 opened this issue Jun 2, 2020 · 9 comments
Closed
Assignees
Labels
Bug It might be a bug. GB28181 For GB28181. TransByAI Translated by AI/GPT.
Milestone

Comments

@dwj192
Copy link

dwj192 commented Jun 2, 2020

Migrate to ossrs/srs-gb28181#5

GB has been moved to a separate repository srs-gb28181, please refer to #2845.
For any issues, please submit them to GB's repository bug, or pr.'
Make sure to maintain the markdown structure.

TRANS_BY_GPT3

@dwj192
Copy link
Author

dwj192 commented Jun 2, 2020

[2020-06-02 11:57:26.912][Trace][16246][338] gb28181: client_id chid0, unkonw ps data (0/251408925) ffffffe8 0c 42 fffffff0

[2020-06-02 11:57:26.912][Trace][16246][338] gb28181: client_id chid0 decode ps packet error (0/251408925)! ps_size=2828 complete=5617

[2020-06-02 11:57:26.912][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a102, pre=43861, cur=43864, peer(110.19.190.90, 13795)
[2020-06-02 11:57:26.912][Trace][16246][387] gb28181: client_id 34020000001320000040@34020000001320000042, unkonw ps data (0x35a206/194176800) 28 ffffffbe ffffffdc 01

[2020-06-02 11:57:26.912][Trace][16246][387] gb28181: client_id 34020000001320000040@34020000001320000042 decode ps packet error (0x35a206/194176800)! ps_size=12672 complete=0

[2020-06-02 11:57:26.917][Trace][16246][338] gb28181: client_id chid0, unkonw ps data (0/251412525) 00 00 00 01

[2020-06-02 11:57:27.014][Trace][16246][367] <- CPB time=2045218558, okbps=0,0,0, ikbps=1101,1223,954, mr=0/350, p1stpt=20000, pnt=5000
[2020-06-02 11:57:27.253][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a102, pre=44115, cur=44139, peer(110.19.190.90, 13795)
[2020-06-02 11:57:27.255][Trace][16246][384] gb28181: client_id 34020000001320000040@34020000001320000041, unkonw ps data (0x35a102/194306400) 4b ffffffa2 ffffffd9 6c

[2020-06-02 11:57:27.255][Trace][16246][384] gb28181: client_id 34020000001320000040@34020000001320000041 decode ps packet error (0x35a102/194306400)! ps_size=26279 complete=58479

[2020-06-02 11:57:27.255][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a306, pre=23998, cur=24001, peer(110.19.190.90, 13799)
[2020-06-02 11:57:27.436][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a306, pre=24221, cur=24229, peer(110.19.190.90, 13799)
[2020-06-02 11:57:27.436][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a102, pre=44221, cur=44224, peer(110.19.190.90, 13795)
[2020-06-02 11:57:27.436][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x698105, pre=10691, cur=10693, peer(124.67.19.39, 4408)
[2020-06-02 11:57:27.436][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x698105, pre=10693, cur=10695, peer(124.67.19.39, 4408)
[2020-06-02 11:57:27.436][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a102, pre=44224, cur=44226, peer(110.19.190.90, 13795)
[2020-06-02 11:57:27.436][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a306, pre=24230, cur=24233, peer(110.19.190.90, 13799)
[2020-06-02 11:57:27.437][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a206, pre=57425, cur=57453, peer(110.19.190.90, 13796)
[2020-06-02 11:57:27.437][Trace][16246][384] gb28181: client_id 34020000001320000040@34020000001320000041, unkonw ps data (0x35a102/194328000) 65 0b 65 ffffffe7

[2020-06-02 11:57:27.437][Trace][16246][384] gb28181: client_id 34020000001320000040@34020000001320000041 decode ps packet error (0x35a102/194328000)! ps_size=12593 complete=13993

[2020-06-02 11:57:27.437][Trace][16246][387] gb28181: client_id 34020000001320000040@34020000001320000042, unkonw ps data (0x35a206/194227200) ffffff8b ffffff85 00 00

[2020-06-02 11:57:27.437][Trace][16246][387] gb28181: client_id 34020000001320000040@34020000001320000042 decode ps packet error (0x35a206/194227200)! ps_size=28 complete=17574

[2020-06-02 11:57:27.438][Trace][16246][390] gb28181: client_id 34020000001320000040@34020000001320000043, unkonw ps data (0x35a306/194133600) ffffffb6 ffffffa7 27 65

[2020-06-02 11:57:27.438][Trace][16246][390] gb28181: client_id 34020000001320000040@34020000001320000043 decode ps packet error (0x35a306/194133600)! ps_size=12115 complete=0

[2020-06-02 11:57:27.462][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x69840b, pre=27045, cur=27054, peer(124.67.19.39, 4488)
[2020-06-02 11:57:27.477][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0, pre=64670, cur=64672, peer(1.30.6.152, 56036)
[2020-06-02 11:57:27.477][Trace][16246][338] gb28181: client_id chid0, unkonw ps data (0/251466525) 6b 0e 0d 02

[2020-06-02 11:57:27.477][Trace][16246][338] gb28181: client_id chid0 decode ps packet error (0/251466525)! ps_size=4228 complete=5553

[2020-06-02 11:57:27.535][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x698105, pre=10756, cur=10758, peer(124.67.19.39, 4408)
[2020-06-02 11:57:27.535][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x698105, pre=10759, cur=10757, peer(124.67.19.39, 4408)
[2020-06-02 11:57:27.535][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x698105, pre=10757, cur=10760, peer(124.67.19.39, 4408)
[2020-06-02 11:57:27.536][Trace][16246][360] gb28181: client_id 34020000001320000010@34020000001320000011, unkonw ps data (0x698105/567932400) 64 ffffffd2 63 ffffffee

[2020-06-02 11:57:27.536][Trace][16246][360] gb28181: client_id 34020000001320000010@34020000001320000011 decode ps packet error (0x698105/567932400)! ps_size=256694 complete=184430

[2020-06-02 11:57:27.563][Trace][16246][426] gb28181: sip session=34020000001320000040 peer(110.19.190.90, 13927) status(RegisterOk,AliveOk) duration(2162,3)
[2020-06-02 11:57:27.563][Trace][16246][426] gb28181: sip session=34020000001320000040 device=34020000001320000041 status(ON, InviteOk), duration(2160)
[2020-06-02 11:57:27.563][Trace][16246][426] gb28181: sip session=34020000001320000040 device=34020000001320000042 status(ON, InviteOk), duration(2159)
[2020-06-02 11:57:27.563][Trace][16246][426] gb28181: sip session=34020000001320000040 device=34020000001320000043 status(ON, InviteOk), duration(2158)
[2020-06-02 11:57:27.563][Trace][16246][426] gb28181: sip session=34020000001320000040 device=34020000001320000044 status(ON, InviteOk), duration(2157)
[2020-06-02 11:57:27.674][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x69840b, pre=27118, cur=27124, peer(124.67.19.39, 4488)
[2020-06-02 11:57:27.674][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x69840b, pre=27124, cur=27119, peer(124.67.19.39, 4488)
[2020-06-02 11:57:27.674][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x69840b, pre=27123, cur=27125, peer(124.67.19.39, 4488)
[2020-06-02 11:57:27.675][Trace][16246][374] gb28181: client_id 34020000001320000010@34020000001320000014, unkonw ps data (0x69840b/570945600) 45 2b ffffffbb ffffffe2

[2020-06-02 11:57:27.675][Trace][16246][374] gb28181: client_id 34020000001320000010@34020000001320000014 decode ps packet error (0x69840b/570945600)! ps_size=135978 complete=61522

[2020-06-02 11:57:27.675][Trace][16246][374] gb28181: client_id 34020000001320000010@34020000001320000014, unkonw ps data (0x69840b/570952800) 00 00 00 00

[2020-06-02 11:57:27.675][Trace][16246][374] gb28181: client_id 34020000001320000010@34020000001320000014 decode ps packet error (0x69840b/570952800)! ps_size=28 complete=3532

[2020-06-02 11:57:27.675][Trace][16246][374] gb28181: client_id 34020000001320000010@34020000001320000014, unkonw ps data (0x69840b/570956400) 30 ffffffa6 ffffffe5 41

[2020-06-02 11:57:27.675][Trace][16246][374] gb28181: client_id 34020000001320000010@34020000001320000014 decode ps packet error (0x69840b/570956400)! ps_size=1400 complete=0

[2020-06-02 11:57:27.675][Trace][16246][374] gb28181: client_id 34020000001320000010@34020000001320000014, unkonw ps data (0x69840b/570952800) 00 00 00 01

[2020-06-02 11:57:27.675][Trace][16246][374] gb28181: client_id 34020000001320000010@34020000001320000014, unkonw ps data (0x69840b/570956400) ffffff87 65 5d 53

[2020-06-02 11:57:27.675][Trace][16246][374] gb28181: client_id 34020000001320000010@34020000001320000014 decode ps packet error (0x69840b/570956400)! ps_size=2080 complete=3480

[2020-06-02 11:57:27.835][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x69840b, pre=27166, cur=27168, peer(124.67.19.39, 4488)
[2020-06-02 11:57:27.835][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x69830c, pre=30654, cur=30656, peer(124.67.19.39, 4444)
[2020-06-02 11:57:27.835][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a206, pre=57622, cur=57629, peer(110.19.190.90, 13796)
[2020-06-02 11:57:27.837][Trace][16246][374] gb28181: client_id 34020000001320000010@34020000001320000014, unkonw ps data (0x69840b/570996000) 00 00 00 01

[2020-06-02 11:57:27.837][Trace][16246][387] gb28181: client_id 34020000001320000040@34020000001320000042, unkonw ps data (0x35a206/194274000) 30 11 ffffff93 fffffff4

[2020-06-02 11:57:27.837][Trace][16246][387] gb28181: client_id 34020000001320000040@34020000001320000042 decode ps packet error (0x35a206/194274000)! ps_size=3162 complete=9934

[2020-06-02 11:57:27.873][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x202e105, pre=53039, cur=53046, peer(111.127.40.46, 17016)
[2020-06-02 11:57:27.915][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x202e204, pre=54116, cur=54122, peer(111.127.40.46, 17020)
[2020-06-02 11:57:27.915][Trace][16246][365] gb28181: client_id 34020000001320000020@34020000001320000022, unkonw ps data (0x202e204/582629283) 00 00 00 00

[2020-06-02 11:57:27.915][Trace][16246][365] gb28181: client_id 34020000001320000020@34020000001320000022 decode ps packet error (0x202e204/582629283)! ps_size=1428 complete=3132

[2020-06-02 11:57:28.013][Trace][16246][369] gb28181: client_id 34020000001320000010@34020000001320000013, unkonw ps data (0x69830c/571042800) ffffff97 6e 5b 3c

[2020-06-02 11:57:28.013][Trace][16246][369] gb28181: client_id 34020000001320000010@34020000001320000013 decode ps packet error (0x69830c/571042800)! ps_size=140714 complete=61522

[2020-06-02 11:57:28.241][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a102, pre=44580, cur=44582, peer(110.19.190.90, 13795)
[2020-06-02 11:57:28.241][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a102, pre=44582, cur=44581, peer(110.19.190.90, 13795)
[2020-06-02 11:57:28.241][Trace][16246][384] gb28181: client_id 34020000001320000040@34020000001320000041, unkonw ps data (0x35a102/194414400) ffffffbd ffffffbd 66 4b

[2020-06-02 11:57:28.241][Trace][16246][384] gb28181: client_id 34020000001320000040@34020000001320000041 decode ps packet error (0x35a102/194414400)! ps_size=18263 complete=19663

[2020-06-02 11:57:28.259][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a102, pre=44581, cur=44583, peer(110.19.190.90, 13795)
[2020-06-02 11:57:28.259][Trace][16246][384] gb28181: client_id 34020000001320000040@34020000001320000041, unkonw ps data (0x35a102/194414400) 4c 60 7b 2b

[2020-06-02 11:57:28.259][Trace][16246][384] gb28181: client_id 34020000001320000040@34020000001320000041 decode ps packet error (0x35a102/194414400)! ps_size=1734 complete=0

[2020-06-02 11:57:28.415][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x202e204, pre=54248, cur=54263, peer(111.127.40.46, 17020)
[2020-06-02 11:57:28.588][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a40f, pre=58992, cur=58994, peer(110.19.190.90, 13800)
[2020-06-02 11:57:28.588][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a40f, pre=58995, cur=58993, peer(110.19.190.90, 13800)
[2020-06-02 11:57:28.588][Trace][16246][393] gb28181: client_id 34020000001320000040@34020000001320000044, unkonw ps data (0x35a40f/194184000) fffffff9 59 67 14

[2020-06-02 11:57:28.588][Trace][16246][393] gb28181: client_id 34020000001320000040@34020000001320000044 decode ps packet error (0x35a40f/194184000)! ps_size=18562 complete=18545

[2020-06-02 11:57:28.588][Trace][16246][393] gb28181: client_id 34020000001320000040@34020000001320000044, unkonw ps data (0x35a40f/194184000) ffffffe5 ffffffb8 7d 62

[2020-06-02 11:57:28.588][Trace][16246][393] gb28181: client_id 34020000001320000040@34020000001320000044 decode ps packet error (0x35a40f/194184000)! ps_size=317 complete=0

[2020-06-02 11:57:28.618][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a40f, pre=58993, cur=58996, peer(110.19.190.90, 13800)
[2020-06-02 11:57:28.830][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0, pre=64942, cur=64945, peer(1.30.6.152, 56036)
[2020-06-02 11:57:28.830][Trace][16246][338] gb28181: client_id chid0, unkonw ps data (0/251538525) 00 35 31 30

[2020-06-02 11:57:28.830][Trace][16246][338] gb28181: client_id chid0 decode ps packet error (0/251538525)! ps_size=4228 complete=5697

[2020-06-02 11:57:28.880][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x202e204, pre=54301, cur=54304, peer(111.127.40.46, 17020)
[2020-06-02 11:57:28.880][Trace][16246][365] gb28181: client_id 34020000001320000020@34020000001320000022, unkonw ps data (0x202e204/582733416) ffffffa7 ffffff83 3d 2b

[2020-06-02 11:57:28.880][Trace][16246][365] gb28181: client_id 34020000001320000020@34020000001320000022 decode ps packet error (0x202e204/582733416)! ps_size=704 complete=0

[2020-06-02 11:57:28.882][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a206, pre=58106, cur=58128, peer(110.19.190.90, 13796)
[2020-06-02 11:57:28.882][Trace][16246][387] gb28181: client_id 34020000001320000040@34020000001320000042, unkonw ps data (0x35a206/194353200) 00 29 53 50

[2020-06-02 11:57:28.882][Trace][16246][387] gb28181: client_id 34020000001320000040@34020000001320000042 decode ps packet error (0x35a206/194353200)! ps_size=15762 complete=44019

[2020-06-02 11:57:28.901][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x202e105, pre=53147, cur=53150, peer(111.127.40.46, 17016)
[2020-06-02 11:57:28.901][Trace][16246][359] gb28181: client_id 34020000001320000020@34020000001320000021, unkonw ps data (0x202e105/581863950) 75 41 ffffffbe ffffffd3

[2020-06-02 11:57:28.901][Trace][16246][359] gb28181: client_id 34020000001320000020@34020000001320000021 decode ps packet error (0x202e105/581863950)! ps_size=2828 complete=4628

[2020-06-02 11:57:29.275][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a206, pre=58277, cur=58279, peer(110.19.190.90, 13796)
[2020-06-02 11:57:29.275][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a206, pre=58279, cur=58278, peer(110.19.190.90, 13796)
[2020-06-02 11:57:29.275][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a206, pre=58278, cur=58280, peer(110.19.190.90, 13796)
[2020-06-02 11:57:29.276][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x35a102, pre=45040, cur=45070, peer(110.19.190.90, 13795)
[2020-06-02 11:57:29.276][Warn][16246][331][11] gb28181: ps sequence_number out of order, ssrc=0x202e204, pre=54334, cur=54336, peer(111.127.40.46, 17020)
[2020-06-02 11:57:29.276][Trace][16246][387] gb28181: client_id 34020000001320000040@34020000001320000042, unkonw ps data (0x35a206/194389200) 5e 2f 3e ffffffca

[2020-06-02 11:57:29.276][Trace][16246][387] gb28181: client_id 34020000001320000040@34020000001320000042 decode ps packet error (0x35a206/194389200)! ps_size=18335 complete=19735

[2020-06-02 11:57:29.276][Trace][16246][387] gb28181: client_id 34020000001320000040@34020000001320000042, unkonw ps data (0x35a206/194389200) 69 ffffffae ffffffe0 ffffff9d

[2020-06-02 11:57:29.276][Trace][16246][387] gb28181: client_id 34020000001320000040@34020000001320000042 decode ps packet error (0x35a206/194389200)! ps_size=1734 complete=0

[2020-06-02 11:57:29.276][Trace][16246][384] gb28181: client_id 34020000001320000040@34020000001320000041, unkonw ps data (0x35a102/194486400) 00 00 00 01

srs: src/protocol/srs_raw_avc.cpp:154: virtual SrsCplxError* SrsRawH264Stream::mux_sequence_header(std::string, std::string, uint32_t, uint32_t, std::string&): Assertion `(int)sps.length() >= 4' failed.
./start_gb28181.sh: line 2: 16246 Aborted /opt/srs/trunk/objs/srs -c /opt/srs/trunk/conf/push.gb28181.conf

Given the context, the translation is as follows:

'In the given environment, there has been a continuous prompt indicating issues with the PS data... and eventually, it crashed...

TRANS_BY_GPT3

@feixuezhang
Copy link

feixuezhang commented Jun 6, 2020

I am experiencing this problem on my end.
src/protocol/srs_raw_avc.cpp:80: virtual bool SrsRawH264Stream::is_sps(char*, int): Assertion `nb_frame > 0' failed.

TRANS_BY_GPT3

@dwj192
Copy link
Author

dwj192 commented Jun 11, 2020

I am experiencing this issue on my end.
src/protocol/srs_raw_avc.cpp:80: virtual bool SrsRawH264Stream::is_sps(char*, int): Assertion `nb_frame > 0' failed.

It's the same as my first situation... The probability of this error is high...

TRANS_BY_GPT3

@739988940
Copy link

739988940 commented Jul 9, 2020

I also occasionally encounter this error, but sometimes it returns to normal. Additionally, how can this receiving stream be converted to HTTP-FLV?

Description

Please describe your issue here.

  1. SRS version: srs-4.0.23
  2. The log of SRS is as follows:
[2020-06-01 20:11:34.573][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111 decode ps packet error (0x698107/914353200)! ps_size=4228  complete=8884 

[2020-06-01 20:11:34.573][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111, unkonw ps data (0x698107/914356800) 64 03 ffffffb7 ffffffaa

[2020-06-01 20:11:34.573][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111 decode ps packet error (0x698107/914356800)! ps_size=4015  complete=0 

[2020-06-01 20:11:34.573][Trace][24225][1045] gb28181: client_id 34020000001320023110@34020000001320023113, unkonw ps data (0x698304/919004400) ffffffe5 41 5a ffffff91

[2020-06-01 20:11:34.573][Trace][24225][1045] gb28181: client_id 34020000001320023110@34020000001320023113 decode ps packet error (0x698304/919004400)! ps_size=1106  complete=0 

[2020-06-01 20:11:34.674][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698107, pre=37005, cur=37007, peer(19.19.19.87, 29928)
[2020-06-01 20:11:34.674][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698107, pre=37007, cur=37006, peer(19.19.19.87, 29928)
[2020-06-01 20:11:34.674][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698107, pre=37006, cur=37008, peer(19.19.19.87, 29928)
[2020-06-01 20:11:34.674][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698107, pre=37010, cur=37012, peer(19.19.19.87, 29928)
[2020-06-01 20:11:34.674][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698107, pre=37012, cur=37011, peer(19.19.19.87, 29928)
[2020-06-01 20:11:34.675][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698107, pre=37011, cur=37013, peer(19.19.19.87, 29928)
[2020-06-01 20:11:34.675][Warn][24225][1039][11] gb28181: demix ps stream error:code=3041 : process ps video packet : demux annexb : annexb start code
thread [24225][1039]: on_ps_stream() [src/app/srs_app_gb28181.cpp:613][errno=11]
thread [24225][1039]: on_rtp_video() [src/app/srs_app_gb28181.cpp:959][errno=11]
thread [24225][1039]: annexb_demux() [src/protocol/srs_raw_avc.cpp:56][errno=11]
[2020-06-01 20:11:35.645][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698107, pre=37258, cur=37298, peer(19.19.19.87, 29928)
[2020-06-01 20:11:35.645][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x69820a, pre=22271, cur=22276, peer(19.19.19.87, 29930)
[2020-06-01 20:11:35.645][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698304, pre=44270, cur=44277, peer(19.19.19.87, 29940)
[2020-06-01 20:11:35.646][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111, unkonw ps data (0x698107/914403600) ffffffe8 08 05 7c

[2020-06-01 20:11:35.646][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111 decode ps packet error (0x698107/914403600)! ps_size=47628  complete=61468 

[2020-06-01 20:11:35.646][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111, unkonw ps data (0x698107/914410800) ffffffe7 ffffffd1 ffffffea 6d

[2020-06-01 20:11:35.646][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111 decode ps packet error (0x698107/914410800)! ps_size=3721  complete=0 

[2020-06-01 20:11:35.653][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x202e108, pre=24180, cur=24183, peer(111.111.111.234, 21104)
[2020-06-01 20:11:35.653][Trace][24225][1069] gb28181: client_id chid33743112, unkonw ps data (0x202e108/860420883) 10 ffffffb4 ffffff97 ffffffc4

[2020-06-01 20:11:35.653][Trace][24225][1069] gb28181: client_id chid33743112 decode ps packet error (0x202e108/860420883)! ps_size=52727  complete=55527 

[2020-06-01 20:11:39.284][Trace][24225][1027] <- GBS gb28181: client_id , peer(19.19.19.87, 29928) ps rtp packet 1412B, age=1787594259, vt=2/96, sts=38655/914760000/0x698107, paylod=1400B
[2020-06-01 20:11:39.574][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698107, pre=38861, cur=38888, peer(19.19.19.87, 29928)
[2020-06-01 20:11:39.574][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x69820a, pre=22725, cur=22728, peer(19.19.19.87, 29930)
[2020-06-01 20:11:39.574][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698304, pre=44906, cur=44913, peer(19.19.19.87, 29940)
[2020-06-01 20:11:39.576][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111, unkonw ps data (0x698107/914774400) ffffffd5 ffffff8f ffffffb0 3f

[2020-06-01 20:11:39.576][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111 decode ps packet error (0x698107/914774400)! ps_size=2828  complete=18609 

[2020-06-01 20:11:39.594][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x202e108, pre=24617, cur=24619, peer(111.111.111.234, 21104)
[2020-06-01 20:11:39.772][Trace][24225][1069] gb28181: client_id chid33743112, unkonw ps data (0x202e108/860812227) ffffff99 3b ffffffc1 ffffffe2

[2020-06-01 20:11:39.773][Trace][24225][1069] gb28181: client_id chid33743112 decode ps packet error (0x202e108/860812227)! ps_size=54363  complete=55763 

[2020-06-01 20:11:40.190][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698107, pre=39016, cur=39024, peer(19.19.19.87, 29928)
[2020-06-01 20:11:40.191][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111, unkonw ps data (0x698107/914814000) 38 4c ffffff8e 35

[2020-06-01 20:11:40.191][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111 decode ps packet error (0x698107/914814000)! ps_size=7028  complete=15700 

[2020-06-01 20:11:40.192][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x202e108, pre=24748, cur=24750, peer(111.111.111.234, 21104)
[2020-06-01 20:11:40.195][Trace][24225][1069] gb28181: client_id chid33743112, unkonw ps data (0x202e108/860909727) 00 00 00 00

[2020-06-01 20:11:40.195][Trace][24225][1069] gb28181: client_id chid33743112 decode ps packet error (0x202e108/860909727)! ps_size=5376  complete=6776 

[2020-06-01 20:11:41.042][Trace][24225][1076] <- CPB time=1905310580, okbps=0,0,0, ikbps=1049,1101,1068, mr=0/350, p1stpt=20000, pnt=5000
[2020-06-01 20:11:41.527][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x69820a, pre=22947, cur=22952, peer(19.19.19.87, 29930)
[2020-06-01 20:11:41.527][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698107, pre=39673, cur=39706, peer(19.19.19.87, 29928)
[2020-06-01 20:11:41.527][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698304, pre=45233, cur=45240, peer(19.19.19.87, 29940)
[2020-06-01 20:11:41.529][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111, unkonw ps data (0x698107/914950800) 31 fffffffd 69 ffffffd8

[2020-06-01 20:11:41.529][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111 decode ps packet error (0x698107/914950800)! ps_size=8428  complete=16715 

[2020-06-01 20:11:42.228][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698304, pre=45370, cur=45372, peer(19.19.19.87, 29940)
[2020-06-01 20:11:42.228][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698107, pre=39851, cur=39857, peer(19.19.19.87, 29928)
[2020-06-01 20:11:42.229][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111, unkonw ps data (0x698107/915001200) 00 00 00 00

[2020-06-01 20:11:42.229][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111 decode ps packet error (0x698107/915001200)! ps_size=11228  complete=15164 

[2020-06-01 20:11:42.230][Trace][24225][1045] gb28181: client_id 34020000001320023110@34020000001320023113, unkonw ps data (0x698304/919652400) 00 00 00 01

[2020-06-01 20:11:42.230][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x69820a, pre=23062, cur=23067, peer(19.19.19.87, 29930)
[2020-06-01 20:11:42.230][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111, unkonw ps data (0x698107/915004800) 6a 0b ffffff87 fffffffc

[2020-06-01 20:11:42.230][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111 decode ps packet error (0x698107/915004800)! ps_size=12861  complete=0 

[2020-06-01 20:11:43.583][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698107, pre=40490, cur=40526, peer(19.19.19.87, 29928)
[2020-06-01 20:11:43.584][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698304, pre=45561, cur=45570, peer(19.19.19.87, 29940)
[2020-06-01 20:11:43.585][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111, unkonw ps data (0x698107/915130800) 00 00 00 00

[2020-06-01 20:11:43.585][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111 decode ps packet error (0x698107/915130800)! ps_size=8428  complete=16969 

[2020-06-01 20:11:43.586][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x69820a, pre=23170, cur=23177, peer(19.19.19.87, 29930)
[2020-06-01 20:11:43.586][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111, unkonw ps data (0x698107/915141600) 00 00 00 01

[2020-06-01 20:11:43.604][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x202e108, pre=25098, cur=25101, peer(111.111.111.234, 21104)
[2020-06-01 20:11:43.634][Trace][24225][1069] gb28181: client_id chid33743112, unkonw ps data (0x202e108/861187227) 61 31 44 ffffffd5

[2020-06-01 20:11:43.634][Trace][24225][1069] gb28181: client_id chid33743112 decode ps packet error (0x202e108/861187227)! ps_size=52855  complete=55655 

[2020-06-01 20:11:44.163][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698304, pre=45708, cur=45710, peer(19.19.19.87, 29940)
[2020-06-01 20:11:44.163][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698107, pre=40661, cur=40667, peer(19.19.19.87, 29928)
[2020-06-01 20:11:44.165][Trace][24225][1045] gb28181: client_id 34020000001320023110@34020000001320023113, unkonw ps data (0x698304/919836000) 00 00 00 00

[2020-06-01 20:11:44.165][Trace][24225][1045] gb28181: client_id 34020000001320023110@34020000001320023113 decode ps packet error (0x698304/919836000)! ps_size=4848  complete=6248 

[2020-06-01 20:11:44.166][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111, unkonw ps data (0x698107/915177600) 60 ffffffcd 2c 79

[2020-06-01 20:11:44.166][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111 decode ps packet error (0x698107/915177600)! ps_size=8105  complete=15105 

[2020-06-01 20:11:45.553][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698107, pre=41329, cur=41365, peer(19.19.19.87, 29928)
[2020-06-01 20:11:45.553][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x69820a, pre=23393, cur=23398, peer(19.19.19.87, 29930)
[2020-06-01 20:11:45.554][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698304, pre=45891, cur=45899, peer(19.19.19.87, 29940)
[2020-06-01 20:11:45.555][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111, unkonw ps data (0x698107/915310800) 60 37 29 23

[2020-06-01 20:11:45.555][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111 decode ps packet error (0x698107/915310800)! ps_size=8428  complete=17331 

[2020-06-01 20:11:45.795][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x202e108, pre=25344, cur=25347, peer(111.111.111.234, 21104)
[2020-06-01 20:11:45.795][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x202e108, pre=25347, cur=25345, peer(111.111.111.234, 21104)
[2020-06-01 20:11:45.795][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x202e108, pre=25346, cur=25348, peer(111.111.111.234, 21104)
[2020-06-01 20:11:45.797][Warn][24225][1069][11] gb28181: demix ps stream error:code=3041 : process ps video packet : demux annexb : annexb start code
thread [24225][1069]: on_ps_stream() [src/app/srs_app_gb28181.cpp:613][errno=11]
thread [24225][1069]: on_rtp_video() [src/app/srs_app_gb28181.cpp:959][errno=11]
thread [24225][1069]: annexb_demux() [src/protocol/srs_raw_avc.cpp:56][errno=11]
[2020-06-01 20:11:46.164][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698107, pre=41492, cur=41497, peer(19.19.19.87, 29928)
[2020-06-01 20:11:46.166][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111, unkonw ps data (0x698107/915357600) ffffff9a ffffffc2 ffffff88 ffffff80

[2020-06-01 20:11:46.166][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111 decode ps packet error (0x698107/915357600)! ps_size=5699  complete=11299 

[2020-06-01 20:11:46.166][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698304, pre=46035, cur=46037, peer(19.19.19.87, 29940)
[2020-06-01 20:11:46.166][Trace][24225][1045] gb28181: client_id 34020000001320023110@34020000001320023113, unkonw ps data (0x698304/920016000) ffffffcb fffffffd 6f fffffffc

[2020-06-01 20:11:46.166][Trace][24225][1045] gb28181: client_id 34020000001320023110@34020000001320023113 decode ps packet error (0x698304/920016000)! ps_size=4228  complete=5589 

[2020-06-01 20:11:46.575][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x202e20b, pre=26169, cur=26171, peer(111.111.111.234, 21106)
[2020-06-01 20:11:46.575][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x202e20b, pre=26171, cur=26170, peer(111.111.111.234, 21106)
[2020-06-01 20:11:46.575][Trace][24225][1072] gb28181: client_id chid33743371, unkonw ps data (0x202e20b/859935399) ffffff97 5c ffffff87 ffffff95

[2020-06-01 20:11:46.575][Trace][24225][1072] gb28181: client_id chid33743371 decode ps packet error (0x202e20b/859935399)! ps_size=5812  complete=7212 

[2020-06-01 20:11:46.668][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x202e20b, pre=26170, cur=26172, peer(111.111.111.234, 21106)
[2020-06-01 20:11:46.668][Trace][24225][1072] gb28181: client_id chid33743371, unkonw ps data (0x202e20b/859935399) 59 fffffffb 14 ffffffbd

[2020-06-01 20:11:46.668][Trace][24225][1072] gb28181: client_id chid33743371 decode ps packet error (0x202e20b/859935399)! ps_size=1400  complete=0 

[2020-06-01 20:11:47.565][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698107, pre=42141, cur=42179, peer(19.19.19.87, 29928)
[2020-06-01 20:11:47.565][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x69820a, pre=23617, cur=23623, peer(19.19.19.87, 29930)
[2020-06-01 20:11:47.565][Warn][24225][1027][11] gb28181: ps sequence_number out of order, ssrc=0x698304, pre=46227, cur=46235, peer(19.19.19.87, 29940)
[2020-06-01 20:11:47.565][Trace][24225][1042] gb28181: client_id 34020000001320023110@34020000001320023112, unkonw ps data (0x69820a/920253600) 00 00 00 01

[2020-06-01 20:11:47.566][Trace][24225][1039] gb28181: client_id 34020000001320023110@34020000001320023111, unkonw ps data (0x698107/915490800) 00 00 00 01

srs: src/protocol/srs_raw_avc.cpp:80: virtual bool SrsRawH264Stream::is_sps(char*, int): Assertion `nb_frame > 0' failed.
./start_gb28181.sh: line 2: 24225 Aborted                 /opt/srs/trunk/objs/srs -c /opt/srs/trunk/conf/push.gb28181.conf
  1. The configuration of SRS is as follows:
# push gb28181 stream to SRS.

listen                  1935;
max_connections         1000;
daemon                  off;
srs_log_tank            console;

http_api {
    enabled         on;
    listen          1985;
}   

http_server {
    enabled         on;
    listen          8080;
    dir             ./objs/nginx/html;
}

stats {
    network         0;
}

stream_caster {
    enabled             on;
    caster              gb28181;

    # Forward the stream to the rtmp server address and port
    # TODO: https://github.com/ossrs/srs/pull/1679/files#r400875104
    # [stream] is the VideoChannelCodecID for sip
    # The automatically created channel [stream] is 'chid[ssrc]' where [ssrc] is the rtp ssrc
    # [ssrc] is the ssrc in rtp
    output              rtmp://127.0.0.1:1935/live/[stream];
    
    # Multiplexing port for receiving rtp streams from the device end
    listen              9000;

    # Minimum value for the range of listening ports for rtp reception
    rtp_port_min        58200;
    # Maximum value for the range of listening ports for rtp reception
    rtp_port_max        58300;

    # Whether to wait for a keyframe before forwarding,
    # off: no need to wait, forward directly
    # on: wait for the first keyframe before forwarding
    wait_keyframe       off;
    
    # Idle waiting time for RTP packets, if no packets are received within the specified time
    # the RTP listening connection automatically stops and sends a BYE command
    rtp_idle_timeout    30;

    # Whether to forward the audio stream
    # Currently only supports AAC format, so the device needs to support AAC format
    # on: forward audio
    # off: do not forward audio, only video
    # *Note*!!!: flv only supports three sample rates: 11025, 22050, 44100
    # If the device does not support any of these three, it will automatically select one format during forwarding
    # It will also encapsulate the ADTS header in the FLV AAC raw data
    # This allows the player to automatically select the sampling frequency based on the ADTS header
    # Players like ffplay and VLC can do this, but Flash does not have sound
    # because Flash only supports 11025, 22050, 44100.
    audio_enable        off;

    # Server host, can be a domain name or IP address
    # This is the address to which the device sends the media, whether the server is on the internal or external network
    # If it is on the external network, the external address should be used
    # When calling the API to create a stream session, the returned IP address is also the host
    # $CANDIDATE is a system environment variable, used to retrieve the address from the environment variables
    # If it is not configured, use *
    # * represents the network card address specified by the stats network, if the network is not configured, the default is the address of the 0th network card.
    # TODO: https://github.com/ossrs/srs/pull/1679/files#r400917594
    # host       $CANDIDATE;
    host		114.114.189.151;

    # Create an RTMP media channel based on the received PS RTP packets, no need to create via API interface
    # The RTMP address parameter [stream] is the channel ID, in the format chid[ssrc]
    auto_create_channel   on;

    sip {
        # Whether to enable internal SIP signaling in SRS
        # Set to "on" to use SRS for signaling, "off" to only forward PS streams
        enabled on;
        
        # UDP port for SIP listening
        listen              5060;
        
        # SIP server ID.
        # The device configuration number needs to be consistent with this value, otherwise registration will fail.
        serial              34020000001320023101;

        # SIP server domain.
    realm               3402000000;

    # Timeout for receiving response after sending ACK from the server, in seconds.
    # If there is no response within the specified time, it is considered a failure.
    ack_timeout         30;

    # Device heartbeat maintenance time, if no heartbeat is received within the specified time (in seconds),
    # it is considered that the device is offline.
    keepalive_timeout   120;

    # Whether to automatically send an invite to the device after registration
    # on: yes  off: no, it needs to be controlled through the API
    auto_play           on;
    # Whether the port for sending streams from the device is fixed
    # on: send streams to a multiplexing port like 9000
    # off: automatically select a port from the range between rtp_mix_port and rtp_max_port that is available
    invite_port_fixed     on;

    # Interval for querying the device list from the device or subdomain, in seconds
    # Default is 60 seconds
    query_catalog_interval  60;
}

}
rtc_server {
enabled on;
# Listen at udp://8000
listen 8000;
#
# The $CANDIDATE means fetch from env, if not configed, use * as default.
# The * means retrieving server IP automatically, from all network interfaces,
# @see #307 (comment)
candidate 114.114.189.151;
}
vhost defaultVhost {
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
}
rtc {
enabled on;
bframe discard;
}
}


**Replay**

> **How to replay bug?**

1. Both `Dahua NVR access` and `Keda NVR access` have this issue.
   Stream configuration:
   ![image](https://user-images.githubusercontent.com/11606336/83465794-a43a4f80-a4a7-11ea-91c2-dba195cc3c76.png)
   Access configuration:

![QQ图片20200602080858](https://user-images.githubusercontent.com/11606336/83466002-53772680-a4a8-11ea-92df-22382932c3b1.png)

**Expected Behavior**

> Describe what you expect to happen
> The main process should not crash.

TRANS_BY_GPT3

@zhouweiwei-design
Copy link

zhouweiwei-design commented Feb 7, 2021

Excuse me, has the problem been resolved? What was the reason?

TRANS_BY_GPT3

@zhoudafu123
Copy link

zhoudafu123 commented May 7, 2021

May I ask what is the composition method of your video streaming address? I am integrating with Hikvision or Dahua's NVR, but why is my video streaming address not showing any image? Are there any specific points to note when integrating with an NVR?

TRANS_BY_GPT3

@dwj192
Copy link
Author

dwj192 commented May 8, 2021

@zhoudafu123 Don't go any further, this is a deep pit. Just stick to using rtsp honestly. If you can't even make a demo, forget about actual usage.

TRANS_BY_GPT3

@winlinvip winlinvip added Bug It might be a bug. GB28181 For GB28181. labels Sep 4, 2021
@winlinvip winlinvip added this to the 4.0 milestone Sep 4, 2021
@winlinvip winlinvip reopened this Sep 4, 2021
@leoyao0613
Copy link

leoyao0613 commented Sep 22, 2021

Encountered the same problem when connecting to the NVR, hoping for a solution, thank you.

TRANS_BY_GPT3

@winlinvip
Copy link
Member

winlinvip commented Jan 5, 2022

Migrate to ossrs/srs-gb28181#5

GB has been moved to a separate repository srs-gb28181, please refer to #2845.
For any issues, please submit them to the GB repository bug, or pr.
Make sure to maintain the markdown structure.

TRANS_BY_GPT3

@winlinvip winlinvip changed the title GB28181接入NVR,跑一段时间后奔溃,进程退出 GB28181 access NVR, crashes after running for a while, process exits. Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug It might be a bug. GB28181 For GB28181. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

8 participants