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

[Error][26066][1kf04141][11] channel element 3.0 is not allocated(Resource temporarily unavailable) #61

Open
LiXueCai opened this issue Aug 10, 2022 · 0 comments

Comments

@LiXueCai
Copy link

注意:提问前,请先看FAQ(Please read FAQ before file an issue) ossrs/srs#2716

描述(Description)
海康摄像头,音频采集设置ACC,16kHz,16kbps
服务启动方式: ./objs/srs -c ./conf/push.gb28181.tcp.conf
日志显示报错:[Error][26066][1kf04141][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
视频没有声音,如何解决?

  1. SRS版本(Version): 5.0.26
    CentOS Linux release 7.9.2009 (Core)
  2. SRS的日志如下(Log):
    [root@localhost trunk]# ./objs/srs -c ./conf/push.gb28181.tcp.conf
    [2022-08-10 01:45:39.023][Trace][26092][0qg2z99l] XCORE-SRS/5.0.26(Leo)
    [2022-08-10 01:45:39.031][Trace][26092][0qg2z99l] config parse complete
    [2022-08-10 01:45:39.031][Warn][26092][0qg2z99l][22] transform: vhost.rtc.bframe to vhost.rtc.keep_bframe off
    [2022-08-10 01:45:39.031][Trace][26092][0qg2z99l] write log to console
    [2022-08-10 01:45:39.032][Trace][26092][0qg2z99l][MAIN] SRS/5.0.26(Leo), MIT
    [2022-08-10 01:45:39.032][Trace][26092][0qg2z99l] authors: Winlinwinlin@vip.126.com ZhaoWenjiezhaowenjie@tal.com ShiWeishiwei05@kuaishou.com XiaoZhihonghondaxiao@tencent.com WuPengqiangpengqiang.wpq@alibaba-inc.com XiaLixinxialixin@kanzhun.com LiPengmozhan.lp@alibaba-inc.com ChenGuanghuajinxue.cgh@alibaba-inc.com ChenHaibonmgchenhaibo@foxmail.com Johzzyhellojinqiang@gmail.com Zhouxiaojun2008279686030@qq.com Pengfei.mapengfei.ma.chn@outlook.com ZhangJunqinzhangjunqin@jd.com and https://github.com/ossrs/srs/blob/develop/trunk/AUTHORS.md#contributors
    [2022-08-10 01:45:39.032][Trace][26092][0qg2z99l] cwd=/opt/srsgb28181/srs-gb28181/trunk, work_dir=./, build: 2022-08-08 20:13:43, configure: --x86-x64 --gb28181=on, uname: Linux localhost.localdomain 3.10.0-1160.el7.x86_64 GB28181: fixed crash when deleting gb28181 channel  #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux, osx: 0, pkg: , region: , source:
    [2022-08-10 01:45:39.032][Trace][26092][0qg2z99l] configure detail: --prefix=/usr/local/srs --config=conf/srs.conf --hls=on --hds=off --dvr=on --ssl=on --https=on --ssl-1-0=off --ssl-local=off --sys-ssl=off --transcode=on --ingest=on --stat=on --http-callback=on --http-server=on --stream-caster=on --http-api=on --utest=off --cherrypy=off --srt=off --rtc=on --simulator=off --gb28181=on --iconv=off --cxx11=on --cxx14=off --ffmpeg-fit=on --nasm=on --srtp-nasm=on --clean=on --gperf=off --gmc=off --gmd=off --gmp=off --gcp=off --gprof=off --static=off --shared-st=off --shared-srt=off --shared-ffmpeg=off --log-verbose=off --log-info=off --log-trace=on --gcov=off --debug=off --debug-stats=off --cross-build=off --cc=gcc --cxx=g++ --ar=ar --ld=ld --randlib=randlib
    [2022-08-10 01:45:39.032][Trace][26092][0qg2z99l] srs checking config...
    [2022-08-10 01:45:39.034][Trace][26092][0qg2z99l] ips, iface[0] eth0 ipv4 0x11043 192.168.0.78, iface[1] eth0 ipv6 0x11043 fe80::eec0:d14a:e2a2:aa65%eth0
    [2022-08-10 01:45:39.034][Trace][26092][0qg2z99l] devices, intranet eth0 192.168.0.78, intranet eth0 fe80::eec0:d14a:e2a2:aa65%eth0
    [2022-08-10 01:45:39.034][Warn][26092][0qg2z99l][22] stats network use index=0, ip=192.168.0.78, ifname=eth0
    [2022-08-10 01:45:39.034][Warn][26092][0qg2z99l][22] stats disk not configed, disk iops disabled.
    [2022-08-10 01:45:39.034][Trace][26092][0qg2z99l] write log to console
    [2022-08-10 01:45:39.034][Trace][26092][0qg2z99l] features, rch:on, dash:on, hls:on, hds:off, srt:off, hc:on, ha:on, hs:on, hp:on, dvr:on, trans:on, inge:on, stat:on, sc:on
    [2022-08-10 01:45:39.034][Trace][26092][0qg2z99l] SRS on amd64 x86_64, conf:./conf/push.gb28181.tcp.conf, limit:1000, writev:1024, encoding:little-endian, HZ:100
    [2022-08-10 01:45:39.034][Trace][26092][0qg2z99l] mw sleep:350ms. mr enabled:on, default:0, sleep:350ms
    [2022-08-10 01:45:39.034][Trace][26092][0qg2z99l] gc:on, pq:30000ms, cscc:[0,16), csa:on, tn:on(may hurts performance), ss:auto(guess by merged write)
    [2022-08-10 01:45:39.034][Trace][26092][0qg2z99l] system default latency(ms): mw(0-350) + mr(0-350) + play-queue(0-30000)
    [2022-08-10 01:45:39.034][Warn][26092][0qg2z99l][22] SRS/5.0.26 is not stable
    [2022-08-10 01:45:39.050][Trace][26092][0qg2z99l] fingerprint=5D:0B:01:61:C5:F9:99:D0:6F:37:71:D4:8F:FE:C9:34:79:65:4C:16:EB:8B:24:9F:EF:AF:AE:0E:1F:08:92:68
    [2022-08-10 01:45:39.050][Trace][26092][0qg2z99l] CircuitBreaker: enabled=1, high=2x90, critical=1x95, dying=5x99
    [2022-08-10 01:45:39.050][Trace][26092][0qg2z99l] http flv live stream, vhost=defaultVhost, mount=[vhost]/[app]/[stream].flv
    [2022-08-10 01:45:39.050][Trace][26092][0qg2z99l] http: root mount to ./objs/nginx/html
    [2022-08-10 01:45:39.051][Trace][26092][0qg2z99l] server main cid=0qg2z99l, pid=26092, ppid=1148, asprocess=0
    [2022-08-10 01:45:39.051][Trace][26092][0qg2z99l] write pid=26092 to ./objs/srs.pid success!
    [2022-08-10 01:45:39.052][Trace][26092][0qg2z99l] RTMP listen at tcp://0.0.0.0:1935, fd=7
    [2022-08-10 01:45:39.052][Trace][26092][0qg2z99l] HTTP-API listen at tcp://0.0.0.0:1985, fd=8
    [2022-08-10 01:45:39.052][Trace][26092][0qg2z99l] HTTP-Server listen at tcp://0.0.0.0:8080, fd=9
    [2022-08-10 01:45:39.058][Trace][26092][0qg2z99l] UDP GB28181:DVR失败,只有48B;重新初始化摄像头后会好用, 但过一段时间重现 #2705 #10 LISTEN at 0.0.0.0:5060, SO_SNDBUF(default=212992, expect=10485760, actual=425984, r0=0), SO_RCVBUF(default=212992, expect=10485760, actual=425984, r0=0)
    [2022-08-10 01:45:39.058][Trace][26092][0qg2z99l] GB28181-SIP over UDP listen at udp://0.0.0.0:5060, fd=10
    [2022-08-10 01:45:39.063][Trace][26092][0qg2z99l] signal installed, reload=1, reopen=10, fast_quit=15, grace_quit=3
    [2022-08-10 01:45:39.063][Trace][26092][0qg2z99l] http: api mount /console to ./objs/nginx/html/console
    [2022-08-10 01:45:39.064][Trace][26092][0qg2z99l] rtc listen at udp://0.0.0.0:8000, fd=12
    [2022-08-10 01:45:39.064][Trace][26092][6932259o] Hybrid cpu=0.00%,13MB
    [2022-08-10 01:45:39.064][Warn][26092][30759126][22] use private address as ip: 192.168.0.78, ifname=eth0
    [2022-08-10 01:45:39.064][Trace][26092][30759126] Startup query id=a9f9e24e186f11eda3be0f9e63dc735c, eip=192.168.0.78, wait=417s
    [2022-08-10 01:45:39.065][Trace][26092][w59i81o5] GB28181: connection manager run, conns=0
    [2022-08-10 01:45:39.065][Trace][26092][547t2s8x] GB28181TCP: connection manager run, conns=0
    [2022-08-10 01:45:39.065][Trace][26092][xx6s2n24] TCP: connection manager run, conns=0
    [2022-08-10 01:45:39.066][Trace][26092][s25mk18w] UDP GB28181: SRS 60路摄像头推流转发为hls后频繁奔溃 #2624 #12 LISTEN at 0.0.0.0:8000, SO_SNDBUF(default=212992, expect=10485760, actual=425984, r0=0), SO_RCVBUF(default=212992, expect=10485760, actual=425984, r0=0)
    [2022-08-10 01:45:39.067][Trace][26092][67foij3y] RTC: connection manager run, conns=0
    [2022-08-10 01:45:44.018][Trace][26092][6932259o] Hybrid cpu=1.00%,13MB
    [2022-08-10 01:45:49.019][Trace][26092][6932259o] Hybrid cpu=0.00%,13MB
    [2022-08-10 01:45:53.072][Trace][26092][0qg2z99l] gb28181: request client id=34020000001320000099 peer(192.168.0.120, 5060)
    [2022-08-10 01:45:53.072][Trace][26092][0qg2z99l] gb28181: request method=REGISTER, uri=sip:34020000002000000001@3402000000, version=SIP/2.0 expires=3600
    [2022-08-10 01:45:54.019][Trace][26092][6932259o] Hybrid cpu=0.00%,13MB, cid=1,1, timer=62,0,0, clock=0,47,1,1,0,0,0,0,0
    [2022-08-10 01:45:58.081][Trace][26092][k8zim908] gb28181: sip session=34020000001320000099 peer(192.168.0.120, 5060) status(RegisterOk,AliveOk) duration(4,0)
    [2022-08-10 01:45:59.020][Trace][26092][6932259o] Hybrid cpu=0.00%,13MB, cid=1,1, timer=62,0,0, clock=0,47,1,1,0,0,0,0,0
    [2022-08-10 01:45:59.083][Trace][26092][k8zim908] gb28181: generate ssrc id=34020000001320000099@34020000001320000001, ssrc=12779785
    [2022-08-10 01:45:59.084][Trace][26092][k8zim908] new source, stream_url=/live/34020000001320000099@34020000001320000001
    [2022-08-10 01:45:59.084][Trace][26092][k8zim908] new source, stream_url=/live/34020000001320000099@34020000001320000001
    [2022-08-10 01:45:59.095][Trace][26092][k8zim908] RTC bridge from RTMP, rtmp2rtc=1, keep_bframe=0, merge_nalus=0
    [2022-08-10 01:45:59.095][Trace][26092][k8zim908] ignore disabled exec for vhost=
    [2022-08-10 01:45:59.095][Trace][26092][k8zim908] gb28181: create new stream channel id:34020000001320000099@34020000001320000001 rtmp url=rtmp://127.0.0.1:1935/live/34020000001320000099@34020000001320000001
    [2022-08-10 01:45:59.099][Trace][26092][0qg2z99l] gb28181: request client id=34020000001320000001, peer(192.168.0.120, 5060)
    [2022-08-10 01:45:59.099][Trace][26092][0qg2z99l] gb28181: respone method=INVITE, uri=34020000002000000001@3402000000, version=SIP/2.0
    [2022-08-10 01:45:59.099][Trace][26092][0qg2z99l] gb28181: INVITE response 34020000001320000001 client status=100
    [2022-08-10 01:45:59.115][Trace][26092][0qg2z99l] gb28181: ssrc in y line is 12779785:c30109
    [2022-08-10 01:45:59.116][Trace][26092][0qg2z99l] gb28181: request client id=34020000001320000001, peer(192.168.0.120, 5060)
    [2022-08-10 01:45:59.116][Trace][26092][0qg2z99l] gb28181: respone method=INVITE, uri=34020000002000000001@3402000000, version=SIP/2.0
    [2022-08-10 01:45:59.116][Trace][26092][0qg2z99l] gb28181: INVITE response 34020000001320000001 client status=200
    [2022-08-10 01:45:59.116][Trace][26092][0qg2z99l] gb28181: device unique id is 34020000001320000099@34020000001320000001
    [2022-08-10 01:45:59.121][Trace][26092][534w0720] gb28181 new connect by rtp-tcp from: 192.168.0.120:15060
    [2022-08-10 01:45:59.532][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24483904
    [2022-08-10 01:45:59.532][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24515232
    [2022-08-10 01:45:59.544][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24545248
    [2022-08-10 01:45:59.617][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24575264
    [2022-08-10 01:45:59.618][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24605280
    [2022-08-10 01:45:59.659][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24635296
    [2022-08-10 01:45:59.660][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24665312
    [2022-08-10 01:45:59.671][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24696640
    [2022-08-10 01:45:59.732][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24726656
    [2022-08-10 01:45:59.733][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24756672
    [2022-08-10 01:45:59.745][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24786688
    [2022-08-10 01:45:59.807][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24816704
    [2022-08-10 01:45:59.807][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24846720
    [2022-08-10 01:45:59.849][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24876736
    [2022-08-10 01:45:59.851][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24907312
    [2022-08-10 01:45:59.860][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24938640
    [2022-08-10 01:45:59.932][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24968656
    [2022-08-10 01:45:59.938][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:24999984
    [2022-08-10 01:45:59.946][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:25030000
    [2022-08-10 01:46:00.006][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:25060016
    [2022-08-10 01:46:00.007][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:25091344
    [2022-08-10 01:46:00.048][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:25121360
    [2022-08-10 01:46:00.049][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:25152688
    [2022-08-10 01:46:00.059][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:25182704
    [2022-08-10 01:46:00.064][Trace][26092][3bqpymei] RTP: jitbuffer key=34020000001320000099@34020000001320000001 reallocate a frame buffer size(2972>0) resize(32972)
    [2022-08-10 01:46:00.084][Trace][26092][k8zim908] gb28181: 34020000001320000099 clients device=34020000001320000001 send invite code=0
    [2022-08-10 01:46:00.133][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:25245712
    [2022-08-10 01:46:00.144][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:25277040
    [2022-08-10 01:46:00.207][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:25307056
    [2022-08-10 01:46:00.249][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:25337072
    [2022-08-10 01:46:00.335][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:25367088
    [2022-08-10 01:46:00.407][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:25397104
    [2022-08-10 01:46:00.449][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:30000, prevBuffer:0, _buffer:25427120
    [2022-08-10 01:46:00.460][Trace][26092][3bqpymei] RTP: jitbuffer key=34020000001320000099@34020000001320000001 reallocate a frame buffer size(204>0) resize(30204)
    [2022-08-10 01:46:00.460][Warn][26092][3bqpymei][11] gb28181: client_id 34020000001320000099@34020000001320000001, ps map is not aac (unknow) type, but stream many be aac adts, try update type
    [2022-08-10 01:46:01.070][Trace][26092][534w0720] <- GBS gb28181: client_id , peer(192.168.0.120, 15060) ps rtp packet 816B, age=22050552, vt=2/96, sts=108/140400/0xc30109, paylod=804B
    [2022-08-10 01:46:01.255][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:90000, prevBuffer:25030000, _buffer:25491840
    [2022-08-10 01:46:01.264][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:210000, prevBuffer:25491840, _buffer:342069264
    [2022-08-10 01:46:01.837][Trace][26092][3bqpymei] RTP: jitbuffer key=34020000001320000099@34020000001320000001 reallocate a frame buffer size(93576>32972) resize(123576)
    [2022-08-10 01:46:01.837][Trace][26092][3bqpymei] gb28181: ps map video es_type=h264(1b), es_id=e0, es_info_length=28
    [2022-08-10 01:46:01.838][Trace][26092][3bqpymei] 43B video sh, codec(7, profile=Main, level=3.1, 1280x720, 0kbps, 0.0fps, 0.0s)
    [2022-08-10 01:46:01.839][Trace][26092][3bqpymei] 4B audio sh, codec(10, profile=LC, 1channels, 0kbps, 16000HZ), flv(16bits, 1channels, 11025HZ)
    [2022-08-10 01:46:01.840][Warn][26092][3bqpymei][11] Multiple frames in a packet.
    [2022-08-10 01:46:01.840][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:01.867][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:01.867][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:01.898][Warn][26092][3bqpymei][11] VIDEO: stream not monotonically increase, please open mix_correct.
    [2022-08-10 01:46:01.928][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:01.928][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:02.020][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:02.084][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:02.085][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:02.146][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:02.208][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:02.329][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:02.421][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:02.513][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:02.636][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:02.727][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:02.825][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:02.890][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:02.952][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.013][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.075][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.136][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.229][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.259][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.262][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:90000, prevBuffer:25152688, _buffer:25905216
    [2022-08-10 01:46:03.268][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:210000, prevBuffer:25905216, _buffer:341307408
    [2022-08-10 01:46:03.351][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.351][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.413][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.474][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.474][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.535][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.535][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.627][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.657][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.657][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.749][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.810][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.932][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:03.994][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:04.021][Trace][26092][6932259o] Hybrid cpu=1.00%,16MB, cid=1,1, timer=62,0,0, clock=0,47,1,1,0,0,0,0,0
    [2022-08-10 01:46:04.118][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:04.208][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:04.336][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:04.428][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:04.459][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:04.555][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:04.616][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:04.678][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:04.739][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:04.831][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:04.861][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:04.955][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:04.955][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:05.017][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:05.078][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:05.078][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:05.140][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:05.140][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:05.232][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:05.253][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:90000, prevBuffer:24515232, _buffer:25744480
    [2022-08-10 01:46:05.262][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:05.263][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:05.263][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:210000, prevBuffer:25744480, _buffer:25834496
    [2022-08-10 01:46:05.355][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:05.416][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:05.539][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:05.600][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:05.722][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:05.845][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:05.935][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.027][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.058][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.149][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.211][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.272][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.333][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.426][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.456][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.548][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.548][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.639][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.669][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.669][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.731][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.731][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.823][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.854][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.854][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:06.946][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:07.006][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:07.129][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:07.221][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:07.254][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:90000, prevBuffer:24545248, _buffer:26044512
    [2022-08-10 01:46:07.260][Trace][26092][534w0720] RTP: jitbuffer VerifyAndAllocate:newSize:210000, prevBuffer:26044512, _buffer:341094416
    [2022-08-10 01:46:07.313][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    ^C[2022-08-10 01:46:07.326][Trace][26092][0qg2z99l] sig=2, user terminate program, fast quit
    [2022-08-10 01:46:07.436][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:07.528][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:07.619][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:07.650][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:07.741][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:07.834][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:07.864][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:07.956][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:08.018][Error][26092][3bqpymei][11] channel element 3.0 is not allocated(Resource temporarily unavailable)
    [2022-08-10 01:46:08.041][Trace][26092][0qg2z99l] cleanup for quit signal fast=1, grace=0
    [root@localhost trunk]#
  3. SRS的配置如下(Config):

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;
}

stats {
network 0;
}

stream_caster {
enabled on;
caster gb28181;

# 转发流到rtmp服务器地址与端口
# TODO: https://github.com/ossrs/srs/pull/1679/files#r400875104
# [stream] is VideoChannelCodecID(视频通道编码ID) for sip
# 自动创建的道通[stream] 是‘chid[ssrc]’ [ssrc]是rtp的ssrc
# [ssrc] rtp中的ssrc
output              rtmp://127.0.0.1:1935/live/[stream];

# 接收设备端rtp流的多路复用端口
listen              9000;
# 多路复用端口类型,on为tcp,off为udp
# 默认:off
tcp_enable            on;

# rtp接收监听端口范围,最小值
rtp_port_min        58200;
# rtp接收监听端口范围,最大值
rtp_port_max        58300;

# 是否等待关键帧之后,再转发,
# off:不需等待,直接转发
# on:等第一个关键帧后,再转发
wait_keyframe       on;

# rtp包空闲等待时间,如果指定时间没有收到任何包
# rtp监听连接自动停止,发送BYE命令
rtp_idle_timeout    30;

# 是否转发音频流
# 目前只支持aac格式,所以需要设备支持aac格式
# on:转发音频
# off:不转发音频,只有视频
# *注意*!!!:flv 只支持11025  22050  44100 三种
# 如果设备端没有三种中任何一个,转发时为自动选择一种格式
# 同时也会将adts的头封装在flv aac raw数据中
# 这样的话播放器为自动通过adts头自动选择采样频率
# 像ffplay, vlc都可以,但是flash是没有声音,
# 因为flash,只支持11025 22050 44100
audio_enable        on;


# 服务器主机号,可以域名或ip地址
# 也就是设备端将媒体发送的地址,如果是服务器是内外网
# 需要写外网地址,
# 调用api创建stream session时返回ip地址也是host
# $CANDIDATE 是系统环境变量,从环境变量获取地址,如果没有配置,用*
# *代表指定stats network 的网卡号地址,如果没有配置network,默认则是第0号网卡地址
# TODO: https://github.com/ossrs/srs/pull/1679/files#r400917594
host       $CANDIDATE;

#根据收到ps rtp包自带创建rtmp媒体通道,不需要api接口创建
#rtmp地址参数[stream] 就是通道id  格式chid[ssrc]
auto_create_channel   on;

sip {
    # 是否启用srs内部sip信令
    # 为on信令走srs, off 只转发ps流
    enabled on;
    
    # sip监听udp端口
    listen              5060;
    
    # SIP server ID(SIP服务器ID).
    # 设备端配置编号需要与该值一致,否则无法注册
    serial              34020000002000000001;

    # SIP server domain(SIP服务器域)
    realm               3402000000;

    # 服务端发送ack后,接收回应的超时时间,单位为秒
    # 如果指定时间没有回应,认为失败
    ack_timeout         30;

    # 设备心跳维持时间,如果指定时间内(秒)没有接收一个心跳
    # 认为设备离线
    keepalive_timeout   120;

    # 注册之后是否自动给设备端发送invite
    # on: 是  off 不是,需要通过api控制
    auto_play           on;
    # 设备将流发送的端口,是否固定
    # on 发送流到多路复用端口 如9000
    # off 自动从rtp_mix_port - rtp_max_port 之间的值中
    # 选一个可以用的端口
    invite_port_fixed     on;

    # 向设备或下级域查询设备列表的间隔,单位(秒)
    # 默认60秒
    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 ossrs/srs#307 (comment)
candidate $CANDIDATE;
}

vhost defaultVhost {
rtc {
enabled on;
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtmp-to-rtc
rtmp_to_rtc on;
bframe discard;
}

http_remux {
    enabled     on;
    mount       [vhost]/[app]/[stream].flv;
}

}

重现(Replay)

重现Bug的步骤(How to replay bug?)

  1. xxxxxx
  2. xxxxxx
  3. xxxxxx

期望行为(Expect)
视频有声音

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant