Skip to content

webrtc live streaming, SRS cannot record #1885

@zabzd999

Description

@zabzd999

Description
In srs4.0, I enabled the contents of the rtc.conf and dvr.segment.conf configuration files. I was able to successfully push the stream using the webrtc protocol and also successfully play it back using webrtc. However, the SRS recording failed. RTMP streaming is working fine.

Please describe the issue you are facing.

1. SRS Version: 4.0
1. SRS Log:

Please provide the SRS log here.

[2020-07-31 14:40:57.309][Trace][4753][1084] XCORE-SRS/4.0.34(Leo)
[2020-07-31 14:40:57.309][Trace][4753][1084] config parse complete
[2020-07-31 14:40:57.309][Trace][4753][1084] write log to console
[2020-07-31 14:40:57.309][Trace][4753][1084] SRS/4.0.34(Leo), MIT
[2020-07-31 14:40:57.309][Trace][4753][1084] authors: Winlin,Wenjie,Runner365,John,B.P.Y,Lixin
[2020-07-31 14:40:57.309][Trace][4753][1084] contributors: winlin<winlin@vip.126.com> wenjie.zhao<740936897@qq.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<xlx0625@163.com> alphonsetai<tyh_123@163.com> Michael.Ma<wnpllr@gmail.com> lam2003<linmin3@yy.com> runner365<shi.weibd@hotmail.com> XiaofengWang<wasphin@gmail.com> XiaLixin<xialx@yuntongxun.com> xiaozhihong<xiaozhihong8@gmail.com> HuyaJohn<xiaozhihong@huya.com> yanghuiwen<cainiaodj@qq.com> Bepartofyou<309554135@qq.com> l<22312935+lam2003@users.noreply.github.com> xfalcon<x-falcon@users.noreply.github.com> cgh<jinxue.cgh@alibaba-inc.com> LiPeng<mozhan.lp@alibaba-inc.com> xiaozhihong<hondaxiao@tencent.com> yajun18<yajun18@staff.sina.com.cn> liulichuan<liulichuan@kuaishou.com> 
[2020-07-31 14:40:57.309][Trace][4753][1084] cwd=/home/srs/srs-4.0release/trunk, work_dir=./, build: 2020-07-14 18:04:27, configure: --x86-x64, uname: Linux hadoop102 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux, osx: 0
[2020-07-31 14:40:57.309][Trace][4753][1084] configure detail: --prefix=/usr/local/srs --hls=on --hds=off --las=off --dvr=on --ssl=on --sys-ssl=off --transcode=on --ingest=on --stat=on --http-callback=on --http-server=on --stream-caster=on --http-api=on --utest=off --srt=off --rtc=on --simulator=off --gb28181=off --cxx11=off --cxx14=off --ffmpeg-fit=on --nasm=off --srtp-nasm=off --sendmmsg=off --clean=on --gperf=off --gmc=off --gmd=off --gmp=off --gcp=off --gprof=off --log-trace --cc=gcc --cxx=g++ --ar=ar --ld=ld --randlib=randlib
[2020-07-31 14:40:57.309][Trace][4753][1084] srs checking config...
[2020-07-31 14:40:57.310][Trace][4753][1084] ips, iface[0] p8p1 ipv4 0x11043 192.168.1.8, iface[1] p8p1 ipv6 0x11043 fe80::b500:f95c:cf30:d259(nil)8p1
[2020-07-31 14:40:57.310][Trace][4753][1084] devices, intranet p8p1 192.168.1.8, intranet p8p1 fe80::b500:f95c:cf30:d2590x28p1
[2020-07-31 14:40:57.310][Warn][4753][1084][0] stats network use index=0, ip=192.168.1.8, ifname=p8p1
[2020-07-31 14:40:57.310][Warn][4753][1084][0] stats disk not configed, disk iops disabled.
[2020-07-31 14:40:57.310][Trace][4753][1084] write log to console
[2020-07-31 14:40:57.310][Trace][4753][1084] 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
[2020-07-31 14:40:57.310][Trace][4753][1084] SRS on  amd64 x86_64, conf:./conf/rtc.conf, limit:1000, writev:1024, encoding:little-endian, HZ:100
[2020-07-31 14:40:57.310][Trace][4753][1084] mw sleep:350ms. mr enabled:on, default:0, sleep:350ms
[2020-07-31 14:40:57.310][Trace][4753][1084] gc:on, pq:30000ms, cscc:[0,16), csa:on, tn:on(may hurts performance), ss:auto(guess by merged write)
[2020-07-31 14:40:57.310][Trace][4753][1084] system default latency(ms): mw(0-350) + mr(0-350) + play-queue(0-30000)
[2020-07-31 14:40:57.310][Warn][4753][1084][0] SRS/4.0.34 is develop
[2020-07-31 14:40:57.310][Trace][4753][1084] start daemon mode...
[2020-07-31 14:40:57.310][Trace][4754][1084] father process exit
[2020-07-31 14:40:57.310][Trace][4755][1084] son(daemon) process running.
[2020-07-31 14:40:57.311][Trace][4753][1084] grandpa process exit.
[2020-07-31 14:40:57.311][Trace][4755][1084] st_init success, use epoll
[root@hadoop102 trunk]# [2020-07-31 14:40:57.312][Trace][4755][1084] fingerprint=E9:11:ED:01:8D:BE:33:45:03:5D:AC:F5:E4:AC:54:9E:F6:47:94:0A:D9:31:DA:17:12:FA:5E:D0:FA:AF:40:E1
[2020-07-31 14:40:57.312][Trace][4755][1084] RTC server init ok
[2020-07-31 14:40:57.312][Trace][4755][1084] UDP #4 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)
[2020-07-31 14:40:57.312][Trace][4755][1084] rtc listen at udp://0.0.0.0:8000, fd=4
[2020-07-31 14:40:57.312][Trace][4755][1084] http: root mount to ./objs/nginx/html
[2020-07-31 14:40:57.312][Trace][4755][1085] server main cid=1085, pid=4755, ppid=4754, asprocess=0
[2020-07-31 14:40:57.313][Trace][4755][1085] write pid=4755 to ./objs/srs.pid success!
[2020-07-31 14:40:57.313][Trace][4755][1085] RTMP listen at tcp://0.0.0.0:1935, fd=8
[2020-07-31 14:40:57.313][Trace][4755][1085] HTTP-API listen at tcp://0.0.0.0:1985, fd=9
[2020-07-31 14:40:57.313][Trace][4755][1085] HTTP-Server listen at tcp://0.0.0.0:8080, fd=10
[2020-07-31 14:40:57.313][Trace][4755][1085] signal installed, reload=1, reopen=10, fast_quit=15, grace_quit=3
[2020-07-31 14:40:57.313][Trace][4755][1085] http: api mount /console to ./objs/nginx/html/console
[2020-07-31 14:42:30.615][Trace][4755][1092] API server client, ip=192.168.1.5:51717
[2020-07-31 14:42:30.616][Trace][4755][1092] HTTP API 192.168.1.5:51717 POST http://localhost/rtc/v1/publish/, content-length=3531, chunked=0
[2020-07-31 14:42:30.616][Trace][4755][1092] RTC publish webrtc://localhost/zzux/cam01, api=http://localhost:1985/rtc/v1/publish/, clientip=, app=zzux, stream=cam01, offer=3231B, eip=
[2020-07-31 14:42:30.618][Trace][4755][1092] new source, stream_url=/zzux/cam01
[2020-07-31 14:42:30.622][Trace][4755][1092] RTC bridge from RTMP, discard_aac=0, discard_bframe=1, merge_nalus=0
[2020-07-31 14:42:30.622][Trace][4755][1092] Best matched ip=192.168.1.8, ifname=p8p1
[2020-07-31 14:42:30.623][Trace][4755][1092] RTC init session, DTLS(role=passive, version=auto), timeout=30000ms, blackhole=0
[2020-07-31 14:42:30.623][Trace][4755][1092] RTC username=rRT6eGju:S4E9, offer=3231B, answer=1275B
[2020-07-31 14:42:30.623][Trace][4755][1092] client finished.
[2020-07-31 14:42:30.632][Trace][4755][1092] rtc session=192.168.1.5:65332/rRT6eGju:S4E9, STUN done, waitting DTLS handshake.
[2020-07-31 14:42:30.632][Trace][4755][1092] <- RTC RECV #4, udp 1, pps 0/0, schedule 1
[2020-07-31 14:42:30.640][Trace][4755][1092] rtc session=192.168.1.5:65332/rRT6eGju:S4E9, DTLS handshake done.
[2020-07-31 14:42:30.641][Trace][4755][1092] RTC Publisher session=192.168.1.5:65332/rRT6eGju:S4E9, to=30000ms connection established
[2020-07-31 14:42:30.641][Trace][4755][1092] RTC publisher video(ssrc=1796227407), audio(ssrc=2870233391), nack=1, pt-drop=0, twcc=1/5
[2020-07-31 14:42:40.426][Trace][4755][1092] <- RTC RECV #4, udp 1218, pps 11/121, schedule 1218
[2020-07-31 14:42:46.965][Trace][4755][1093] HTTP client ip=192.168.1.5:51724, request=0, to=15000ms
[2020-07-31 14:42:46.967][Trace][4755][1093] HTTP 192.168.1.5:51724 GET http://192.168.1.8:8080/players/srs_player/release/srs_player.swf?_version=1.33, content-length=-1
[2020-07-31 14:42:46.967][Trace][4755][1093] http match file=./objs/nginx/html/players/srs_player/release/srs_player.swf, pattern=/, upath=/players/srs_player/release/srs_player.swf
[2020-07-31 14:42:46.972][Trace][4755][1093] HTTP client ip=192.168.1.5:51724, request=1, to=15000ms
[2020-07-31 14:42:46.979][Warn][4755][1093][104] client disconnect peer. ret=1007
[2020-07-31 14:42:47.066][Trace][4755][1094] RTMP client ip=192.168.1.5:51726, fd=11
[2020-07-31 14:42:47.097][Trace][4755][1094] complex handshake success
[2020-07-31 14:42:47.097][Trace][4755][1094] connect app, tcUrl=rtmp://192.168.1.8:1935/zzux, pageUrl=http://192.168.1.8:8080/players/srs_player.html, swfUrl=http://192.168.1.8:8080/players/srs_player/release/srs_player.swf?_version=1.33, schema=rtmp, vhost=192.168.1.8, port=1935, app=zzux, args=null
[2020-07-31 14:42:47.097][Trace][4755][1094] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2020-07-31 14:42:47.180][Trace][4755][1094] client identified, type=Play, vhost=192.168.1.8, app=zzux, stream=cam01, param=, duration=-1ms
[2020-07-31 14:42:47.180][Trace][4755][1094] connected stream, tcUrl=rtmp://192.168.1.8:1935/zzux, pageUrl=http://192.168.1.8:8080/players/srs_player.html, swfUrl=http://192.168.1.8:8080/players/srs_player/release/srs_player.swf?_version=1.33, schema=rtmp, vhost=__defaultVhost__, port=1935, app=zzux, stream=cam01, param=, args=null
[2020-07-31 14:42:47.180][Trace][4755][1094] new source, stream_url=/zzux/cam01
[2020-07-31 14:42:47.180][Trace][4755][1094] source url=/zzux/cam01, ip=192.168.1.5, cache=1, is_edge=0, source_id=[4755][]
[2020-07-31 14:42:47.180][Trace][4755][1094] create consumer, active=0, queue_size=0.00, jitter=30000000
[2020-07-31 14:42:47.181][Trace][4755][1094] set fd=11, SO_SNDBUF=87040=>175000, buffer=350ms
[2020-07-31 14:42:47.181][Trace][4755][1094] start play smi=0ms, mw_sleep=350, mw_msgs=8, realtime=0, tcp_nodelay=0
[2020-07-31 14:42:48.606][Warn][4755][1094][104] client disconnect peer. ret=1007
[2020-07-31 14:42:50.431][Trace][4755][1092] <- RTC RECV #4, udp 2136, pps 29/213, schedule 2136
[2020-07-31 14:42:51.004][Trace][4755][1095] HTTP client ip=192.168.1.5:51730, request=0, to=15000ms
[2020-07-31 14:42:51.004][Trace][4755][1095] HTTP 192.168.1.5:51730 GET http://192.168.1.8:8080/players/rtc_player.html, content-length=-1
[2020-07-31 14:42:51.004][Trace][4755][1095] http match file=./objs/nginx/html/players/rtc_player.html, pattern=/, upath=/players/rtc_player.html
[2020-07-31 14:42:51.005][Trace][4755][1095] HTTP client ip=192.168.1.5:51730, request=1, to=15000ms
[2020-07-31 14:42:51.005][Trace][4755][1096] HTTP client ip=192.168.1.5:51731, request=0, to=15000ms
[2020-07-31 14:42:51.008][Warn][4755][1095][104] client disconnect peer. ret=1007
[2020-07-31 14:42:51.025][Trace][4755][1096] HTTP 192.168.1.5:51731 GET http://192.168.1.8:8080/players/css/bootstrap.min.css, content-length=-1
[2020-07-31 14:42:51.026][Trace][4755][1096] http match file=./objs/nginx/html/players/css/bootstrap.min.css, pattern=/, upath=/players/css/bootstrap.min.css
[2020-07-31 14:42:51.028][Trace][4755][1097] HTTP client ip=192.168.1.5:51732, request=0, to=15000ms
[2020-07-31 14:42:51.031][Trace][4755][1098] HTTP client ip=192.168.1.5:51733, request=0, to=15000ms
[2020-07-31 14:42:51.031][Trace][4755][1096] HTTP client ip=192.168.1.5:51731, request=1, to=15000ms
[2020-07-31 14:42:51.032][Trace][4755][1099] HTTP client ip=192.168.1.5:51734, request=0, to=15000ms
[2020-07-31 14:42:51.033][Trace][4755][1097] HTTP 192.168.1.5:51732 GET http://192.168.1.8:8080/players/js/jquery-1.10.2.min.js, content-length=-1
[2020-07-31 14:42:51.033][Trace][4755][1097] http match file=./objs/nginx/html/players/js/jquery-1.10.2.min.js, pattern=/, upath=/players/js/jquery-1.10.2.min.js
[2020-07-31 14:42:51.034][Trace][4755][1098] HTTP 192.168.1.5:51733 GET http://192.168.1.8:8080/players/js/adapter-7.4.0.min.js, content-length=-1
[2020-07-31 14:42:51.034][Trace][4755][1098] http match file=./objs/nginx/html/players/js/adapter-7.4.0.min.js, pattern=/, upath=/players/js/adapter-7.4.0.min.js
[2020-07-31 14:42:51.035][Trace][4755][1099] HTTP 192.168.1.5:51734 GET http://192.168.1.8:8080/players/js/winlin.utility.js, content-length=-1
[2020-07-31 14:42:51.035][Trace][4755][1099] http match file=./objs/nginx/html/players/js/winlin.utility.js, pattern=/, upath=/players/js/winlin.utility.js
[2020-07-31 14:42:51.035][Trace][4755][1099] HTTP client ip=192.168.1.5:51734, request=1, to=15000ms
[2020-07-31 14:42:51.035][Trace][4755][1100] HTTP client ip=192.168.1.5:51735, request=0, to=15000ms
[2020-07-31 14:42:51.035][Trace][4755][1100] HTTP 192.168.1.5:51735 GET http://192.168.1.8:8080/players/js/srs.page.js, content-length=-1
[2020-07-31 14:42:51.035][Trace][4755][1100] http match file=./objs/nginx/html/players/js/srs.page.js, pattern=/, upath=/players/js/srs.page.js
[2020-07-31 14:42:51.036][Trace][4755][1100] HTTP client ip=192.168.1.5:51735, request=1, to=15000ms
[2020-07-31 14:42:51.038][Warn][4755][1096][104] client disconnect peer. ret=1007
[2020-07-31 14:42:51.046][Warn][4755][1100][104] client disconnect peer. ret=1007
[2020-07-31 14:42:51.047][Warn][4755][1099][104] client disconnect peer. ret=1007
[2020-07-31 14:42:51.048][Trace][4755][1097] HTTP client ip=192.168.1.5:51732, request=1, to=15000ms
[2020-07-31 14:42:51.048][Trace][4755][1098] HTTP client ip=192.168.1.5:51733, request=1, to=15000ms
[2020-07-31 14:42:51.055][Warn][4755][1098][104] client disconnect peer. ret=1007
[2020-07-31 14:42:51.056][Warn][4755][1097][104] client disconnect peer. ret=1007
[2020-07-31 14:42:51.874][Trace][4755][1101] HTTP client ip=192.168.1.5:51737, request=0, to=15000ms
[2020-07-31 14:42:51.875][Trace][4755][1101] HTTP 192.168.1.5:51737 GET http://192.168.1.8:8080/players/rtc_publisher.html, content-length=-1
[2020-07-31 14:42:51.875][Trace][4755][1101] http match file=./objs/nginx/html/players/rtc_publisher.html, pattern=/, upath=/players/rtc_publisher.html
[2020-07-31 14:42:51.875][Trace][4755][1101] HTTP client ip=192.168.1.5:51737, request=1, to=15000ms
[2020-07-31 14:42:51.875][Trace][4755][1102] HTTP client ip=192.168.1.5:51738, request=0, to=15000ms
[2020-07-31 14:42:51.879][Warn][4755][1101][104] client disconnect peer. ret=1007
[2020-07-31 14:42:51.901][Trace][4755][1102] HTTP 192.168.1.5:51738 GET http://192.168.1.8:8080/players/css/bootstrap.min.css, content-length=-1
[2020-07-31 14:42:51.901][Trace][4755][1102] http match file=./objs/nginx/html/players/css/bootstrap.min.css, pattern=/, upath=/players/css/bootstrap.min.css
[2020-07-31 14:42:51.906][Trace][4755][1103] HTTP client ip=192.168.1.5:51739, request=0, to=15000ms
[2020-07-31 14:42:51.909][Trace][4755][1102] HTTP client ip=192.168.1.5:51738, request=1, to=15000ms
[2020-07-31 14:42:51.910][Trace][4755][1104] HTTP client ip=192.168.1.5:51740, request=0, to=15000ms
[2020-07-31 14:42:51.912][Trace][4755][1105] HTTP client ip=192.168.1.5:51741, request=0, to=15000ms
[2020-07-31 14:42:51.915][Trace][4755][1103] HTTP 192.168.1.5:51739 GET http://192.168.1.8:8080/players/js/jquery-1.10.2.min.js, content-length=-1
[2020-07-31 14:42:51.915][Trace][4755][1103] http match file=./objs/nginx/html/players/js/jquery-1.10.2.min.js, pattern=/, upath=/players/js/jquery-1.10.2.min.js
[2020-07-31 14:42:51.915][Trace][4755][1104] HTTP 192.168.1.5:51740 GET http://192.168.1.8:8080/players/js/adapter-7.4.0.min.js, content-length=-1
[2020-07-31 14:42:51.915][Trace][4755][1104] http match file=./objs/nginx/html/players/js/adapter-7.4.0.min.js, pattern=/, upath=/players/js/adapter-7.4.0.min.js
[2020-07-31 14:42:51.916][Trace][4755][1106] HTTP client ip=192.168.1.5:51742, request=0, to=15000ms
[2020-07-31 14:42:51.917][Trace][4755][1105] HTTP 192.168.1.5:51741 GET http://192.168.1.8:8080/players/js/winlin.utility.js, content-length=-1
[2020-07-31 14:42:51.917][Trace][4755][1105] http match file=./objs/nginx/html/players/js/winlin.utility.js, pattern=/, upath=/players/js/winlin.utility.js
[2020-07-31 14:42:51.917][Trace][4755][1105] HTTP client ip=192.168.1.5:51741, request=1, to=15000ms
[2020-07-31 14:42:51.917][Trace][4755][1106] HTTP 192.168.1.5:51742 GET http://192.168.1.8:8080/players/js/srs.page.js, content-length=-1
[2020-07-31 14:42:51.917][Trace][4755][1106] http match file=./objs/nginx/html/players/js/srs.page.js, pattern=/, upath=/players/js/srs.page.js
[2020-07-31 14:42:51.918][Trace][4755][1106] HTTP client ip=192.168.1.5:51742, request=1, to=15000ms
[2020-07-31 14:42:51.918][Warn][4755][1102][104] client disconnect peer. ret=1007
[2020-07-31 14:42:51.928][Warn][4755][1105][104] client disconnect peer. ret=1007
[2020-07-31 14:42:51.928][Trace][4755][1103] HTTP client ip=192.168.1.5:51739, request=1, to=15000ms
[2020-07-31 14:42:51.931][Trace][4755][1104] HTTP client ip=192.168.1.5:51740, request=1, to=15000ms
[2020-07-31 14:42:51.931][Warn][4755][1106][104] client disconnect peer. ret=1007
[2020-07-31 14:42:51.939][Warn][4755][1103][104] client disconnect peer. ret=1007
[2020-07-31 14:42:51.942][Warn][4755][1104][104] client disconnect peer. ret=1007
[2020-07-31 14:42:52.462][Trace][4755][1107] HTTP client ip=192.168.1.5:51744, request=0, to=15000ms
[2020-07-31 14:42:52.463][Trace][4755][1107] HTTP 192.168.1.5:51744 GET http://192.168.1.8:8080/players/rtc_player.html, content-length=-1
[2020-07-31 14:42:52.463][Trace][4755][1107] http match file=./objs/nginx/html/players/rtc_player.html, pattern=/, upath=/players/rtc_player.html
[2020-07-31 14:42:52.463][Trace][4755][1107] HTTP client ip=192.168.1.5:51744, request=1, to=15000ms
[2020-07-31 14:42:52.464][Trace][4755][1108] HTTP client ip=192.168.1.5:51745, request=0, to=15000ms
[2020-07-31 14:42:52.469][Warn][4755][1107][104] client disconnect peer. ret=1007
[2020-07-31 14:42:52.487][Trace][4755][1108] HTTP 192.168.1.5:51745 GET http://192.168.1.8:8080/players/css/bootstrap.min.css, content-length=-1
[2020-07-31 14:42:52.488][Trace][4755][1108] http match file=./objs/nginx/html/players/css/bootstrap.min.css, pattern=/, upath=/players/css/bootstrap.min.css
[2020-07-31 14:42:52.490][Trace][4755][1109] HTTP client ip=192.168.1.5:51746, request=0, to=15000ms
[2020-07-31 14:42:52.492][Trace][4755][1110] HTTP client ip=192.168.1.5:51747, request=0, to=15000ms
[2020-07-31 14:42:52.496][Trace][4755][1111] HTTP client ip=192.168.1.5:51748, request=0, to=15000ms
[2020-07-31 14:42:52.497][Trace][4755][1109] HTTP 192.168.1.5:51746 GET http://192.168.1.8:8080/players/js/jquery-1.10.2.min.js, content-length=-1
[2020-07-31 14:42:52.497][Trace][4755][1109] http match file=./objs/nginx/html/players/js/jquery-1.10.2.min.js, pattern=/, upath=/players/js/jquery-1.10.2.min.js
[2020-07-31 14:42:52.498][Trace][4755][1110] HTTP 192.168.1.5:51747 GET http://192.168.1.8:8080/players/js/adapter-7.4.0.min.js, content-length=-1
[2020-07-31 14:42:52.498][Trace][4755][1110] http match file=./objs/nginx/html/players/js/adapter-7.4.0.min.js, pattern=/, upath=/players/js/adapter-7.4.0.min.js
[2020-07-31 14:42:52.498][Trace][4755][1111] HTTP 192.168.1.5:51748 GET http://192.168.1.8:8080/players/js/winlin.utility.js, content-length=-1
[2020-07-31 14:42:52.499][Trace][4755][1111] http match file=./objs/nginx/html/players/js/winlin.utility.js, pattern=/, upath=/players/js/winlin.utility.js
[2020-07-31 14:42:52.499][Trace][4755][1111] HTTP client ip=192.168.1.5:51748, request=1, to=15000ms
[2020-07-31 14:42:52.500][Trace][4755][1112] HTTP client ip=192.168.1.5:51749, request=0, to=15000ms
[2020-07-31 14:42:52.501][Trace][4755][1108] HTTP client ip=192.168.1.5:51745, request=1, to=15000ms
[2020-07-31 14:42:52.504][Trace][4755][1112] HTTP 192.168.1.5:51749 GET http://192.168.1.8:8080/players/js/srs.page.js, content-length=-1
[2020-07-31 14:42:52.504][Trace][4755][1112] http match file=./objs/nginx/html/players/js/srs.page.js, pattern=/, upath=/players/js/srs.page.js
[2020-07-31 14:42:52.504][Trace][4755][1112] HTTP client ip=192.168.1.5:51749, request=1, to=15000ms
[2020-07-31 14:42:52.511][Warn][4755][1111][104] client disconnect peer. ret=1007
[2020-07-31 14:42:52.512][Trace][4755][1110] HTTP client ip=192.168.1.5:51747, request=1, to=15000ms
[2020-07-31 14:42:52.512][Trace][4755][1109] HTTP client ip=192.168.1.5:51746, request=1, to=15000ms
[2020-07-31 14:42:52.521][Warn][4755][1108][104] client disconnect peer. ret=1007
[2020-07-31 14:42:52.524][Warn][4755][1112][104] client disconnect peer. ret=1007
[2020-07-31 14:42:52.524][Warn][4755][1110][104] client disconnect peer. ret=1007
[2020-07-31 14:42:52.524][Warn][4755][1109][104] client disconnect peer. ret=1007
[2020-07-31 14:42:57.930][Trace][4755][1113] API server client, ip=192.168.1.5:51751
[2020-07-31 14:42:57.931][Trace][4755][1113] HTTP API 192.168.1.5:51751 OPTIONS http://192.168.1.8:1985/rtc/v1/play/, content-length=-1, chunked=0
[2020-07-31 14:42:57.938][Trace][4755][1113] HTTP API 192.168.1.5:51751 POST http://192.168.1.8:1985/rtc/v1/play/, content-length=5194, chunked=0
[2020-07-31 14:42:57.938][Trace][4755][1113] RTC play webrtc://192.168.1.8/zzux/cam01, api=http://192.168.1.8:1985/rtc/v1/play/, clientip=, app=zzux, stream=cam01, offer=4785B, eip=, encrypt=
[2020-07-31 14:42:57.940][Trace][4755][1113] Best matched ip=192.168.1.8, ifname=p8p1
[2020-07-31 14:42:57.940][Trace][4755][1113] RTC init session, DTLS(role=passive, version=auto), timeout=30000ms, blackhole=0
[2020-07-31 14:42:57.940][Trace][4755][1113] RTC username=cMDBmMrg:tIJu, offer=4785B, answer=1234B
[2020-07-31 14:42:57.984][Warn][4755][1113][104] client disconnect peer. ret=1007
[2020-07-31 14:42:58.107][Trace][4755][1113] rtc session=192.168.1.5:49323/cMDBmMrg:tIJu, STUN done, waitting DTLS handshake.
[2020-07-31 14:42:58.123][Trace][4755][1113] rtc session=192.168.1.5:49323/cMDBmMrg:tIJu, DTLS handshake done.
[2020-07-31 14:42:58.124][Trace][4755][1113] RTC Subscriber session=192.168.1.5:49323/cMDBmMrg:tIJu, to=30000ms connection established
[2020-07-31 14:42:58.124][Trace][4755][1113] RTC player video(ssrc=48030257, pt=102), audio(ssrc=48030256, pt=111), nack=1
[2020-07-31 14:42:58.124][Trace][4755][1113] create consumer, no gop cache
[2020-07-31 14:42:58.124][Trace][4755][1113] RTC source url=/zzux/cam01, source_id=[4755][1092], encrypt=1, realtime=1, mw_msgs=0
[2020-07-31 14:42:58.124][Trace][4755][1113] rtc session=192.168.1.5:49323/cMDBmMrg:tIJu, start play
[2020-07-31 14:42:58.129][Trace][4755][1113] RTC play=[4755][1113] request keyframe from publish=[4755][1092]
[2020-07-31 14:42:58.129][Trace][4755][1113] RTC request PLI
[2020-07-31 14:42:58.133][Trace][4755][1092] RTC PLI ssrc=1796227407
[2020-07-31 14:42:58.136][Trace][4755][1113] RTC play=[4755][1113] request keyframe from publish=[4755][1092]
[2020-07-31 14:42:58.136][Trace][4755][1113] RTC request PLI
[2020-07-31 14:42:58.159][Trace][4755][1092] RTC PLI ssrc=1796227407
[2020-07-31 14:42:58.308][Trace][4755][1113] RTC play=[4755][1113] request keyframe from publish=[4755][1092]
[2020-07-31 14:42:58.308][Trace][4755][1113] RTC request PLI
[2020-07-31 14:42:58.321][Trace][4755][1092] RTC PLI ssrc=1796227407
[2020-07-31 14:42:58.509][Trace][4755][1113] RTC play=[4755][1113] request keyframe from publish=[4755][1092]
[2020-07-31 14:42:58.510][Trace][4755][1113] RTC request PLI
[2020-07-31 14:42:58.524][Trace][4755][1092] RTC PLI ssrc=1796227407
[2020-07-31 14:42:58.657][Trace][4755][1114] HTTP client ip=192.168.1.5:51752, request=0, to=15000ms
[2020-07-31 14:42:58.657][Trace][4755][1114] HTTP 192.168.1.5:51752 GET http://192.168.1.8:8080/favicon.ico, content-length=-1
[2020-07-31 14:42:58.657][Trace][4755][1114] http match file=./objs/nginx/html/favicon.ico, pattern=/, upath=/favicon.ico
[2020-07-31 14:42:58.658][Trace][4755][1114] HTTP client ip=192.168.1.5:51752, request=1, to=15000ms
[2020-07-31 14:42:58.663][Warn][4755][1114][104] client disconnect peer. ret=1007
[2020-07-31 14:43:00.446][Trace][4755][1092] <- RTC RECV #4, udp 3244, pps 53/323, schedule 3244
[2020-07-31 14:43:08.130][Trace][4755][1113] -> RTC PLAY 1 msgs, 1/3191 packets, 501 audios, 0 extras, 2690 videos, 0 samples, 2208758/2240668/0 bytes, 0 pad, 1/1 cache
[2020-07-31 14:43:10.448][Trace][4755][1092] <- RTC RECV #4, udp 3287, pps 74/328, schedule 3287
[2020-07-31 14:43:18.143][Trace][4755][1113] -> RTC PLAY 8 msgs, 8/6500 packets, 1001 audios, 0 extras, 5499 videos, 0 samples, 4424441/4489441/0 bytes, 0 pad, 8/8 cache
[2020-07-31 14:43:20.469][Trace][4755][1092] <- RTC RECV #4, udp 3483, pps 93/347, schedule 3483
[2020-07-31 14:43:28.151][Trace][4755][1113] -> RTC PLAY 1 msgs, 1/9760 packets, 1502 audios, 0 extras, 8258 videos, 0 samples, 6626544/6724144/0 bytes, 0 pad, 1/1 cache
[2020-07-31 14:43:30.478][Trace][4755][1092] <- RTC RECV #4, udp 3292, pps 108/328, schedule 3292
[2020-07-31 14:43:38.151][Trace][4755][1113] -> RTC PLAY 1 msgs, 1/12853 packets, 2002 audios, 0 extras, 10851 videos, 0 samples, 8838360/8966890/0 bytes, 0 pad, 1/1 cache
[2020-07-31 14:43:40.490][Trace][4755][1092] <- RTC RECV #4, udp 3203, pps 121/319, schedule 3203
[2020-07-31 14:43:48.173][Trace][4755][1113] -> RTC PLAY 5 msgs, 5/15982 packets, 2503 audios, 0 extras, 13479 videos, 0 samples, 11063456/11223276/0 bytes, 0 pad, 5/5 cache
[2020-07-31 14:43:50.491][Trace][4755][1092] <- RTC RECV #4, udp 3222, pps 133/322, schedule 3222
[2020-07-31 14:43:58.193][Trace][4755][1113] -> RTC PLAY 11 msgs, 11/19299 packets, 3004 audios, 0 extras, 16295 videos, 0 samples, 13259118/13452108/0 bytes, 0 pad, 11/11 cache
[2020-07-31 14:44:00.509][Trace][4755][1092] <- RTC RECV #4, udp 3490, pps 145/348, schedule 3490
[2020-07-31 14:44:08.193][Trace][4755][1113] -> RTC PLAY 4 msgs, 4/22596 packets, 3504 audios, 0 extras, 19092 videos, 0 samples, 15474399/15700359/0 bytes, 0 pad, 4/4 cache
[2020-07-31 14:44:10.509][Trace][4755][1092] <- RTC RECV #4, udp 3333, pps 154/333, schedule 3333
[2020-07-31 14:44:18.205][Trace][4755][1113] -> RTC PLAY 10 msgs, 10/25851 packets, 4004 audios, 0 extras, 21847 videos, 0 samples, 17688145/17946655/0 bytes, 0 pad, 10/10 cache
[2020-07-31 14:44:20.511][Trace][4755][1092] <- RTC RECV #4, udp 3414, pps 163/341, schedule 3414
[2020-07-31 14:44:28.209][Trace][4755][1113] -> RTC PLAY 13 msgs, 13/29113 packets, 4504 audios, 0 extras, 24609 videos, 0 samples, 19906254/20197384/0 bytes, 0 pad, 13/13 cache
[2020-07-31 14:44:30.267][Trace][4755][1115] API server client, ip=192.168.1.5:51782
[2020-07-31 14:44:30.268][Trace][4755][1115] HTTP API 192.168.1.5:51782 POST http://localhost/rtc/v1/unpublish/, content-length=73, chunked=0
[2020-07-31 14:44:30.268][Trace][4755][1115] client finished.
[2020-07-31 14:44:30.665][Trace][4755][1113] <- RTC RECV #4, udp 3241, pps 171/323, schedule 3241
[2020-07-31 14:44:33.287][Trace][4755][1113] RTC play=[4755][1113] request keyframe from publish=[4755][1092]
[2020-07-31 14:44:33.287][Trace][4755][1113] RTC request PLI
[2020-07-31 14:44:40.802][Trace][4755][1113] <- RTC RECV #4, udp 23, pps 163/2, schedule 23
[2020-07-31 14:44:51.065][Trace][4755][1113] <- RTC RECV #4, udp 18, pps 156/1, schedule 18
[2020-07-31 14:44:58.443][Trace][4755][1092] rtc session=192.168.1.5:65332/rRT6eGju:S4E9, STUN timeout
[2020-07-31 14:44:58.443][Trace][4755][1092] cleanup when unpublish

1. SRS Configuration:

Please provide the SRS configuration here.

listen              1935;
max_connections     1000;
srs_log_tank        console;
srs_log_file        ./objs/srs.log;
daemon              on;

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

http_api {
    enabled         on;
    listen          1985;
}
stats {
    network         0;
}
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 https://github.com/ossrs/srs/issues/307#issuecomment-599028124
    candidate       $CANDIDATE;
}

vhost __defaultVhost__ {
    rtc {
        enabled     on;
        bframe      discard;
    }
    dvr {
        enabled      on;
        dvr_path     /home/video/[app]/[stream].[timestamp].flv;
        dvr_plan     session;
    }
}

Replay

Please maintain the markdown structure.

How to replay bug?

Please maintain the markdown structure.

  1. xxxxxx
  2. xxxxxx
  3. xxxxxx

Expect

I hope that the webrtc protocol can be used for streaming, and that SRS can support recording.

Please describe your expectation.

TRANS_BY_GPT3

Metadata

Metadata

Assignees

Labels

FeatureIt's a new feature.TransByAITranslated by AI/GPT.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions