Closed atuk721 closed 3 years ago
Please check latest SRS 4.0
I've checked using v4.0.177 but that didn't send http hook requests anyway. I think that has another bug.
[2021-10-21 06:41:33.474][Trace][1][00u12496] XCORE-SRS/4.0.177(Leo)
[2021-10-21 06:41:33.474][Trace][1][00u12496] config parse complete
[2021-10-21 06:41:33.475][Trace][1][00u12496] write log to console
[2021-10-21 06:41:33.475][Trace][1][00u12496][MAIN] SRS/4.0.177(Leo), MIT
[2021-10-21 06:41:33.475][Trace][1][00u12496] authors: https://github.com/ossrs/srs/blob/4.0release/trunk/AUTHORS.txt
[2021-10-21 06:41:33.475][Trace][1][00u12496] contributors: Winlin<winlin@vip.126.com> Winlin<winterserver@126.com> Winlin<chengli.ycl@alibaba-inc.com> Wenjie<zhaowenjie@tal.com> Wenjie<740936897@qq.com> Wenjie<wenjie.zhao@chinacache.com> xiangcheng.liu<liuxc0116@foxmail.com> naijia.liu<youngcow@youngcow.net> alcoholyi<alcoholyi@qq.com> byteman<wangchen2011@gmail.com> chad.wang<chad.wang.cn@gmail.com> suhetao<suhetao@gmail.com> Johnny<fengjihu@163.com> karthikeyan<keyanmca@gmail.com> StevenLiu<lq@chinaffmpeg.org> zhengfl<zhengfl_1989@126.com> tufang14<breadbean1449@gmail.com> allspace<allspace@gmail.com> niesongsong<nie950@gmail.com> rudeb0t<nimrod@themanxgroup.tw> CallMeNP<np.liamg@gmail.com> synote<synote@qq.com> lovecat<littlefawn@163.com> panda1986<542638787@qq.com> YueHonghui<hongf.yue@hotmail.com> ThomasDreibholz<dreibh@simula.no> JuntaoLiu<juntliu@gmail.com> RocFang<fangpeng1986@gmail.com> MakarovYaroslav<yaroslav.makarov.97@mail.ru> MirkoVelic<mvelic@inoxx.net> HuiZhang(huzhang2)<huzhang2@cisco.com> OtterWa<simpleotter23@gmail.com> walkermi<172192667@qq.com> haofz<fuzhuang.hao@vhall.com> ME_Kun_Han<hanvskun@hotmail.com> ljx0305<ljx0305@gmail.com> cenxinwei<censhanhe@163.com> StarBrilliant<m13253@hotmail.com> xubin<xubin@chnvideo.com> intliang<yintiliang@gmail.com> flowerwrong<sysuyangkang@gmail.com> YLX<568414379@qq.com> J<guotaojiang@qq.com> Harlan<hailiang@gvrcraft.com> hankun<hankun@bravovcloud.com> JonathanBarratt<jonathan.barratt@gmail.com> KeeganH<keeganwharris@gmail.com> StevenLiu<lingjiujianke@gmail.com> liuxc0116<liuxc0116@gmail.com> ChengdongZhang<lmajzcd@sina.com> lovacat<lovecat@china.sina.com> qiang.li<qiang.li@verycdn.com.cn> HungMingWu<u9089000@gmail.com> Himer<xishizhaohua@qq.com> XiaLixin<xialixin@kanzhun.com> XiaLixin<68469352@qq.com> XiaLixin<xlx0625@163.com> XiaLixin<xialx@yuntongxun.com> alphonsetai<tyh_123@163.com> Michael.Ma<wnpllr@gmail.com> lam2003<linmin3@yy.com> ShiWei<shiwei05@kuaishou.com> ShiWei<shi.weibd@hotmail.com> XiaofengWang<wasphin@gmail.com> XiaoZhihong<hondaxiao@tencent.com> XiaoZhihong<xiaozhihong8@gmail.com> XiaoZhihong<xiaozhihong@huya.com> yanghuiwen<cainiaodj@qq.com> WuPengqiang<309554135@qq.com> WuPengqiang<pengqiang.wpq@alibaba-inc.com> l<22312935+lam2003@github> xfalcon<x-falcon@github> ChenGuanghua<jinxue.cgh@alibaba-inc.com> ChenGuanghua<chengh_math@126.com> LiPeng<mozhan.lp@alibaba-inc.com> LiPeng<lipeng19811218@gmail.com> yajun18<yajun18@staff.sina.com.cn> liulichuan<liulichuan@kuaishou.com> yapingcat<caoyapingneu@163.com> chenchengbin<chenchengbin@yy.com> ChenHaibo<495810242@qq.com> ChenHaibo<nmgchenhaibo@foxmail.com> jasongwq<jasongwq@gmail.com> yinjiaoyuan<yinjiaoyuan@163.com> PieerePi<pihuibin@hotmail.com> JesseXi<jesse.jinjin@wo.cn> PieerePi<40780488+PieerePi@github> ghostsf<ghost_sf@163.com> xbpeng121<53243357+xbpeng121@github> johzzy<hellojinqiang@gmail.com> stone<bluestn@163.com> cfw11<34058899+cfw11@github> Hung-YiChen<gaod.chen@gmail.com> long<liyalong12345@126.com> matthew1838<77285055+matthew1838@github> rise<rise.worlds@outlook.com>
[2021-10-21 06:41:33.475][Trace][1][00u12496] cwd=/usr/local/srs, work_dir=./, build: 2021-10-12 06:15:08, configure: --x86-x64 --srt=on --jobs=2, uname: Linux bea74f1fa54d 5.8.0-1042-azure #45~20.04.1-Ubuntu SMP Wed Sep 15 14:24:15 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux, osx: 0
[2021-10-21 06:41:33.475][Trace][1][00u12496] configure detail: --prefix=/usr/local/srs --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=on --rtc=on --simulator=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
[2021-10-21 06:41:33.475][Trace][1][00u12496] srs checking config...
[2021-10-21 06:41:33.475][Trace][1][00u12496] ips, iface[0] docker0 ipv4 0x11043 172.17.0.1, iface[1] eth0 ipv4 0x11043 192.168.49.2
[2021-10-21 06:41:33.475][Trace][1][00u12496] devices, intranet docker0 172.17.0.1, intranet eth0 192.168.49.2
[2021-10-21 06:41:33.475][Warn][1][00u12496][22] stats network use index=0, ip=172.17.0.1, ifname=docker0
[2021-10-21 06:41:33.475][Warn][1][00u12496][22] stats disk not configed, disk iops disabled.
[2021-10-21 06:41:33.475][Trace][1][00u12496] write log to console
[2021-10-21 06:41:33.475][Trace][1][00u12496] features, rch:on, dash:on, hls:on, hds:off, srt:on, hc:on, ha:on, hs:on, hp:on, dvr:on, trans:on, inge:on, stat:on, sc:on
[2021-10-21 06:41:33.475][Trace][1][00u12496] SRS on amd64 x86_64, conf:conf/docker.conf, limit:1000, writev:1024, encoding:little-endian, HZ:100
[2021-10-21 06:41:33.475][Trace][1][00u12496] mw sleep:350ms. mr enabled:on, default:0, sleep:350ms
[2021-10-21 06:41:33.475][Trace][1][00u12496] gc:on, pq:30000ms, cscc:[0,16), csa:on, tn:on(may hurts performance), ss:auto(guess by merged write)
[2021-10-21 06:41:33.475][Trace][1][00u12496] system default latency(ms): mw(0-350) + mr(0-350) + play-queue(0-30000)
[2021-10-21 06:41:33.475][Warn][1][00u12496][22] SRS/4.0.177 is not stable
[2021-10-21 06:41:33.485][Trace][1][00u12496] fingerprint=96:23:81:4D:74:AD:69:58:AF:A2:65:A6:B7:D1:6B:DC:81:9F:4E:39:E1:16:59:B5:27:0C:28:A2:B8:35:BE:41
[2021-10-21 06:41:33.485][Trace][1][00u12496] CircuitBreaker: enabled=1, high=2x90, critical=1x95, dying=5x99
[2021-10-21 06:41:33.485][Trace][1][00u12496] http flv live stream, vhost=__defaultVhost__, mount=[vhost]/[app]/[stream].flv
[2021-10-21 06:41:33.485][Trace][1][00u12496] http: root mount to ./objs/nginx/html
[2021-10-21 06:41:33.485][Trace][1][00u12496] server main cid=00u12496, pid=1, ppid=0, asprocess=0
[2021-10-21 06:41:33.491][Trace][1][00u12496] write pid=1 to ./objs/srs.pid success!
[2021-10-21 06:41:33.491][Trace][1][00u12496] RTMP listen at tcp://0.0.0.0:1935, fd=7
[2021-10-21 06:41:33.491][Trace][1][00u12496] HTTP-API listen at tcp://0.0.0.0:1985, fd=8
[2021-10-21 06:41:33.491][Trace][1][00u12496] HTTP-Server listen at tcp://0.0.0.0:8080, fd=9
[2021-10-21 06:41:33.491][Trace][1][00u12496] signal installed, reload=1, reopen=10, fast_quit=15, grace_quit=3
[2021-10-21 06:41:33.491][Trace][1][00u12496] http: api mount /console to ./objs/nginx/html/console
[2021-10-21 06:41:33.492][Trace][1][00u12496] rtc listen at udp://0.0.0.0:8000, fd=10
[2021-10-21 06:41:33.492][Trace][1][w3s77a91] Hybrid cpu=0.00%,12MB
[2021-10-21 06:41:33.492][Warn][1][624t06eo][22] use private address as ip: 172.17.0.1, ifname=docker0
[2021-10-21 06:41:33.492][Trace][1][624t06eo] Startup query id=ee58012c323911ec83fbb7c623fe436c, eip=172.17.0.1, wait=476s
[2021-10-21 06:41:33.492][Trace][1][84039gl8] TCP: connection manager run, conns=0
[2021-10-21 06:41:33.492][Warn][1][00u12496][11] enable auto reload for docker
[2021-10-21 06:41:33.492][Trace][1][00u12496] auto reload watching fd=11, watch=1, file=conf
[2021-10-21 06:41:33.493][Trace][1][19732890] UDP #10 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)
[2021-10-21 06:41:33.493][Trace][1][28aa1869] RTC: connection manager run, conns=0
[2021-10-21 06:41:38.471][Trace][1][w3s77a91] Hybrid cpu=0.00%,12MB
[2021-10-21 06:41:43.472][Trace][1][w3s77a91] Hybrid cpu=0.00%,12MB
[2021-10-21 06:41:47.670][Trace][1][d7hj0j89] RTMP client ip=192.168.49.2:50574, fd=12
[2021-10-21 06:41:47.671][Trace][1][d7hj0j89] TCP: before dispose resource(RtmpConn)(0x27fdf50), conns=1, zombies=0, ign=0, inz=0, ind=0
[2021-10-21 06:41:47.671][Warn][1][d7hj0j89][104] client disconnect peer. ret=1008
[2021-10-21 06:41:47.671][Trace][1][84039gl8] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2021-10-21 06:41:47.671][Trace][1][d7hj0j89] TCP: disposing #0 resource(RtmpConn)(0x27fdf50), conns=1, disposing=1, zombies=0
[2021-10-21 06:41:48.472][Trace][1][w3s77a91] Hybrid cpu=0.00%,12MB, cid=1,1, timer=62,0,0, clock=0,48,1,1,1,0,1,0,0, free=1
[2021-10-21 06:41:53.473][Trace][1][w3s77a91] Hybrid cpu=0.00%,12MB, cid=1,1, timer=62,0,0, clock=0,48,1,1,1,0,1,0,0, free=1
[2021-10-21 06:41:58.474][Trace][1][w3s77a91] Hybrid cpu=0.00%,12MB, cid=1,0, timer=62,0,0, clock=0,47,1,1,0,0,1,0,0
[2021-10-21 06:42:02.670][Trace][1][n1785410] RTMP client ip=192.168.49.2:50700, fd=12
[2021-10-21 06:42:02.670][Trace][1][n1785410] TCP: before dispose resource(RtmpConn)(0x27fdf50), conns=1, zombies=0, ign=0, inz=0, ind=0
[2021-10-21 06:42:02.670][Warn][1][n1785410][104] client disconnect peer. ret=1008
[2021-10-21 06:42:02.670][Trace][1][84039gl8] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2021-10-21 06:42:02.670][Trace][1][n1785410] TCP: disposing #0 resource(RtmpConn)(0x27fdf50), conns=1, disposing=1, zombies=0
[2021-10-21 06:42:03.474][Trace][1][w3s77a91] Hybrid cpu=0.00%,12MB, cid=1,0, timer=62,0,0, clock=0,47,1,1,0,0,1,0,0
[2021-10-21 06:42:08.474][Trace][1][w3s77a91] Hybrid cpu=0.00%,12MB, cid=1,1, timer=62,0,0, clock=0,48,1,0,0,0,0,0,0, free=1
[2021-10-21 06:42:13.475][Trace][1][w3s77a91] Hybrid cpu=0.00%,12MB, cid=1,1, timer=62,0,0, clock=0,48,1,0,0,0,0,0,0, free=1
[2021-10-21 06:42:17.671][Trace][1][lvpe81o7] RTMP client ip=192.168.49.2:50830, fd=12
[2021-10-21 06:42:17.671][Trace][1][lvpe81o7] TCP: before dispose resource(RtmpConn)(0x27fdf20), conns=1, zombies=0, ign=0, inz=0, ind=0
[2021-10-21 06:42:17.671][Warn][1][lvpe81o7][104] client disconnect peer. ret=1008
[2021-10-21 06:42:17.671][Trace][1][84039gl8] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2021-10-21 06:42:17.671][Trace][1][lvpe81o7] TCP: disposing #0 resource(RtmpConn)(0x27fdf20), conns=1, disposing=1, zombies=0
[2021-10-21 06:42:18.475][Trace][1][w3s77a91] Hybrid cpu=1.00%,12MB, cid=1,1, timer=62,0,0, clock=0,48,1,1,0,0,0,0,0, free=1
[2021-10-21 06:42:23.476][Trace][1][w3s77a91] Hybrid cpu=2.00%,12MB, cid=1,1, timer=62,0,0, clock=0,48,1,1,0,0,0,0,0, free=1
[2021-10-21 06:42:28.477][Trace][1][w3s77a91] Hybrid cpu=0.00%,12MB, cid=1,1, timer=62,0,0, clock=0,48,1,1,0,0,0,0,0, free=1
[2021-10-21 06:42:32.670][Trace][1][2e1h4j27] RTMP client ip=192.168.49.2:50952, fd=12
[2021-10-21 06:42:32.670][Trace][1][2e1h4j27] TCP: before dispose resource(RtmpConn)(0x27fdf20), conns=1, zombies=0, ign=0, inz=0, ind=0
[2021-10-21 06:42:32.670][Warn][1][2e1h4j27][104] client disconnect peer. ret=1008
[2021-10-21 06:42:32.670][Trace][1][84039gl8] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2021-10-21 06:42:32.670][Trace][1][2e1h4j27] TCP: disposing #0 resource(RtmpConn)(0x27fdf20), conns=1, disposing=1, zombies=0
[2021-10-21 06:42:33.478][Trace][1][w3s77a91] Hybrid cpu=0.00%,12MB, cid=1,1, timer=62,0,0, clock=0,48,1,1,0,0,0,0,0, free=1
[2021-10-21 06:42:38.479][Trace][1][w3s77a91] Hybrid cpu=1.00%,12MB, cid=1,1, timer=62,0,0, clock=0,48,1,1,0,0,0,0,0, free=1
[2021-10-21 06:42:43.479][Trace][1][w3s77a91] Hybrid cpu=1.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2021-10-21 06:42:47.670][Trace][1][1j612o15] RTMP client ip=192.168.49.2:51068, fd=12
[2021-10-21 06:42:47.670][Trace][1][1j612o15] TCP: before dispose resource(RtmpConn)(0x27fe2e0), conns=1, zombies=0, ign=0, inz=0, ind=0
[2021-10-21 06:42:47.670][Warn][1][1j612o15][104] client disconnect peer. ret=1008
[2021-10-21 06:42:47.670][Trace][1][84039gl8] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2021-10-21 06:42:47.670][Trace][1][1j612o15] TCP: disposing #0 resource(RtmpConn)(0x27fe2e0), conns=1, disposing=1, zombies=0
[2021-10-21 06:42:48.480][Trace][1][w3s77a91] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2021-10-21 06:42:53.480][Trace][1][w3s77a91] Hybrid cpu=2.00%,12MB, cid=1,1, timer=62,0,0, clock=0,48,1,0,0,0,0,0,0, free=1
[2021-10-21 06:42:58.481][Trace][1][w3s77a91] Hybrid cpu=0.00%,12MB, cid=1,1, timer=62,0,0, clock=0,48,1,0,0,0,0,0,0, free=1
[2021-10-21 06:43:01.594][Trace][1][6y7h84s4] RTMP client ip=192.168.49.1:52998, fd=12
[2021-10-21 06:43:01.595][Trace][1][6y7h84s4] complex handshake success
[2021-10-21 06:43:01.595][Trace][1][6y7h84s4] connect app, tcUrl=rtmp://192.168.49.2:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=192.168.49.2, port=1935, app=live, args=null
[2021-10-21 06:43:01.595][Trace][1][6y7h84s4] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2021-10-21 06:43:01.596][Trace][1][6y7h84s4] client identified, type=fmle-publish, vhost=192.168.49.2, app=live, stream=stream, param=, duration=0ms
[2021-10-21 06:43:01.596][Trace][1][6y7h84s4] connected stream, tcUrl=rtmp://192.168.49.2:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, stream=stream, param=, args=null
[2021-10-21 06:43:01.596][Trace][1][6y7h84s4] new source, stream_url=/live/stream
[2021-10-21 06:43:01.596][Trace][1][6y7h84s4] source url=/live/stream, ip=192.168.49.1, cache=1, is_edge=0, source_id=/
[2021-10-21 06:43:01.596][Trace][1][6y7h84s4] new source, stream_url=/live/stream
[2021-10-21 06:43:01.596][Trace][1][6y7h84s4] RTC bridge from RTMP, rtmp2rtc=0, keep_bframe=0, merge_nalus=0
[2021-10-21 06:43:01.596][Trace][1][6y7h84s4] hls: win=60000ms, frag=10000ms, prefix=, path=./objs/nginx/html, m3u8=[app]/[stream].m3u8, ts=[app]/[stream]-[seq].ts, aof=2.00, floor=0, clean=1, waitk=1, dispose=0ms, dts_directly=1
[2021-10-21 06:43:01.596][Trace][1][6y7h84s4] ignore disabled exec for vhost=__defaultVhost__
[2021-10-21 06:43:01.596][Trace][1][6y7h84s4] http: mount flv stream for sid=/live/stream, mount=/live/stream.flv
[2021-10-21 06:43:01.596][Trace][1][6y7h84s4] start publish mr=0/350, p1stpt=20000, pnt=5000, tcp_nodelay=0
[2021-10-21 06:43:01.597][Trace][1][6y7h84s4] got metadata, width=1920, height=1080, vcodec=7, acodec=10
[2021-10-21 06:43:01.597][Trace][1][6y7h84s4] 49B video sh, codec(7, profile=High, level=4, 1920x1080, 0kbps, 0.0fps, 0.0s)
[2021-10-21 06:43:01.597][Trace][1][6y7h84s4] 4B audio sh, codec(10, profile=LC, 2channels, 0kbps, 44100HZ), flv(16bits, 2channels, 44100HZ)
[2021-10-21 06:43:02.671][Trace][1][4533yr07] RTMP client ip=192.168.49.2:51208, fd=14
[2021-10-21 06:43:02.671][Trace][1][4533yr07] TCP: before dispose resource(RtmpConn)(0x2884be0), conns=2, zombies=0, ign=0, inz=0, ind=0
[2021-10-21 06:43:02.671][Warn][1][4533yr07][104] client disconnect peer. ret=1008
[2021-10-21 06:43:02.671][Trace][1][84039gl8] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0
[2021-10-21 06:43:02.671][Trace][1][4533yr07] TCP: disposing #0 resource(RtmpConn)(0x2884be0), conns=2, disposing=1, zombies=0
[2021-10-21 06:43:03.481][Trace][1][w3s77a91] Hybrid cpu=2.00%,13MB, cid=1,1, timer=62,0,0, clock=0,48,1,0,0,0,0,0,0, free=1
[2021-10-21 06:43:08.481][Trace][1][w3s77a91] Hybrid cpu=2.00%,13MB, cid=2,1, timer=62,0,0, clock=0,46,2,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:102,oth:0,buf:0)
[2021-10-21 06:43:09.027][Warn][1][6y7h84s4][11] VIDEO: stream not monotonically increase, please open mix_correct.
[2021-10-21 06:43:09.028][Trace][1][6y7h84s4] cleanup when unpublish
[2021-10-21 06:43:09.028][Trace][1][6y7h84s4] TCP: before dispose resource(RtmpConn)(0x27fdf30), conns=1, zombies=0, ign=0, inz=0, ind=0
[2021-10-21 06:43:09.028][Warn][1][6y7h84s4][4] client disconnect peer. ret=1009
[2021-10-21 06:43:09.028][Trace][1][84039gl8] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2021-10-21 06:43:09.028][Trace][1][6y7h84s4] TCP: disposing #0 resource(RtmpConn)(0x27fdf30), conns=1, disposing=1, zombies=0
[2021-10-21 06:43:13.482][Trace][1][w3s77a91] Hybrid cpu=0.00%,13MB, cid=2,1, timer=62,0,0, clock=0,46,2,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:102,oth:0,buf:0)
[2021-10-21 06:43:17.671][Trace][1][1v03pc60] RTMP client ip=192.168.49.2:51332, fd=12
[2021-10-21 06:43:17.671][Trace][1][1v03pc60] TCP: before dispose resource(RtmpConn)(0x28731a0), conns=1, zombies=0, ign=0, inz=0, ind=0
[2021-10-21 06:43:17.671][Warn][1][1v03pc60][104] client disconnect peer. ret=1008
Because in docker, SRS use conf:conf/docker.conf
now, please use your config file.
Thank you for your advice.
I've checked it again and confirmed to send HTTP hook request.
But server_id
has not been added when on_connect
is called just like v4.0.161.
[2021-10-21 14:39:52.645][Trace][1][66qsa644] XCORE-SRS/4.0.177(Leo)
[2021-10-21 14:39:52.645][Trace][1][66qsa644] config parse complete
[2021-10-21 14:39:52.645][Trace][1][66qsa644] write log to console
[2021-10-21 14:39:52.645][Trace][1][66qsa644][MAIN] SRS/4.0.177(Leo), MIT
[2021-10-21 14:39:52.645][Trace][1][66qsa644] authors: https://github.com/ossrs/srs/blob/4.0release/trunk/AUTHORS.txt
[2021-10-21 14:39:52.645][Trace][1][66qsa644] contributors: Winlin<winlin@vip.126.com> Winlin<winterserver@126.com> Winlin<chengli.ycl@alibaba-inc.com> Wenjie<zhaowenjie@tal.com> Wenjie<740936897@qq.com> Wenjie<wenjie.zhao@chinacache.com> xiangcheng.liu<liuxc0116@foxmail.com> naijia.liu<youngcow@youngcow.net> alcoholyi<alcoholyi@qq.com> byteman<wangchen2011@gmail.com> chad.wang<chad.wang.cn@gmail.com> suhetao<suhetao@gmail.com> Johnny<fengjihu@163.com> karthikeyan<keyanmca@gmail.com> StevenLiu<lq@chinaffmpeg.org> zhengfl<zhengfl_1989@126.com> tufang14<breadbean1449@gmail.com> allspace<allspace@gmail.com> niesongsong<nie950@gmail.com> rudeb0t<nimrod@themanxgroup.tw> CallMeNP<np.liamg@gmail.com> synote<synote@qq.com> lovecat<littlefawn@163.com> panda1986<542638787@qq.com> YueHonghui<hongf.yue@hotmail.com> ThomasDreibholz<dreibh@simula.no> JuntaoLiu<juntliu@gmail.com> RocFang<fangpeng1986@gmail.com> MakarovYaroslav<yaroslav.makarov.97@mail.ru> MirkoVelic<mvelic@inoxx.net> HuiZhang(huzhang2)<huzhang2@cisco.com> OtterWa<simpleotter23@gmail.com> walkermi<172192667@qq.com> haofz<fuzhuang.hao@vhall.com> ME_Kun_Han<hanvskun@hotmail.com> ljx0305<ljx0305@gmail.com> cenxinwei<censhanhe@163.com> StarBrilliant<m13253@hotmail.com> xubin<xubin@chnvideo.com> intliang<yintiliang@gmail.com> flowerwro
ng<sysuyangkang@gmail.com> YLX<568414379@qq.com> J<guotaojiang@qq.com> Harlan<hailiang@gvrcraft.com> hankun<hankun@bravovcloud.com> JonathanBarratt<jonathan.barratt@gmail.com> KeeganH<keeganwharris@gmail.com> StevenLiu<lingjiujianke@gmail.com> liuxc0116<liuxc0116@gmail.com> ChengdongZhang<lmajzcd@sina.com> lovacat<lovecat@china.sina.com> qiang.li<qiang.li@verycdn.com.cn> HungMingWu<u9089000@gmail.com> Himer<xishizhaohua@qq.com> XiaLixin<xialixin@kanzhun.com> XiaLixin<68469352@qq.com> XiaLixin<xlx0625@163.com> XiaLixin<xialx@yuntongxun.com> alphonsetai<tyh_123@163.com> Michael.Ma<wnpllr@gmail.com> lam2003<linmin3@yy.com> ShiWei<shiwei05@kuaisho
u.com> ShiWei<shi.weibd@hotmail.com> XiaofengWang<wasphin@gmail.com> XiaoZhihong<hondaxiao@tencent.com> XiaoZhihong<xiaozhihong8@gmail.com> XiaoZhihong<xiaozhihong@huya.com> yanghuiwen<cainiaodj@qq.com> WuPengqiang<309554135@qq.com> WuPengqiang<pengqiang.wpq@alibaba-inc.com> l<22312935+lam2003@github> xfalcon<x-falcon@github> ChenGuanghua<jinxue.cgh@alibaba-inc.com> ChenGuanghua<chengh_math@126.com> LiPeng<mozhan.lp@alibaba-inc.co
m> LiPeng<lipeng19811218@gmail.com> yajun18<yajun18@staff.sina.com.cn> liulichuan<liulichuan@kuaishou.com> yapingcat<caoyapingneu@163.com> chenchengbin<chenchengbin@yy.com> ChenHaibo<495810242@qq.com> ChenHaibo<nmgche
nhaibo@foxmail.com> jasongwq<jasongwq@gmail.com> yinjiaoyuan<yinjiaoyuan@163.com> PieerePi<pihuibin@hotmail.com> JesseXi<jesse.jinjin@wo.cn> PieerePi<40780488+PieerePi@github> ghostsf<ghost_sf@163.com> xbpeng121<53243
357+xbpeng121@github> johzzy<hellojinqiang@gmail.com> stone<bluestn@163.com> cfw11<34058899+cfw11@github> Hung-YiChen<gaod.chen@gmail.com> long<liyalong12345@126.com> matthew1838<77285055+matthew1838@github> rise<rise
.worlds@outlook.com> [2021-10-21 14:39:52.645][Trace][1][66qsa644] cwd=/usr/local/srs, work_dir=./, build: 2021-10-12 06:15:08, configure: --x86-x64 --srt=on --jobs=2, uname: Linux bea74f1fa54d 5.8.0-1042-azure #45~20.04.1-Ubuntu SMP Wed
Sep 15 14:24:15 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux, osx: 0
[2021-10-21 14:39:52.645][Trace][1][66qsa644] configure detail: --prefix=/usr/local/srs --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=on --rtc=on --simulator=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-bu
ild=off --cc=gcc --cxx=g++ --ar=ar --ld=ld --randlib=randlib
[2021-10-21 14:39:52.645][Trace][1][66qsa644] srs checking config...
[2021-10-21 14:39:52.645][Trace][1][66qsa644] ips, iface[0] docker0 ipv4 0x11043 172.17.0.1, iface[1] eth0 ipv4 0x11043 192.168.49.2 [2021-10-21 14:39:52.645][Trace][1][66qsa644] devices, intranet docker0 172.17.0.1, intranet eth0 192.168.49.2
[2021-10-21 14:39:52.645][Warn][1][66qsa644][22] stats network use index=0, ip=172.17.0.1, ifname=docker0
[2021-10-21 14:39:52.645][Warn][1][66qsa644][22] stats disk not configed, disk iops disabled.
[2021-10-21 14:39:52.645][Trace][1][66qsa644] write log to console
[2021-10-21 14:39:52.645][Trace][1][66qsa644] features, rch:on, dash:on, hls:on, hds:off, srt:on, hc:on, ha:on, hs:on, hp:on, dvr:on, trans:on, inge:on, stat:on, sc:on [2021-10-21 14:39:52.645][Trace][1][66qsa644] SRS on amd64 x86_64, conf:conf/docker.conf, limit:1000, writev:1024, encoding:little-endian, HZ:100
[2021-10-21 14:39:52.645][Trace][1][66qsa644] mw sleep:350ms. mr enabled:on, default:0, sleep:350ms
[2021-10-21 14:39:52.645][Trace][1][66qsa644] gc:on, pq:30000ms, cscc:[0,16), csa:on, tn:on(may hurts performance), ss:auto(guess by merged write)
[2021-10-21 14:39:52.645][Trace][1][66qsa644] system default latency(ms): mw(0-350) + mr(0-350) + play-queue(0-30000)
[2021-10-21 14:39:52.645][Warn][1][66qsa644][22] SRS/4.0.177 is not stable
[2021-10-21 14:39:52.648][Trace][1][66qsa644] fingerprint=02:49:45:E2:C8:73:6F:90:EC:0D:73:90:80:87:EC:95:D4:50:AA:81:C8:29:38:BF:1A:19:2C:E1:AE:FC:F8:76
[2021-10-21 14:39:52.648][Trace][1][66qsa644] CircuitBreaker: enabled=1, high=2x90, critical=1x95, dying=5x99
[2021-10-21 14:39:52.648][Trace][1][66qsa644] http: root mount to ./objs/nginx/html
[2021-10-21 14:39:52.648][Trace][1][66qsa644] server main cid=66qsa644, pid=1, ppid=0, asprocess=0
[2021-10-21 14:39:52.648][Trace][1][66qsa644] write pid=1 to ./objs/srs.pid success!
[2021-10-21 14:39:52.648][Trace][1][66qsa644] RTMP listen at tcp://0.0.0.0:1935, fd=7 [2021-10-21 14:39:52.649][Trace][1][66qsa644] HTTP-API listen at tcp://0.0.0.0:1985, fd=8
[2021-10-21 14:39:52.649][Trace][1][66qsa644] signal installed, reload=1, reopen=10, fast_quit=15, grace_quit=3 [2021-10-21 14:39:52.649][Trace][1][66qsa644] http: api mount /console to ./objs/nginx/html/console
.....
[2021-10-21 14:45:30.501][Trace][1][6r91g524] RTMP client ip=192.168.49.1:60792, fd=10[2021-10-21 14:45:30.502][Trace][1][6r91g524] complex handshake success
[2021-10-21 14:45:30.502][Trace][1][6r91g524] connect app, tcUrl=rtmp://192.168.49.2:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=192.168.49.2, port=1935, app=live, args=null
[2021-10-21 14:45:30.502][Trace][1][6r91g524] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2021-10-21 14:45:30.502][Trace][1][6r91g524] client identified, type=fmle-publish, vhost=192.168.49.2, app=live, stream=stream, param=, duration=0ms
[2021-10-21 14:45:30.537][Trace][1][6r91g524] http: on_connect ok, client_id=6r91g524, url=http://host.minikube.internal:8080/api/rtmp/hook, request={"action":"on_connect","client_id":"6r91g524","ip":"192.168.49.1","vhost":"__defaultVhost__","app":"live","stream":"stream","param":"","tcUrl":"rtmp://192.168.49.2:1935/live","pageUrl":""}, response=0
[2021-10-21 14:45:30.537][Trace][1][6r91g524] connected stream, tcUrl=rtmp://192.168.49.2:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, stream=stream, param=, args=null
[2021-10-21 14:45:30.537][Trace][1][6r91g524] new source, stream_url=/live/stream
[2021-10-21 14:45:30.538][Trace][1][6r91g524] source url=/live/stream, ip=192.168.49.1, cache=0, is_edge=0, source_id=/
[2021-10-21 14:45:30.549][Trace][1][6r91g524] http: on_publish ok, client_id=6r91g524, url=http://host.minikube.internal:8080/api/rtmp/hook, request={"server_id":"vid-yj97570","action":"on_publish","client_id":"6r91g524","ip":"192.168.49.1","vhost":"__defaultVhost__","app":"live","tcUrl":"rtmp://192.168.49.2:1935/live","stream":"stream","param":""}, response=0
[2021-10-21 14:45:30.549][Trace][1][6r91g524] ignore disabled exec for vhost=__defaultVhost__
[2021-10-21 14:45:30.549][Trace][1][6r91g524] set fd=10 TCP_NODELAY 0=>1
[2021-10-21 14:45:30.549][Trace][1][6r91g524] start publish mr=0/350, p1stpt=20000, pnt=5000, tcp_nodelay=1
[2021-10-21 14:45:30.549][Trace][1][6r91g524] got metadata, width=1920, height=1080, vcodec=7, acodec=10
[2021-10-21 14:45:30.549][Trace][1][6r91g524] 49B video sh, codec(7, profile=High, level=4, 1920x1080, 0kbps, 0.0fps, 0.0s)
[2021-10-21 14:45:30.549][Trace][1][6r91g524] 4B audio sh, codec(10, profile=LC, 2channels, 0kbps, 44100HZ), flv(16bits, 2channels, 44100HZ)
[2021-10-21 14:45:32.688][Trace][1][0v4u27b3] Hybrid cpu=1.00%,11MB, cid=1,1, timer=58,0,0, clock=0,45,1,1,0,0,0,0,1, free=1
[2021-10-21 14:45:35.329][Warn][1][6r91g524][11] VIDEO: stream not monotonically increase, please open mix_correct.
[2021-10-21 14:45:35.329][Trace][1][6r91g524] cleanup when unpublish
[2021-10-21 14:45:35.338][Trace][1][6r91g524] http: on_unpublish ok, client_id=6r91g524, url=http://host.minikube.internal:8080/api/rtmp/hook, request={"server_id":"vid-yj97570","action":"on_unpublish","client_id":"6r91g524","ip":"192.168.49.1","vhost":"__defaultVhost__","app":"live","stream":"stream","param":""}, response=0
[2021-10-21 14:45:35.348][Trace][1][6r91g524] http: on_close ok, client_id=6r91g524, url=http://host.minikube.internal:8080/api/rtmp/hook, request={"server_id":"vid-yj97570","action":"on_close","client_id":"6r91g524","ip":"192.168.49.1","vhost":"__defaultVhost__","app":"live","send_bytes":4165,"recv_bytes":142570}, response=0
OK, thanks for your work, we will fix it in SRS 4.0 😄
ok, I will do it later. Also, you can try it by yourself, it`s easy.
Description'
Please ensure that the markdown structure is maintained.
Other HTTP hooks send server_id but on_connect hook doesn't. server_id has been added by #2520 and config's description has server_id. So I think this is a bug.
Please ensure that the markdown structure is maintained.
TRANS_BY_GPT3