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

Windows version, when streaming OBS via webrtc tcp, a connection error occurs #3884

Open
LumineRose opened this issue Nov 18, 2023 · 3 comments
Assignees
Labels
TransByAI Translated by AI/GPT. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.

Comments

@LumineRose
Copy link

LumineRose commented Nov 18, 2023

Windows version, when streaming OBS via webrtc tcp, a connection error occurs

Release v5.0-b6

Steps to reproduce the behavior:

  1. Go to 'set config rtc.tcp.only.conf and start obs stream (version 30 )' on 192.168.1.6 or 127.0.0.1
  2. Click on 'cmd for look log'
  3. Scroll down to 'end'
  4. See error [WARN][1511][c1mn2444][104] client disconnect peer. ret=1007

Expected behavior
Connecting and working webrtc stream via tcp only

Additional context
log and confg

C:\Program Files (x86)\SRS>for /F "tokens=2*" %i in ('REG QUERY "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\srs\ins_dir"') do set srs_home=%j

C:\Program Files (x86)\SRS>set srs_home=

C:\Program Files (x86)\SRS>set srs_home=REG_SZ    C:\SRS\objs

C:\Program Files (x86)\SRS>echo REG_SZ    C:\SRS\objs
REG_SZ    C:\SRS\objs

C:\Program Files (x86)\SRS>for %I in ("REG_SZ    C:\SRS\objs") do set srs_disk=%~dI

C:\Program Files (x86)\SRS>set srs_disk=C:

C:\Program Files (x86)\SRS>cd REG_SZ    C:\SRS\objs
There is a syntax error in the file name, folder name, or volume label.

C:\Program Files (x86)\SRS>objs\srs.exe -c conf\rtc.tcp.only.conf
[2023-11-18 03:42:35.612][INFO][1511][329pqmia] XCORE-SRS/5.0.195(Bee)
[2023-11-18 03:42:35.613][INFO][1511][329pqmia] config parse complete
[2023-11-18 03:42:35.613][INFO][1511][329pqmia] write log to console
[2023-11-18 03:42:35.613][INFO][1511][329pqmia] SRS/5.0.195(Bee), MIT
[2023-11-18 03:42:35.613][INFO][1511][329pqmia] authors: Winlin<winlin@vip.126.com> ZhaoWenjie<zhaowenjie@tal.com> ShiWei<shiwei05@kuaishou.com> XiaoZhihong<hondaxiao@tencent.com> WuPengqiang<pengqiang.wpq@alibaba-inc.com> XiaLixin<xialixin@kanzhun.com> LiPeng<mozhan.lp@alibaba-inc.com> ChenGuanghua<jinxue.cgh@alibaba-inc.com> ChenHaibo<nmgchenhaibo@foxmail.com> and https://github.com/ossrs/srs/blob/develop/trunk/AUTHORS.md#contributors
[2023-11-18 03:42:35.613][INFO][1511][329pqmia] cwd=/, work_dir=./, build: 2023-10-25 13:05:42, configure: --gb28181=on, uname: CYGWIN_NT-10.0-20348 fv-az369-735 3.4.9-1.x86_64 2023-09-06 11:19 UTC x86_64 Cygwin, osx: 0, env: 0, pkg:
[2023-11-18 03:42:35.613][INFO][1511][329pqmia] configure detail: --prefix=/usr/local/srs --config=conf/srs.conf --osx=off --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-converter=on --http-api=on --utest=off --srt=off --sys-srt=off --rtc=on --gb28181=on --simulator=off --cxx11=on --cxx14=off --backtrace=on --ffmpeg-fit=on --sys-ffmpeg=off --ffmpeg-opus=off --nasm=on --srtp-nasm=on --sys-srtp=off --clean=on --gperf=off --gmc=off --gmd=off --gmp=off --gcp=off --gprof=off --static=off --shared-st=off --shared-srt=reserved --shared-ffmpeg=reserved --shared-srtp=reserved --log-verbose=off --log-info=off --log-trace=on --log-level_v2=on --gcov=off --apm=off --debug=off --debug-stats=off --cross-build=off --sanitizer=off --sanitizer-static=off --sanitizer-log=off --cygwin64=on --single-thread=on --generic-linux=off --cc=gcc --cxx=g++ --ar=ar --ld=ld --randlib=randlib
[2023-11-18 03:42:35.614][INFO][1511][329pqmia] srs checking config...
[2023-11-18 03:42:35.619][INFO][1511][329pqmia] ips, iface[0] {0DAA197A-81A1-49F0-AA5D-5C528A38B062} ipv4 0x11043 192.168.1.6
[2023-11-18 03:42:35.619][INFO][1511][329pqmia] devices, intranet {0DAA197A-81A1-49F0-AA5D-5C528A38B062} 192.168.1.6
[2023-11-18 03:42:35.620][WARN][1511][329pqmia][0] stats network use index=0, ip=192.168.1.6, ifname={0DAA197A-81A1-49F0-AA5D-5C528A38B062}
[2023-11-18 03:42:35.620][WARN][1511][329pqmia][0] stats disk not configed, disk iops disabled.
[2023-11-18 03:42:35.620][INFO][1511][329pqmia] write log to console
[2023-11-18 03:42:35.622][INFO][1511][329pqmia] 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
[2023-11-18 03:42:35.622][INFO][1511][329pqmia] SRS on amd64 x86_64, conf:conf\rtc.tcp.only.conf, limit:1000, writev:1024, encoding:little-endian, HZ:1000
[2023-11-18 03:42:35.622][INFO][1511][329pqmia] mw sleep:350ms. mr enabled:on, default:0, sleep:350ms
[2023-11-18 03:42:35.622][INFO][1511][329pqmia] gc:on, pq:30000ms, cscc:[0,16), csa:on, tn:on(may hurts performance), ss:auto(guess by merged write)
[2023-11-18 03:42:35.623][INFO][1511][329pqmia] system default latency(ms): mw(0-350) + mr(0-350) + play-queue(0-30000)
[2023-11-18 03:42:35.623][INFO][1511][329pqmia] Run in single thread mode
[2023-11-18 03:42:35.626][INFO][1511][329pqmia] fingerprint=9A:D6:17:D1:B5:51:F7:1B:80:75:13:68:67:22:EE:09:A9:84:CA:34:56:CF:CE:9F:61:CF:2E:8A:F3:F7:48:CE
[2023-11-18 03:42:35.627][INFO][1511][329pqmia] CircuitBreaker: enabled=1, high=2x90, critical=1x95, dying=5x99
[2023-11-18 03:42:35.627][INFO][1511][329pqmia] http flv live stream, vhost=__defaultVhost__, mount=[vhost]/[app]/[stream].flv
[2023-11-18 03:42:35.627][INFO][1511][329pqmia] http: root mount to ./objs/nginx/html
[2023-11-18 03:42:35.628][INFO][1511][329pqmia] server main cid=329pqmia, pid=1511, ppid=1, asprocess=0
[2023-11-18 03:42:35.629][WARN][1511][329pqmia][22] SO_REUSEPORT is not supported util Linux kernel 3.9
[2023-11-18 03:42:35.629][INFO][1511][329pqmia] RTMP listen at tcp://0.0.0.0:1935, fd=6
[2023-11-18 03:42:35.629][WARN][1511][329pqmia][22] SO_REUSEPORT is not supported util Linux kernel 3.9
[2023-11-18 03:42:35.630][INFO][1511][329pqmia] HTTP-API listen at tcp://0.0.0.0:1985, fd=7
[2023-11-18 03:42:35.630][WARN][1511][329pqmia][22] SO_REUSEPORT is not supported util Linux kernel 3.9
[2023-11-18 03:42:35.631][INFO][1511][329pqmia] HTTP-Server listen at tcp://0.0.0.0:8080, fd=8
[2023-11-18 03:42:35.632][WARN][1511][329pqmia][22] SO_REUSEPORT is not supported util Linux kernel 3.9
[2023-11-18 03:42:35.632][INFO][1511][329pqmia] WebRTC listen at tcp://0.0.0.0:8000, fd=9
[2023-11-18 03:42:35.632][INFO][1511][329pqmia] signal installed, reload=1, reopen=30, fast_quit=15, grace_quit=3
[2023-11-18 03:42:35.632][INFO][1511][329pqmia] http: api mount /console to ./objs/nginx/html/console
[2023-11-18 03:42:35.633][WARN][1511][329pqmia][22] SO_REUSEPORT is not supported util Linux kernel 3.9
[2023-11-18 03:42:35.633][INFO][1511][329pqmia] rtc listen at udp://0.0.0.0:8000, fd=10
[2023-11-18 03:42:35.639][INFO][1511][40ubok6i] Hybrid cpu=0.00%,20MB
[2023-11-18 03:42:35.639][WARN][1511][rh0qy95k][22] use private address as ip: 192.168.1.6, ifname={0DAA197A-81A1-49F0-AA5D-5C528A38B062}
[2023-11-18 03:42:35.639][INFO][1511][rh0qy95k] Startup query id=vid-864p7n0, session=vid-v192v69, eip=192.168.1.6, wait=300s
[2023-11-18 03:42:35.639][INFO][1511][8685dbh1] TCP: connection manager run, conns=0
[2023-11-18 03:42:35.780][INFO][1511][04vmax5t] GB: connection manager run, conns=0
[2023-11-18 03:42:35.780][INFO][1511][54i56g5c] UDP #10 LISTEN at 0.0.0.0:8000, SO_SNDBUF(default=65536, expect=10485760, actual=10485760, r0=0), SO_RCVBUF(default=65536, expect=10485760, actual=10485760, r0=0)
[2023-11-18 03:42:35.781][INFO][1511][c65u1895] RTC: connection manager run, conns=0
[2023-11-18 03:42:38.707][INFO][1511][8z915spu] HTTP #0 127.0.0.1:61478 GET http://localhost:8080/players/whep.html?schema=http, content-length=-1
[2023-11-18 03:42:38.708][INFO][1511][8z915spu] http match file=./objs/nginx/html/players/whep.html, pattern=/, upath=/players/whep.html
[2023-11-18 03:42:38.711][INFO][1511][8z915spu] TCP: before dispose resource(HttpConn)(0xa000a1dc0), conns=1, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 03:42:38.711][WARN][1511][8z915spu][104] client disconnect peer. ret=1007
[2023-11-18 03:42:38.711][INFO][1511][8685dbh1] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2023-11-18 03:42:38.711][INFO][1511][8z915spu] TCP: disposing #0 resource(HttpConn)(0xa000a1dc0), conns=1, disposing=1, zombies=0
[2023-11-18 03:42:38.958][INFO][1511][55891k80] HTTP #0 127.0.0.1:61486 GET http://localhost:8080/players/css/bootstrap.min.css, content-length=-1
[2023-11-18 03:42:38.958][INFO][1511][55891k80] http match file=./objs/nginx/html/players/css/bootstrap.min.css, pattern=/, upath=/players/css/bootstrap.min.css
[2023-11-18 03:42:38.959][INFO][1511][55891k80] TCP: before dispose resource(HttpConn)(0xa000c5b20), conns=1, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 03:42:38.959][WARN][1511][55891k80][104] client disconnect peer. ret=1007
[2023-11-18 03:42:38.960][INFO][1511][8685dbh1] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2023-11-18 03:42:38.960][INFO][1511][55891k80] TCP: disposing #0 resource(HttpConn)(0xa000c5b20), conns=1, disposing=1, zombies=0
[2023-11-18 03:42:39.024][INFO][1511][6zh10354] HTTP #0 127.0.0.1:61487 GET http://localhost:8080/players/js/jquery-1.12.2.min.js, content-length=-1
[2023-11-18 03:42:39.025][INFO][1511][6zh10354] http match file=./objs/nginx/html/players/js/jquery-1.12.2.min.js, pattern=/, upath=/players/js/jquery-1.12.2.min.js
[2023-11-18 03:42:39.026][INFO][1511][6zh10354] TCP: before dispose resource(HttpConn)(0xa000c2590), conns=1, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 03:42:39.026][WARN][1511][6zh10354][104] client disconnect peer. ret=1007
[2023-11-18 03:42:39.026][INFO][1511][8685dbh1] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2023-11-18 03:42:39.026][INFO][1511][6zh10354] TCP: disposing #0 resource(HttpConn)(0xa000c2590), conns=1, disposing=1, zombies=0
[2023-11-18 03:42:39.028][INFO][1511][254ai270] HTTP #0 127.0.0.1:61488 GET http://localhost:8080/players/js/adapter-7.4.0.min.js, content-length=-1
[2023-11-18 03:42:39.028][INFO][1511][254ai270] http match file=./objs/nginx/html/players/js/adapter-7.4.0.min.js, pattern=/, upath=/players/js/adapter-7.4.0.min.js
[2023-11-18 03:42:39.029][INFO][1511][261h87b3] HTTP #0 127.0.0.1:61489 GET http://localhost:8080/players/js/srs.sdk.js, content-length=-1
[2023-11-18 03:42:39.029][INFO][1511][261h87b3] http match file=./objs/nginx/html/players/js/srs.sdk.js, pattern=/, upath=/players/js/srs.sdk.js
[2023-11-18 03:42:39.030][INFO][1511][29293q9p] HTTP #0 127.0.0.1:61490 GET http://localhost:8080/players/js/winlin.utility.js, content-length=-1
[2023-11-18 03:42:39.030][INFO][1511][29293q9p] http match file=./objs/nginx/html/players/js/winlin.utility.js, pattern=/, upath=/players/js/winlin.utility.js
[2023-11-18 03:42:39.030][INFO][1511][q66602k2] HTTP #0 127.0.0.1:61491 GET http://localhost:8080/players/js/srs.page.js, content-length=-1
[2023-11-18 03:42:39.030][INFO][1511][q66602k2] http match file=./objs/nginx/html/players/js/srs.page.js, pattern=/, upath=/players/js/srs.page.js
[2023-11-18 03:42:39.031][INFO][1511][254ai270] TCP: before dispose resource(HttpConn)(0xa000c5b20), conns=4, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 03:42:39.031][WARN][1511][254ai270][104] client disconnect peer. ret=1007
[2023-11-18 03:42:39.031][INFO][1511][261h87b3] TCP: before dispose resource(HttpConn)(0xa000c5fd0), conns=4, zombies=1, ign=0, inz=0, ind=0
[2023-11-18 03:42:39.031][WARN][1511][261h87b3][104] client disconnect peer. ret=1007
[2023-11-18 03:42:39.032][INFO][1511][29293q9p] TCP: before dispose resource(HttpConn)(0xa000c64c0), conns=4, zombies=2, ign=0, inz=0, ind=0
[2023-11-18 03:42:39.032][WARN][1511][29293q9p][104] client disconnect peer. ret=1007
[2023-11-18 03:42:39.033][INFO][1511][8685dbh1] TCP: clear zombies=3 resources, conns=4, removing=0, unsubs=0
[2023-11-18 03:42:39.033][INFO][1511][254ai270] TCP: disposing #0 resource(HttpConn)(0xa000c5b20), conns=4, disposing=3, zombies=0
[2023-11-18 03:42:39.033][INFO][1511][261h87b3] TCP: disposing #1 resource(HttpConn)(0xa000c5fd0), conns=3, disposing=3, zombies=0
[2023-11-18 03:42:39.035][INFO][1511][29293q9p] TCP: disposing #2 resource(HttpConn)(0xa000c64c0), conns=2, disposing=3, zombies=0
[2023-11-18 03:42:39.036][INFO][1511][q66602k2] TCP: before dispose resource(HttpConn)(0xa000c69a0), conns=1, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 03:42:39.036][WARN][1511][q66602k2][104] client disconnect peer. ret=1007
[2023-11-18 03:42:39.036][INFO][1511][8685dbh1] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2023-11-18 03:42:39.036][INFO][1511][q66602k2] TCP: disposing #0 resource(HttpConn)(0xa000c69a0), conns=1, disposing=1, zombies=0
[2023-11-18 03:42:39.532][INFO][1511][r86pl393] HTTP #0 127.0.0.1:61494 GET http://localhost:8080/favicon.ico, content-length=-1
[2023-11-18 03:42:39.533][INFO][1511][r86pl393] http match file=./objs/nginx/html/favicon.ico, pattern=/, upath=/favicon.ico
[2023-11-18 03:42:39.534][INFO][1511][r86pl393] TCP: before dispose resource(HttpConn)(0xa000c2550), conns=1, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 03:42:39.534][WARN][1511][r86pl393][104] client disconnect peer. ret=1007
[2023-11-18 03:42:39.535][INFO][1511][8685dbh1] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2023-11-18 03:42:39.535][INFO][1511][r86pl393] TCP: disposing #0 resource(HttpConn)(0xa000c2550), conns=1, disposing=1, zombies=0
[2023-11-18 03:42:40.618][INFO][1511][40ubok6i] Hybrid cpu=0.00%,27MB
[2023-11-18 03:42:41.179][INFO][1511][59k46946] HTTP #0 127.0.0.1:61498 OPTIONS http://localhost:1985/rtc/v1/whep/?app=live&stream=livestream, content-length=-1
[2023-11-18 03:42:41.180][INFO][1511][59k46946] TCP: before dispose resource(HttpConn)(0xa000c41d0), conns=2, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 03:42:41.181][WARN][1511][59k46946][104] client disconnect peer. ret=1007
[2023-11-18 03:42:41.181][INFO][1511][8685dbh1] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0
[2023-11-18 03:42:41.181][INFO][1511][59k46946] TCP: disposing #0 resource(HttpConn)(0xa000c41d0), conns=2, disposing=1, zombies=0
[2023-11-18 03:42:41.430][INFO][1511][008029i9] HTTP #0 127.0.0.1:61501 POST http://localhost:1985/rtc/v1/whep/?app=live&stream=livestream, content-length=6475
[2023-11-18 03:42:41.430][INFO][1511][008029i9] RTC whip play /live/livestream, clientip=127.0.0.1, app=live, stream=livestream, offer=6475B, eip=, codec=, srtp=, dtls=, ufrag=, pwd=, param=app=live&stream=livestream
[2023-11-18 03:42:41.431][INFO][1511][008029i9] ignore attribute=, value=
[2023-11-18 03:42:41.432][INFO][1511][008029i9] new rtc source, stream_url=/live/livestream
[2023-11-18 03:42:41.432][INFO][1511][008029i9] RTC player nack=1, nnc=1
[2023-11-18 03:42:41.432][INFO][1511][008029i9] RTC connection player gcc=3
[2023-11-18 03:42:41.432][INFO][1511][008029i9] RTC: Init tracks {track: video-a5171y96, is_active: 0=>1},{track: audio-74888xbn, is_active: 0=>1}, ok
[2023-11-18 03:42:41.432][INFO][1511][008029i9] Best matched ip=192.168.1.6, ifname={0DAA197A-81A1-49F0-AA5D-5C528A38B062}
[2023-11-18 03:42:41.433][INFO][1511][008029i9] RTC: Use candidates 192.168.1.6, protocol=tcp
[2023-11-18 03:42:41.434][INFO][1511][008029i9] RTC init session, user=06pt4ls1:I4f0, url=/live/livestream, encrypt=1/1, DTLS(role=passive, version=auto), timeout=30000ms, nack=1
[2023-11-18 03:42:41.434][INFO][1511][008029i9] RTC username=06pt4ls1:I4f0, dtls=1, srtp=1, offer=6475B, answer=1544B
[2023-11-18 03:42:41.434][INFO][1511][008029i9] RTC remote offer: v=0\r\no=- 5291546702334060213 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0 1\r\na=extmap-allow-mixed\r\na=msid-semantic: WMS\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:I4f0\r\na=ice-pwd:mBHji5NSioMsGS/JGfN5JdyS\r\na=ice-options:trickle\r\na=fingerprint:sha-256 10:16:0B:CC:93:5F:62:6F:11:01:DC:C4:E5:13:3B:52:52:2A:11:12:B1:11:38:07:78:E5:76:76:44:F8:65:EB\r\na=setup:actpass\r\na=mid:0\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=recvonly\r\na=rtcp-mux\r\na=rtpmap:111 opus/48000/2\r\na=rtcp-fb:111 transport-cc\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=rtpmap:63 red/48000/2\r\na=fmtp:63 111/111\r\na=rtpmap:9 G722/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:13 CN/8000\r\na=rtpmap:110 telephone-event/48000\r\na=rtpmap:126 telephone-event/8000\r\nm=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 35 36 37 38 102 103 104 105 106 107 108 109 127 125 39 40 41 42 43 44 45 46 47 48 112 113 114 115 116 117 118 49\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:I4f0\r\na=ice-pwd:mBHji5NSioMsGS/JGfN5JdyS\r\na=ice-options:trickle\r\na=fingerprint:sha-256 10:16:0B:CC:93:5F:62:6F:11:01:DC:C4:E5:13:3B:52:52:2A:11:12:B1:11:38:07:78:E5:76:76:44:F8:65:EB\r\na=setup:actpass\r\na=mid:1\r\na=extmap:14 urn:ietf:params:rtp-hdrext:toffset\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:13 urn:3gpp:video-orientation\r\na=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay\r\na=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type\r\na=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing\r\na=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id\r\na=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:96 VP8/90000\r\na=rtcp-fb:96 goog-remb\r\na=rtcp-fb:96 transport-cc\r\na=rtcp-fb:96 ccm fir\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtpmap:97 rtx/90000\r\na=fmtp:97 apt=96\r\na=rtpmap:98 VP9/90000\r\na=rtcp-fb:98 goog-remb\r\na=rtcp-fb:98 transport-cc\r\na=rtcp-fb:98 ccm fir\r\na=rtcp-fb:98 nack\r\na=rtcp-fb:98 nack pli\r\na=fmtp:98 profile-id=0\r\na=rtpmap:99 rtx/90000\r\na=fmtp:99 apt=98\r\na=rtpmap:100 VP9/90000\r\na=rtcp-fb:100 goog-remb\r\na=rtcp-fb:100 transport-cc\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack\r\na=rtcp-fb:100 nack pli\r\na=fmtp:100 profile-id=2\r\na=rtpmap:101 rtx/90000\r\na=fmtp:101 apt=100\r\na=rtpmap:35 VP9/90000\r\na=rtcp-fb:35 goog-remb\r\na=rtcp-fb:35 transport-cc\r\na=rtcp-fb:35 ccm fir\r\na=rtcp-fb:35 nack\r\na=rtcp-fb:35 nack pli\r\na=fmtp:35 profile-id=1\r\na=rtpmap:36 rtx/90000\r\na=fmtp:36 apt=35\r\na=rtpmap:37 VP9/90000\r\na=rtcp-fb:37 goog-remb\r\na=rtcp-fb:37 transport-cc\r\na=rtcp-fb:37 ccm fir\r\na=rtcp-fb:37 nack\r\na=rtcp-fb:37 nack pli\r\na=fmtp:37 profile-id=3\r\na=rtpmap:38 rtx/90000\r\na=fmtp:38 apt=37\r\na=rtpmap:102 H264/90000\r\na=rtcp-fb:102 goog-remb\r\na=rtcp-fb:102 transport-cc\r\na=rtcp-fb:102 ccm fir\r\na=rtcp-fb:102 nack\r\na=rtcp-fb:102 nack pli\r\na=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f\r\na=rtpmap:103 rtx/90000\r\na=fmtp:103 apt=102\r\na=rtpmap:104 H264/90000\r\na=rtcp-fb:104 goog-remb\r\na=rtcp-fb:104 transport-cc\r\na=rtcp-fb:104 ccm fir\r\na=rtcp-fb:104 nack\r\na=rtcp-fb:104 nack pli\r\na=fmtp:104 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f\r\na=rtpmap:105 rtx/90000\r\na=fmtp:105 apt=104\r\na=rtpmap:106 H264/90000\r\na=rtcp-fb:106 goog-remb\r\na=rtcp-fb:106 transport-cc\r\na=rtcp-fb:106 ccm fir\r\na=rtcp-fb:106 nack\r\na=rtcp-fb:106 nack pli\r\na=fmtp:106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\na=rtpmap:107 rtx/90000\r\na=fmtp:107 apt=106\r\na=rtpmap:108 H264/90000\r\na=rtcp-fb:108 goog-remb\r\na=rtcp-fb:108 transport-cc\r\na=rtcp-fb:108 ccm fir\r\na=rtcp-fb:108 nack\r\na=rtcp-fb:108 nack pli\r\na=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f\r\na=rtpmap:109 rtx/90000\r\na=fmtp:109 apt=108\r\na=rtpmap:127 H264/90000\r\na=rtcp-fb:127 goog-remb\r\na=rtcp-fb:127 transport-cc\r\na=rtcp-fb:127 ccm fir\r\na=rtcp-fb:127 nack\r\na=rtcp-fb:127 nack pli\r\na=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d001f\r\na=rtpmap:125 rtx/90000\r\na=fmtp:125 apt=127\r\na=rtpmap:39 H264/90000\r\na=rtcp-fb:39 goog-remb\r\na=rtcp-fb:39 transport-cc\r\na=rtcp-fb:39 ccm fir\r\na=rtcp-fb:39 nack\r\na=rtcp-fb:39 nack pli\r\na=fmtp:39 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=4d001f\r\na=rtpmap:40 rtx/90000\r\na=fmtp:40 apt=39\r\na=rtpmap:41 H264/90000\r\na=rtcp-fb:41 goog-remb\r\na=rtcp-fb:41 transport-cc\r\na=rtcp-fb:41 ccm fir\r\na=rtcp-fb:41 nack\r\na=rtcp-fb:41 nack pli\r\na=fmtp:41 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=f4001f\r\na=rtpmap:42 rtx/90000\r\na=fmtp:42 apt=41\r\na=rtpmap:43 H264/90000\r\na=rtcp-fb:43 goog-remb\r\na=rtcp-fb:43 transport-cc\r\na=rtcp-fb:43 ccm fir\r\na=rtcp-fb:43 nack\r\na=rtcp-fb:43 nack pli\r\na=fmtp:43 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=f4001f\r\na=rtpmap:44 rtx/90000\r\na=fmtp:44 apt=43\r\na=rtpmap:45 AV1/90000\r\na=rtcp-fb:45 goog-remb\r\na=rtcp-fb:45 transport-cc\r\na=rtcp-fb:45 ccm fir\r\na=rtcp-fb:45 nack\r\na=rtcp-fb:45 nack pli\r\na=rtpmap:46 rtx/90000\r\na=fmtp:46 apt=45\r\na=rtpmap:47 AV1/90000\r\na=rtcp-fb:47 goog-remb\r\na=rtcp-fb:47 transport-cc\r\na=rtcp-fb:47 ccm fir\r\na=rtcp-fb:47 nack\r\na=rtcp-fb:47 nack pli\r\na=fmtp:47 profile=1\r\na=rtpmap:48 rtx/90000\r\na=fmtp:48 apt=47\r\na=rtpmap:112 H264/90000\r\na=rtcp-fb:112 goog-remb\r\na=rtcp-fb:112 transport-cc\r\na=rtcp-fb:112 ccm fir\r\na=rtcp-fb:112 nack\r\na=rtcp-fb:112 nack pli\r\na=fmtp:112 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64001f\r\na=rtpmap:113 rtx/90000\r\na=fmtp:113 apt=112\r\na=rtpmap:114 H264/90000\r\na=rtcp-fb:114 goog-remb\r\na=rtcp-fb:114 transport-cc\r\na=rtcp-fb:114 ccm fir\r\na=rtcp-fb:114 nack\r\na=rtcp-fb:114 nack pli\r\na=fmtp:114 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=64001f\r\na=rtpmap:115 rtx/90000\r\na=fmtp:115 apt=114\r\na=rtpmap:116 red/90000\r\na=rtpmap:117 rtx/90000\r\na=fmtp:117 apt=116\r\na=rtpmap:118 ulpfec/90000\r\na=rtpmap:49 flexfec-03/90000\r\na=rtcp-fb:49 goog-remb\r\na=rtcp-fb:49 transport-cc\r\na=fmtp:49 repair-window=10000000\r\n
[2023-11-18 03:42:41.436][INFO][1511][008029i9] RTC local answer: v=0\r\no=SRS/5.0.195(Bee) 42950637744 2 IN IP4 0.0.0.0\r\ns=SRSPlaySession\r\nt=0 0\r\na=ice-lite\r\na=group:BUNDLE 0 1\r\na=msid-semantic: WMS live/livestream\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:06pt4ls1\r\na=ice-pwd:hz91j8wi7b6283zf86516o59193ravh7\r\na=fingerprint:sha-256 9A:D6:17:D1:B5:51:F7:1B:80:75:13:68:67:22:EE:09:A9:84:CA:34:56:CF:CE:9F:61:CF:2E:8A:F3:F7:48:CE\r\na=setup:passive\r\na=mid:0\r\na=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=sendonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:111 opus/48000/2\r\na=rtcp-fb:111 transport-cc\r\na=ssrc:15262614 cname:79433ez9fo57777e\r\na=ssrc:15262614 label:audio-74888xbn\r\na=candidate:0 1 tcp 2130706431 192.168.1.6 8000 typ host tcptype passive\r\nm=video 9 UDP/TLS/RTP/SAVPF 106\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:06pt4ls1\r\na=ice-pwd:hz91j8wi7b6283zf86516o59193ravh7\r\na=fingerprint:sha-256 9A:D6:17:D1:B5:51:F7:1B:80:75:13:68:67:22:EE:09:A9:84:CA:34:56:CF:CE:9F:61:CF:2E:8A:F3:F7:48:CE\r\na=setup:passive\r\na=mid:1\r\na=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=sendonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:106 H264/90000\r\na=rtcp-fb:106 transport-cc\r\na=rtcp-fb:106 nack\r\na=rtcp-fb:106 nack pli\r\na=fmtp:106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\na=ssrc:15262615 cname:79433ez9fo57777e\r\na=ssrc:15262615 label:video-a5171y96\r\na=candidate:0 1 tcp 2130706431 192.168.1.6 8000 typ host tcptype passive\r\n
[2023-11-18 03:42:41.437][INFO][1511][008029i9] TCP: before dispose resource(HttpConn)(0xa000c25c0), conns=2, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 03:42:41.437][WARN][1511][008029i9][104] client disconnect peer. ret=1007
[2023-11-18 03:42:41.438][INFO][1511][8685dbh1] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0
[2023-11-18 03:42:41.438][INFO][1511][008029i9] TCP: disposing #0 resource(HttpConn)(0xa000c25c0), conns=2, disposing=1, zombies=0
[2023-11-18 03:42:41.439][INFO][1511][008029i9] recv stun packet from 192.168.1.6:61502, use-candidate=0, ice-controlled=0, ice-controlling=1
[2023-11-18 03:42:41.441][INFO][1511][008029i9] RTC: session STUN done, waiting DTLS handshake.
[2023-11-18 03:42:41.441][INFO][1511][008029i9] DTLS: State Passive RECV, done=0, arq=0, r0=157, len=157, cnt=22, size=144, hs=1
[2023-11-18 03:42:41.442][INFO][1511][008029i9] DTLS: State Passive SEND, done=0, arq=0, r0=0, len=678, cnt=22, size=82, hs=2
[2023-11-18 03:42:41.442][INFO][1511][008029i9] DTLS: State Passive RECV, done=0, arq=0, r0=579, len=579, cnt=22, size=299, hs=11
[2023-11-18 03:42:41.443][INFO][1511][008029i9] DTLS: State Passive SEND, done=0, arq=0, r0=0, len=554, cnt=22, size=466, hs=4
[2023-11-18 03:42:41.443][INFO][1511][008029i9] RTC: DTLS handshake done.
[2023-11-18 03:42:41.443][INFO][1511][008029i9] RTC: session pub=0, sub=1, to=30000ms connection established
[2023-11-18 03:42:41.444][INFO][1511][008029i9] RTC: Subscriber url=/live/livestream established
[2023-11-18 03:42:41.444][INFO][1511][008029i9] create consumer, no gop cache
[2023-11-18 03:42:41.444][INFO][1511][008029i9] RTC: start play url=/live/livestream, source_id=/, realtime=1, mw_msgs=0
[2023-11-18 03:42:43.285][INFO][1511][c1mn2444] HTTP #0 127.0.0.1:61507 POST http://localhost:1985/rtc/v1/whip/?app=live&stream=livestream, content-length=1182
[2023-11-18 03:42:43.286][INFO][1511][c1mn2444] RTC whip publish /live/livestream, clientip=127.0.0.1, app=live, stream=livestream, offer=1182B, eip=, codec=, srtp=, dtls=, ufrag=, pwd=, param=app=live&stream=livestream
[2023-11-18 03:42:43.286][INFO][1511][c1mn2444] ignore attribute=candidate, value=1 1 UDP 2122317823 192.168.1.6 63656 typ host
[2023-11-18 03:42:43.286][INFO][1511][c1mn2444] ignore attribute=end-of-candidates, value=
[2023-11-18 03:42:43.287][INFO][1511][c1mn2444] RTC publisher nack=1, nnc=1, pt-drop=0, twcc=0/0
[2023-11-18 03:42:43.287][INFO][1511][c1mn2444] RTC: Init tracks {track: fAB8s1VfJrRwiz2r-video, is_active: 0=>1},{track: fAB8s1VfJrRwiz2r-audio, is_active: 0=>1}, ok
[2023-11-18 03:42:43.287][INFO][1511][c1mn2444] Best matched ip=192.168.1.6, ifname={0DAA197A-81A1-49F0-AA5D-5C528A38B062}
[2023-11-18 03:42:43.287][INFO][1511][c1mn2444] RTC: Use candidates 192.168.1.6, protocol=tcp
[2023-11-18 03:42:43.288][INFO][1511][c1mn2444] RTC init session, user=41905907:GQ+z, url=/live/livestream, encrypt=1/1, DTLS(role=passive, version=auto), timeout=30000ms, nack=1
[2023-11-18 03:42:43.288][INFO][1511][c1mn2444] RTC username=41905907:GQ+z, offer=1182B, answer=1183B
[2023-11-18 03:42:43.288][INFO][1511][c1mn2444] RTC remote offer: v=0\r\no=rtc 1801565642 0 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0 1\r\na=group:LS 0 1\r\na=msid-semantic:WMS *\r\na=setup:actpass\r\na=ice-ufrag:GQ+z\r\na=ice-pwd:/c4rDfjcgACPKObfktxbsk\r\na=ice-options:ice2,trickle\r\na=fingerprint:sha-256 8D:19:56:3F:74:65:D5:20:2B:68:DD:AD:D4:38:B6:35:2D:4F:FF:3F:09:7D:D1:D6:87:38:B1:42:EA:24:65:2C\r\nm=audio 63656 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 192.168.1.6\r\na=mid:0\r\na=sendonly\r\na=ssrc:340728645 cname:rQcWaxPvcgYTistQ\r\na=ssrc:340728645 msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-audio\r\na=msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-audio\r\na=rtcp-mux\r\na=rtpmap:111 OPUS/48000/2\r\na=fmtp:111 minptime=10;maxaveragebitrate=96000;stereo=1;sprop-stereo=1;useinbandfec=1\r\na=candidate:1 1 UDP 2122317823 192.168.1.6 63656 typ host\r\na=end-of-candidates\r\nm=video 63656 UDP/TLS/RTP/SAVPF 96\r\nc=IN IP4 192.168.1.6\r\na=mid:1\r\na=sendonly\r\na=ssrc:340728646 cname:rQcWaxPvcgYTistQ\r\na=ssrc:340728646 msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-video\r\na=msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-video\r\na=rtcp-mux\r\na=rtpmap:96 H264/90000\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtcp-fb:96 goog-remb\r\na=fmtp:96 profile-level-id=42e01f;packetization-mode=1;level-asymmetry-allowed=1\r\n
[2023-11-18 03:42:43.288][INFO][1511][c1mn2444] RTC local answer: v=0\r\no=SRS/5.0.195(Bee) 42950643728 2 IN IP4 0.0.0.0\r\ns=SRSPublishSession\r\nt=0 0\r\na=ice-lite\r\na=group:BUNDLE 0 1\r\na=msid-semantic: WMS live/livestream\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:41905907\r\na=ice-pwd:37i853ku6o248833f7q5n0192o3k8h91\r\na=fingerprint:sha-256 9A:D6:17:D1:B5:51:F7:1B:80:75:13:68:67:22:EE:09:A9:84:CA:34:56:CF:CE:9F:61:CF:2E:8A:F3:F7:48:CE\r\na=setup:passive\r\na=mid:0\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:111 OPUS/48000/2\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=candidate:0 1 tcp 2130706431 192.168.1.6 8000 typ host tcptype passive\r\nm=video 9 UDP/TLS/RTP/SAVPF 96\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:41905907\r\na=ice-pwd:37i853ku6o248833f7q5n0192o3k8h91\r\na=fingerprint:sha-256 9A:D6:17:D1:B5:51:F7:1B:80:75:13:68:67:22:EE:09:A9:84:CA:34:56:CF:CE:9F:61:CF:2E:8A:F3:F7:48:CE\r\na=setup:passive\r\na=mid:1\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:96 H264/90000\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=fmtp:96 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\na=candidate:0 1 tcp 2130706431 192.168.1.6 8000 typ host tcptype passive\r\n
[2023-11-18 03:42:43.289][INFO][1511][c1mn2444] TCP: before dispose resource(HttpConn)(0xa000edc50), conns=4, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 03:42:43.289][WARN][1511][c1mn2444][104] client disconnect peer. ret=1007

Config

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

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

http_api {
    enabled         on;
    listen          1985;
}
stats {
    network         0;
}
rtc_server {
    enabled on;
    tcp {
        enabled on;
        listen 8000;
    }
    protocol tcp;
    # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
    candidate $CANDIDATE;
}

vhost __defaultVhost__ {
    rtc {
        enabled     on;
        # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
        rtmp_to_rtc off;
        # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
        rtc_to_rtmp off;
    }
    http_remux {
        enabled     on;
        mount       [vhost]/[app]/[stream].flv;
    }
}

TRANS_BY_GPT4

@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Nov 18, 2023
@winlinvip
Copy link
Member

winlinvip commented Nov 18, 2023

If you examine all the logs connected to c1mn2444:

[2023-11-18 03:42:43.285][INFO][1511][c1mn2444] HTTP #0 127.0.0.1:61507 POST http://localhost:1985/rtc/v1/whip/?app=live&stream=livestream, content-length=1182
[2023-11-18 03:42:43.286][INFO][1511][c1mn2444] RTC whip publish /live/livestream, clientip=127.0.0.1, app=live, stream=livestream, offer=1182B, eip=, codec=, srtp=, dtls=, ufrag=, pwd=, param=app=live&stream=livestream
[2023-11-18 03:42:43.286][INFO][1511][c1mn2444] ignore attribute=candidate, value=1 1 UDP 2122317823 192.168.1.6 63656 typ host
[2023-11-18 03:42:43.286][INFO][1511][c1mn2444] ignore attribute=end-of-candidates, value=
[2023-11-18 03:42:43.287][INFO][1511][c1mn2444] RTC publisher nack=1, nnc=1, pt-drop=0, twcc=0/0
[2023-11-18 03:42:43.287][INFO][1511][c1mn2444] RTC: Init tracks {track: fAB8s1VfJrRwiz2r-video, is_active: 0=>1},{track: fAB8s1VfJrRwiz2r-audio, is_active: 0=>1}, ok
[2023-11-18 03:42:43.287][INFO][1511][c1mn2444] Best matched ip=192.168.1.6, ifname={0DAA197A-81A1-49F0-AA5D-5C528A38B062}
[2023-11-18 03:42:43.287][INFO][1511][c1mn2444] RTC: Use candidates 192.168.1.6, protocol=tcp
[2023-11-18 03:42:43.288][INFO][1511][c1mn2444] RTC init session, user=41905907:GQ+z, url=/live/livestream, encrypt=1/1, DTLS(role=passive, version=auto), timeout=30000ms, nack=1
[2023-11-18 03:42:43.288][INFO][1511][c1mn2444] RTC username=41905907:GQ+z, offer=1182B, answer=1183B
[2023-11-18 03:42:43.288][INFO][1511][c1mn2444] RTC remote offer: v=0\r\no=rtc 1801565642 0 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0 1\r\na=group:LS 0 1\r\na=msid-semantic:WMS *\r\na=setup:actpass\r\na=ice-ufrag:GQ+z\r\na=ice-pwd:/c4rDfjcgACPKObfktxbsk\r\na=ice-options:ice2,trickle\r\na=fingerprint:sha-256 8D:19:56:3F:74:65:D5:20:2B:68:DD:AD:D4:38:B6:35:2D:4F:FF:3F:09:7D:D1:D6:87:38:B1:42:EA:24:65:2C\r\nm=audio 63656 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 192.168.1.6\r\na=mid:0\r\na=sendonly\r\na=ssrc:340728645 cname:rQcWaxPvcgYTistQ\r\na=ssrc:340728645 msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-audio\r\na=msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-audio\r\na=rtcp-mux\r\na=rtpmap:111 OPUS/48000/2\r\na=fmtp:111 minptime=10;maxaveragebitrate=96000;stereo=1;sprop-stereo=1;useinbandfec=1\r\na=candidate:1 1 UDP 2122317823 192.168.1.6 63656 typ host\r\na=end-of-candidates\r\nm=video 63656 UDP/TLS/RTP/SAVPF 96\r\nc=IN IP4 192.168.1.6\r\na=mid:1\r\na=sendonly\r\na=ssrc:340728646 cname:rQcWaxPvcgYTistQ\r\na=ssrc:340728646 msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-video\r\na=msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-video\r\na=rtcp-mux\r\na=rtpmap:96 H264/90000\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtcp-fb:96 goog-remb\r\na=fmtp:96 profile-level-id=42e01f;packetization-mode=1;level-asymmetry-allowed=1\r\n
[2023-11-18 03:42:43.288][INFO][1511][c1mn2444] RTC local answer: v=0\r\no=SRS/5.0.195(Bee) 42950643728 2 IN IP4 0.0.0.0\r\ns=SRSPublishSession\r\nt=0 0\r\na=ice-lite\r\na=group:BUNDLE 0 1\r\na=msid-semantic: WMS live/livestream\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:41905907\r\na=ice-pwd:37i853ku6o248833f7q5n0192o3k8h91\r\na=fingerprint:sha-256 9A:D6:17:D1:B5:51:F7:1B:80:75:13:68:67:22:EE:09:A9:84:CA:34:56:CF:CE:9F:61:CF:2E:8A:F3:F7:48:CE\r\na=setup:passive\r\na=mid:0\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:111 OPUS/48000/2\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=candidate:0 1 tcp 2130706431 192.168.1.6 8000 typ host tcptype passive\r\nm=video 9 UDP/TLS/RTP/SAVPF 96\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:41905907\r\na=ice-pwd:37i853ku6o248833f7q5n0192o3k8h91\r\na=fingerprint:sha-256 9A:D6:17:D1:B5:51:F7:1B:80:75:13:68:67:22:EE:09:A9:84:CA:34:56:CF:CE:9F:61:CF:2E:8A:F3:F7:48:CE\r\na=setup:passive\r\na=mid:1\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:96 H264/90000\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=fmtp:96 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\na=candidate:0 1 tcp 2130706431 192.168.1.6 8000 typ host tcptype passive\r\n
[2023-11-18 03:42:43.289][INFO][1511][c1mn2444] TCP: before dispose resource(HttpConn)(0xa000edc50), conns=4, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 03:42:43.289][WARN][1511][c1mn2444][104] client disconnect peer. ret=1007

You will find that this client disconnect peer is just an HTTP connection that has been disconnected. It is only a Warning, not an Error.

This is a WHIP session. There should be more logs following this.

TRANS_BY_GPT4

@winlinvip
Copy link
Member

winlinvip commented Nov 18, 2023

I tested OBS 30 and it seems that it does not support media transmission based on TCP. Here is the error log from OBS:

image

Here is the log from the SRS server:

[2023-11-18 09:43:29.189][INFO][27939][gxp8657p] RTC local answer: v=0\r\no=SRS/6.0.100(Hang) 107408542203008 2 IN IP4 0.0.0.0\r\ns=SRSPublishSession\r\nt=0 0\r\na=ice-lite\r\na=group:BUNDLE 0 1\r\na=msid-semantic: WMS live/livestream\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:00b4gl1p\r\na=ice-pwd:690q8607832196052s4e05ha22q791z5\r\na=fingerprint:sha-256 ED:C7:A3:57:FE:A5:C5:8B:17:18:11:CC:5B:24:0D:E2:7A:64:87:EF:C4:42:0B:9F:11:14:61:34:D0:55:3E:99\r\na=setup:passive\r\na=mid:0\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:111 OPUS/48000/2\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=candidate:0 1 tcp 2130706431 192.168.3.85 8000 typ host tcptype passive\r\nm=video 9 UDP/TLS/RTP/SAVPF 96\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:00b4gl1p\r\na=ice-pwd:690q8607832196052s4e05ha22q791z5\r\na=fingerprint:sha-256 ED:C7:A3:57:FE:A5:C5:8B:17:18:11:CC:5B:24:0D:E2:7A:64:87:EF:C4:42:0B:9F:11:14:61:34:D0:55:3E:99\r\na=setup:passive\r\na=mid:1\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:96 H264/90000\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=fmtp:96 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\na=candidate:0 1 tcp 2130706431 192.168.3.85 8000 typ host tcptype passive\r\n
[2023-11-18 09:43:29.190][INFO][27939][gxp8657p] TCP: before dispose resource(HttpConn)(0x607000003f20), conns=1, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 09:43:29.190][WARN][27939][gxp8657p][54] client disconnect peer. ret=1007

[2023-11-18 09:43:59.853][INFO][27939][gxp8657p] RTC: session destroy by timeout, username=00b4gl1p:dWGM
[2023-11-18 09:43:59.853][INFO][27939][gxp8657p] RTC: before dispose resource(RtcConn)(0x61b00000fc80), conns=1, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 09:43:59.853][INFO][27939][gxp8657p] RTC: session detach from [gxp8657p](RtcConn), disposing=1
[2023-11-18 09:43:59.853][INFO][27939][gxp8657p] RTC: disposing #0 resource(RtcConn)(0x61b00000fc80), conns=1, disposing=1, zombies=0
[2023-11-18 09:43:59.853][INFO][27939][gxp8657p] cleanup when unpublish, created=1, deliver=0

To reproduce this error, start SRS by:

./objs/srs -c conf/rtc.tcp.only.conf

Then publish via WHIP over TCP by OBS 30, the WHIP url is http://localhost:3000/rtc/v1/whip/?app=live&stream=livestream

Please note that it success if use Chrome to publish by WHIP via TCP: http://localhost:1985/rtc/v1/whip/?app=live&stream=livestream

You can verify it by WHEP: http://localhost:1985/rtc/v1/whep/?app=live&stream=livestream

TRANS_BY_GPT4

@winlinvip winlinvip self-assigned this Nov 18, 2023
@winlinvip winlinvip added the WebRTC WebRTC, RTC2RTMP or RTMP2RTC. label Nov 18, 2023
@LumineRose
Copy link
Author

LumineRose commented Nov 18, 2023

If you are examining all the logs related to c1mn2444:

[2023-11-18 03:42:43.285][INFO][1511][c1mn2444] HTTP #0 127.0.0.1:61507 POST http://localhost:1985/rtc/v1/whip/?app=live&stream=livestream, content-length=1182
[2023-11-18 03:42:43.286][INFO][1511][c1mn2444] RTC whip publish /live/livestream, clientip=127.0.0.1, app=live, stream=livestream, offer=1182B, eip=, codec=, srtp=, dtls=, ufrag=, pwd=, param=app=live&stream=livestream
[2023-11-18 03:42:43.286][INFO][1511][c1mn2444] ignore attribute=candidate, value=1 1 UDP 2122317823 192.168.1.6 63656 typ host
[2023-11-18 03:42:43.286][INFO][1511][c1mn2444] ignore attribute=end-of-candidates, value=
[2023-11-18 03:42:43.287][INFO][1511][c1mn2444] RTC publisher nack=1, nnc=1, pt-drop=0, twcc=0/0
[2023-11-18 03:42:43.287][INFO][1511][c1mn2444] RTC: Init tracks {track: fAB8s1VfJrRwiz2r-video, is_active: 0=>1},{track: fAB8s1VfJrRwiz2r-audio, is_active: 0=>1}, ok
[2023-11-18 03:42:43.287][INFO][1511][c1mn2444] Best matched ip=192.168.1.6, ifname={0DAA197A-81A1-49F0-AA5D-5C528A38B062}
[2023-11-18 03:42:43.287][INFO][1511][c1mn2444] RTC: Use candidates 192.168.1.6, protocol=tcp
[2023-11-18 03:42:43.288][INFO][1511][c1mn2444] RTC init session, user=41905907:GQ+z, url=/live/livestream, encrypt=1/1, DTLS(role=passive, version=auto), timeout=30000ms, nack=1
[2023-11-18 03:42:43.288][INFO][1511][c1mn2444] RTC username=41905907:GQ+z, offer=1182B, answer=1183B
[2023-11-18 03:42:43.288][INFO][1511][c1mn2444] RTC remote offer: v=0\r\no=rtc 1801565642 0 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0 1\r\na=group:LS 0 1\r\na=msid-semantic:WMS *\r\na=setup:actpass\r\na=ice-ufrag:GQ+z\r\na=ice-pwd:/c4rDfjcgACPKObfktxbsk\r\na=ice-options:ice2,trickle\r\na=fingerprint:sha-256 8D:19:56:3F:74:65:D5:20:2B:68:DD:AD:D4:38:B6:35:2D:4F:FF:3F:09:7D:D1:D6:87:38:B1:42:EA:24:65:2C\r\nm=audio 63656 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 192.168.1.6\r\na=mid:0\r\na=sendonly\r\na=ssrc:340728645 cname:rQcWaxPvcgYTistQ\r\na=ssrc:340728645 msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-audio\r\na=msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-audio\r\na=rtcp-mux\r\na=rtpmap:111 OPUS/48000/2\r\na=fmtp:111 minptime=10;maxaveragebitrate=96000;stereo=1;sprop-stereo=1;useinbandfec=1\r\na=candidate:1 1 UDP 2122317823 192.168.1.6 63656 typ host\r\na=end-of-candidates\r\nm=video 63656 UDP/TLS/RTP/SAVPF 96\r\nc=IN IP4 192.168.1.6\r\na=mid:1\r\na=sendonly\r\na=ssrc:340728646 cname:rQcWaxPvcgYTistQ\r\na=ssrc:340728646 msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-video\r\na=msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-video\r\na=rtcp-mux\r\na=rtpmap:96 H264/90000\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtcp-fb:96 goog-remb\r\na=fmtp:96 profile-level-id=42e01f;packetization-mode=1;level-asymmetry-allowed=1\r\n
[2023-11-18 03:42:43.288][INFO][1511][c1mn2444] RTC local answer: v=0\r\no=SRS/5.0.195(Bee) 42950643728 2 IN IP4 0.0.0.0\r\ns=SRSPublishSession\r\nt=0 0\r\na=ice-lite\r\na=group:BUNDLE 0 1\r\na=msid-semantic: WMS live/livestream\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:41905907\r\na=ice-pwd:37i853ku6o248833f7q5n0192o3k8h91\r\na=fingerprint:sha-256 9A:D6:17:D1:B5:51:F7:1B:80:75:13:68:67:22:EE:09:A9:84:CA:34:56:CF:CE:9F:61:CF:2E:8A:F3:F7:48:CE\r\na=setup:passive\r\na=mid:0\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:111 OPUS/48000/2\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=candidate:0 1 tcp 2130706431 192.168.1.6 8000 typ host tcptype passive\r\nm=video 9 UDP/TLS/RTP/SAVPF 96\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:41905907\r\na=ice-pwd:37i853ku6o248833f7q5n0192o3k8h91\r\na=fingerprint:sha-256 9A:D6:17:D1:B5:51:F7:1B:80:75:13:68:67:22:EE:09:A9:84:CA:34:56:CF:CE:9F:61:CF:2E:8A:F3:F7:48:CE\r\na=setup:passive\r\na=mid:1\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:96 H264/90000\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=fmtp:96 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\na=candidate:0 1 tcp 2130706431 192.168.1.6 8000 typ host tcptype passive\r\n
[2023-11-18 03:42:43.289][INFO][1511][c1mn2444] TCP: before dispose resource(HttpConn)(0xa000edc50), conns=4, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 03:42:43.289][WARN][1511][c1mn2444][104] client disconnect peer. ret=1007

You will find that this client disconnect peer is just an HTTP connection that was disconnected. It's merely a warning, not an error.

This is a WHIP session. There should be more logs after this.

TRANS_BY_GPT4

here is the full log from cmd after several connection attempts
`
C:\Program Files (x86)\SRS>for /F "tokens=2*" %i in ('REG QUERY "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\srs\ins_dir"') do set srs_home=%j

C:\Program Files (x86)\SRS>set srs_home=

C:\Program Files (x86)\SRS>set srs_home=REG_SZ C:\SRS\objs

C:\Program Files (x86)\SRS>echo REG_SZ C:\SRS\objs
REG_SZ C:\SRS\objs

C:\Program Files (x86)\SRS>for %I in ("REG_SZ C:\SRS\objs") do set srs_disk=%~dI

C:\Program Files (x86)\SRS>set srs_disk=C:

C:\Program Files (x86)\SRS>cd REG_SZ C:\SRS\objs
There is a syntax error in the file name, folder name, or volume label.

C:\Program Files (x86)\SRS>objs\srs.exe -c conf\rtc.tcp.only.conf
[2023-11-18 19:47:28.158][INFO][1004][1b357qm2] XCORE-SRS/5.0.195(Bee)
[2023-11-18 19:47:28.159][INFO][1004][1b357qm2] config parse complete
[2023-11-18 19:47:28.159][INFO][1004][1b357qm2] write log to console
[2023-11-18 19:47:28.159][INFO][1004][1b357qm2] SRS/5.0.195(Bee), MIT
[2023-11-18 19:47:28.159][INFO][1004][1b357qm2] 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 and https://github.com/ossrs/srs/blob/develop/trunk/AUTHORS.md#contributors
[2023-11-18 19:47:28.160][INFO][1004][1b357qm2] cwd=/, work_dir=./, build: 2023-10-25 13:05:42, configure: --gb28181=on, uname: CYGWIN_NT-10.0-20348 fv-az369-735 3.4.9-1.x86_64 2023-09-06 11:19 UTC x86_64 Cygwin, osx: 0, env: 0, pkg:
[2023-11-18 19:47:28.160][INFO][1004][1b357qm2] configure detail: --prefix=/usr/local/srs --config=conf/srs.conf --osx=off --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-converter=on --http-api=on --utest=off --srt=off --sys-srt=off --rtc=on --gb28181=on --simulator=off --cxx11=on --cxx14=off --backtrace=on --ffmpeg-fit=on --sys-ffmpeg=off --ffmpeg-opus=off --nasm=on --srtp-nasm=on --sys-srtp=off --clean=on --gperf=off --gmc=off --gmd=off --gmp=off --gcp=off --gprof=off --static=off --shared-st=off --shared-srt=reserved --shared-ffmpeg=reserved --shared-srtp=reserved --log-verbose=off --log-info=off --log-trace=on --log-level_v2=on --gcov=off --apm=off --debug=off --debug-stats=off --cross-build=off --sanitizer=off --sanitizer-static=off --sanitizer-log=off --cygwin64=on --single-thread=on --generic-linux=off --cc=gcc --cxx=g++ --ar=ar --ld=ld --randlib=randlib
[2023-11-18 19:47:28.160][INFO][1004][1b357qm2] srs checking config...
[2023-11-18 19:47:28.165][INFO][1004][1b357qm2] ips, iface[0] {0DAA197A-81A1-49F0-AA5D-5C528A38B062} ipv4 0x11043 192.168.1.6
[2023-11-18 19:47:28.166][INFO][1004][1b357qm2] devices, intranet {0DAA197A-81A1-49F0-AA5D-5C528A38B062} 192.168.1.6
[2023-11-18 19:47:28.166][WARN][1004][1b357qm2][0] stats network use index=0, ip=192.168.1.6, ifname={0DAA197A-81A1-49F0-AA5D-5C528A38B062}
[2023-11-18 19:47:28.167][WARN][1004][1b357qm2][0] stats disk not configed, disk iops disabled.
[2023-11-18 19:47:28.167][INFO][1004][1b357qm2] write log to console
[2023-11-18 19:47:28.167][INFO][1004][1b357qm2] 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
[2023-11-18 19:47:28.167][INFO][1004][1b357qm2] SRS on amd64 x86_64, conf:conf\rtc.tcp.only.conf, limit:1000, writev:1024, encoding:little-endian, HZ:1000
[2023-11-18 19:47:28.168][INFO][1004][1b357qm2] mw sleep:350ms. mr enabled:on, default:0, sleep:350ms
[2023-11-18 19:47:28.168][INFO][1004][1b357qm2] gc:on, pq:30000ms, cscc:[0,16), csa:on, tn:on(may hurts performance), ss:auto(guess by merged write)
[2023-11-18 19:47:28.168][INFO][1004][1b357qm2] system default latency(ms): mw(0-350) + mr(0-350) + play-queue(0-30000)
[2023-11-18 19:47:28.168][INFO][1004][1b357qm2] Run in single thread mode
[2023-11-18 19:47:28.172][INFO][1004][1b357qm2] fingerprint=84:18:AF:15:78:E6:D1:51:4C:D7:63:C1:13:1C:84:67:A0:F9:9A:F8:32:2F:55:CB:39:2D:2B:1F:25:53:62:B6
[2023-11-18 19:47:28.172][INFO][1004][1b357qm2] CircuitBreaker: enabled=1, high=2x90, critical=1x95, dying=5x99
[2023-11-18 19:47:28.172][INFO][1004][1b357qm2] http flv live stream, vhost=defaultVhost, mount=[vhost]/[app]/[stream].flv
[2023-11-18 19:47:28.172][INFO][1004][1b357qm2] http: root mount to ./objs/nginx/html
[2023-11-18 19:47:28.173][INFO][1004][1b357qm2] server main cid=1b357qm2, pid=1004, ppid=1, asprocess=0
[2023-11-18 19:47:28.174][WARN][1004][1b357qm2][22] SO_REUSEPORT is not supported util Linux kernel 3.9
[2023-11-18 19:47:28.174][INFO][1004][1b357qm2] RTMP listen at tcp://0.0.0.0:1935, fd=6
[2023-11-18 19:47:28.174][WARN][1004][1b357qm2][22] SO_REUSEPORT is not supported util Linux kernel 3.9
[2023-11-18 19:47:28.176][INFO][1004][1b357qm2] HTTP-API listen at tcp://0.0.0.0:1985, fd=7
[2023-11-18 19:47:28.176][WARN][1004][1b357qm2][22] SO_REUSEPORT is not supported util Linux kernel 3.9
[2023-11-18 19:47:28.176][INFO][1004][1b357qm2] HTTP-Server listen at tcp://0.0.0.0:8080, fd=8
[2023-11-18 19:47:28.176][WARN][1004][1b357qm2][22] SO_REUSEPORT is not supported util Linux kernel 3.9
[2023-11-18 19:47:28.177][INFO][1004][1b357qm2] WebRTC listen at tcp://0.0.0.0:8000, fd=9
[2023-11-18 19:47:28.177][INFO][1004][1b357qm2] signal installed, reload=1, reopen=30, fast_quit=15, grace_quit=3
[2023-11-18 19:47:28.177][INFO][1004][1b357qm2] http: api mount /console to ./objs/nginx/html/console
[2023-11-18 19:47:28.177][WARN][1004][1b357qm2][22] SO_REUSEPORT is not supported util Linux kernel 3.9
[2023-11-18 19:47:28.178][INFO][1004][1b357qm2] rtc listen at udp://0.0.0.0:8000, fd=10
[2023-11-18 19:47:28.184][INFO][1004][1c0c8agj] Hybrid cpu=0.00%,20MB
[2023-11-18 19:47:28.184][WARN][1004][i71t1r7o][22] use private address as ip: 192.168.1.6, ifname={0DAA197A-81A1-49F0-AA5D-5C528A38B062}
[2023-11-18 19:47:28.185][INFO][1004][i71t1r7o] Startup query id=vid-864p7n0, session=vid-1159010, eip=192.168.1.6, wait=300s
[2023-11-18 19:47:28.185][INFO][1004][89277238] TCP: connection manager run, conns=0
[2023-11-18 19:47:28.320][INFO][1004][3t2j02f1] GB: connection manager run, conns=0
[2023-11-18 19:47:28.320][INFO][1004][x27b99n5] UDP #10 LISTEN at 0.0.0.0:8000, SO_SNDBUF(default=65536, expect=10485760, actual=10485760, r0=0), SO_RCVBUF(default=65536, expect=10485760, actual=10485760, r0=0)
[2023-11-18 19:47:28.321][INFO][1004][a5a05603] RTC: connection manager run, conns=0
[2023-11-18 19:47:29.852][INFO][1004][082768qm] HTTP #0 127.0.0.1:52551 POST http://127.0.0.1:1985/rtc/v1/whip/?app=live&stream=livestream, content-length=1186
[2023-11-18 19:47:29.852][INFO][1004][082768qm] RTC whip publish /live/livestream, clientip=127.0.0.1, app=live, stream=livestream, offer=1186B, eip=, codec=, srtp=, dtls=, ufrag=, pwd=, param=app=live&stream=livestream
[2023-11-18 19:47:29.853][INFO][1004][082768qm] ignore attribute=candidate, value=1 1 UDP 2122317823 192.168.1.6 49461 typ host
[2023-11-18 19:47:29.853][INFO][1004][082768qm] ignore attribute=end-of-candidates, value=
[2023-11-18 19:47:29.853][INFO][1004][082768qm] new rtc source, stream_url=/live/livestream
[2023-11-18 19:47:29.854][INFO][1004][082768qm] RTC publisher nack=1, nnc=1, pt-drop=0, twcc=0/0
[2023-11-18 19:47:29.854][INFO][1004][082768qm] RTC: Init tracks {track: fAB8s1VfJrRwiz2r-video, is_active: 0=>1},{track: fAB8s1VfJrRwiz2r-audio, is_active: 0=>1}, ok
[2023-11-18 19:47:29.854][INFO][1004][082768qm] Best matched ip=192.168.1.6, ifname={0DAA197A-81A1-49F0-AA5D-5C528A38B062}
[2023-11-18 19:47:29.854][INFO][1004][082768qm] RTC: Use candidates 192.168.1.6, protocol=tcp
[2023-11-18 19:47:29.857][INFO][1004][082768qm] RTC init session, user=08z18shg:7+S3, url=/live/livestream, encrypt=1/1, DTLS(role=passive, version=auto), timeout=30000ms, nack=1
[2023-11-18 19:47:29.857][INFO][1004][082768qm] RTC username=08z18shg:7+S3, offer=1186B, answer=1183B
[2023-11-18 19:47:29.858][INFO][1004][082768qm] RTC remote offer: v=0\r\no=rtc 2152133970 0 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0 1\r\na=group:LS 0 1\r\na=msid-semantic:WMS *\r\na=setup:actpass\r\na=ice-ufrag:7+S3\r\na=ice-pwd:OQopo8+4D10MCuNqhPWIta\r\na=ice-options:ice2,trickle\r\na=fingerprint:sha-256 DB:96:2A:D2:B8:9E:C4:40:33:CC:0E:1D:CA:BF:2C:20:11:1A:90:67:E5:57:32:43:9F:1F:70:01:14:4B:7D:78\r\nm=audio 49461 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 192.168.1.6\r\na=mid:0\r\na=sendonly\r\na=ssrc:1922577107 cname:rQcWaxPvcgYTistQ\r\na=ssrc:1922577107 msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-audio\r\na=msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-audio\r\na=rtcp-mux\r\na=rtpmap:111 OPUS/48000/2\r\na=fmtp:111 minptime=10;maxaveragebitrate=96000;stereo=1;sprop-stereo=1;useinbandfec=1\r\na=candidate:1 1 UDP 2122317823 192.168.1.6 49461 typ host\r\na=end-of-candidates\r\nm=video 49461 UDP/TLS/RTP/SAVPF 96\r\nc=IN IP4 192.168.1.6\r\na=mid:1\r\na=sendonly\r\na=ssrc:1922577108 cname:rQcWaxPvcgYTistQ\r\na=ssrc:1922577108 msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-video\r\na=msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-video\r\na=rtcp-mux\r\na=rtpmap:96 H264/90000\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtcp-fb:96 goog-remb\r\na=fmtp:96 profile-level-id=42e01f;packetization-mode=1;level-asymmetry-allowed=1\r\n
[2023-11-18 19:47:29.858][INFO][1004][082768qm] RTC local answer: v=0\r\no=SRS/5.0.195(Bee) 42950481360 2 IN IP4 0.0.0.0\r\ns=SRSPublishSession\r\nt=0 0\r\na=ice-lite\r\na=group:BUNDLE 0 1\r\na=msid-semantic: WMS live/livestream\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:08z18shg\r\na=ice-pwd:r149l0t689c704u5do0m85h3z0h59o46\r\na=fingerprint:sha-256 84:18:AF:15:78:E6:D1:51:4C:D7:63:C1:13:1C:84:67:A0:F9:9A:F8:32:2F:55:CB:39:2D:2B:1F:25:53:62:B6\r\na=setup:passive\r\na=mid:0\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:111 OPUS/48000/2\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=candidate:0 1 tcp 2130706431 192.168.1.6 8000 typ host tcptype passive\r\nm=video 9 UDP/TLS/RTP/SAVPF 96\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:08z18shg\r\na=ice-pwd:r149l0t689c704u5do0m85h3z0h59o46\r\na=fingerprint:sha-256 84:18:AF:15:78:E6:D1:51:4C:D7:63:C1:13:1C:84:67:A0:F9:9A:F8:32:2F:55:CB:39:2D:2B:1F:25:53:62:B6\r\na=setup:passive\r\na=mid:1\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:96 H264/90000\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=fmtp:96 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\na=candidate:0 1 tcp 2130706431 192.168.1.6 8000 typ host tcptype passive\r\n
[2023-11-18 19:47:29.858][INFO][1004][082768qm] TCP: before dispose resource(HttpConn)(0xa000a1dc0), conns=1, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 19:47:29.859][WARN][1004][082768qm][104] client disconnect peer. ret=1007
[2023-11-18 19:47:29.859][INFO][1004][89277238] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2023-11-18 19:47:29.859][INFO][1004][082768qm] TCP: disposing #0 resource(HttpConn)(0xa000a1dc0), conns=1, disposing=1, zombies=0
[2023-11-18 19:47:33.158][INFO][1004][1c0c8agj] Hybrid cpu=0.00%,27MB
[2023-11-18 19:47:33.158][INFO][1004][1c0c8agj] RTC: Server conns=1
[2023-11-18 19:47:38.158][INFO][1004][1c0c8agj] Hybrid cpu=1.59%,27MB
[2023-11-18 19:47:38.158][INFO][1004][1c0c8agj] RTC: Server conns=1
[2023-11-18 19:47:43.159][INFO][1004][1c0c8agj] Hybrid cpu=0.00%,27MB, cid=2,1, timer=62,9,43, clock=0,47,1,1,1,0,0,0,1, free=1
[2023-11-18 19:47:43.159][INFO][1004][1c0c8agj] RTC: Server conns=1
[2023-11-18 19:47:48.159][INFO][1004][1c0c8agj] Hybrid cpu=1.50%,27MB, cid=2,1, timer=62,9,43, clock=0,47,1,1,1,0,0,0,1, free=1
[2023-11-18 19:47:48.159][INFO][1004][1c0c8agj] RTC: Server conns=1, snk=(98,a:49,v:49,h:0)
[2023-11-18 19:47:49.900][INFO][1004][3t5oq8o6] HTTP #0 127.0.0.1:52583 DELETE http://127.0.0.1:1985/rtc/v1/whip/?action=delete&token=ha88y2dr7&app=live&stream=livestream&session=08z18shg:7+S3, content-length=-1
[2023-11-18 19:47:49.900][INFO][1004][082768qm] RTC: before dispose resource(RtcConn)(0xa000c55d0), conns=1, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 19:47:49.901][INFO][1004][082768qm] RTC: session detach from 082768qm, disposing=1
[2023-11-18 19:47:49.902][INFO][1004][3t5oq8o6] WHIP: Delete session=08z18shg:7+S3, p=0xa000c55d0, url=http://127.0.0.1:1985/rtc/v1/whip/?action=delete&token=ha88y2dr7&app=live&stream=livestream&session=08z18shg:7+S3
[2023-11-18 19:47:49.902][INFO][1004][a5a05603] RTC: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2023-11-18 19:47:49.903][INFO][1004][082768qm] RTC: disposing #0 resource(RtcConn)(0xa000c55d0), conns=1, disposing=1, zombies=0
[2023-11-18 19:47:49.903][INFO][1004][082768qm] cleanup when unpublish, created=1, deliver=0
[2023-11-18 19:47:49.903][WARN][1004][082768qm][11][DTLS_HANG] DTLS: Hang, done=0, version=-1, arq=0
[2023-11-18 19:47:49.904][WARN][1004][082768qm][11][DTLS_HANG] DTLS: Hang, done=0, version=-1, arq=0
[2023-11-18 19:47:49.904][INFO][1004][3t5oq8o6] TCP: before dispose resource(HttpConn)(0xa000c6c40), conns=1, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 19:47:49.904][WARN][1004][3t5oq8o6][104] client disconnect peer. ret=1007
[2023-11-18 19:47:49.905][INFO][1004][89277238] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2023-11-18 19:47:49.905][INFO][1004][3t5oq8o6] TCP: disposing #0 resource(HttpConn)(0xa000c6c40), conns=1, disposing=1, zombies=0
[2023-11-18 19:47:53.000][INFO][1004][5tf47246] HTTP #0 127.0.0.1:52584 POST http://127.0.0.1:1985/rtc/v1/whip/?app=live&stream=livestream, content-length=1186
[2023-11-18 19:47:53.000][INFO][1004][5tf47246] RTC whip publish /live/livestream, clientip=127.0.0.1, app=live, stream=livestream, offer=1186B, eip=, codec=, srtp=, dtls=, ufrag=, pwd=, param=app=live&stream=livestream
[2023-11-18 19:47:53.001][INFO][1004][5tf47246] ignore attribute=candidate, value=1 1 UDP 2122317823 192.168.1.6 59355 typ host
[2023-11-18 19:47:53.001][INFO][1004][5tf47246] ignore attribute=end-of-candidates, value=
[2023-11-18 19:47:53.001][INFO][1004][5tf47246] RTC publisher nack=1, nnc=1, pt-drop=0, twcc=0/0
[2023-11-18 19:47:53.002][INFO][1004][5tf47246] RTC: Init tracks {track: fAB8s1VfJrRwiz2r-video, is_active: 0=>1},{track: fAB8s1VfJrRwiz2r-audio, is_active: 0=>1}, ok
[2023-11-18 19:47:53.002][INFO][1004][5tf47246] Best matched ip=192.168.1.6, ifname={0DAA197A-81A1-49F0-AA5D-5C528A38B062}
[2023-11-18 19:47:53.002][INFO][1004][5tf47246] RTC: Use candidates 192.168.1.6, protocol=tcp
[2023-11-18 19:47:53.002][INFO][1004][5tf47246] RTC init session, user=656x25ws:jzaK, url=/live/livestream, encrypt=1/1, DTLS(role=passive, version=auto), timeout=30000ms, nack=1
[2023-11-18 19:47:53.002][INFO][1004][5tf47246] RTC username=656x25ws:jzaK, offer=1186B, answer=1183B
[2023-11-18 19:47:53.003][INFO][1004][5tf47246] RTC remote offer: v=0\r\no=rtc 4275440156 0 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0 1\r\na=group:LS 0 1\r\na=msid-semantic:WMS *\r\na=setup:actpass\r\na=ice-ufrag:jzaK\r\na=ice-pwd:VHRyTKJq9TwPbzswv210pG\r\na=ice-options:ice2,trickle\r\na=fingerprint:sha-256 87:06:19:C5:0A:7C:20:40:55:50:F7:50:E9:AE:14:36:99:69:85:5F:FA:26:80:78:A8:4F:EC:28:4B:15:8F:3A\r\nm=audio 59355 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 192.168.1.6\r\na=mid:0\r\na=sendonly\r\na=ssrc:1922577107 cname:rQcWaxPvcgYTistQ\r\na=ssrc:1922577107 msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-audio\r\na=msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-audio\r\na=rtcp-mux\r\na=rtpmap:111 OPUS/48000/2\r\na=fmtp:111 minptime=10;maxaveragebitrate=96000;stereo=1;sprop-stereo=1;useinbandfec=1\r\na=candidate:1 1 UDP 2122317823 192.168.1.6 59355 typ host\r\na=end-of-candidates\r\nm=video 59355 UDP/TLS/RTP/SAVPF 96\r\nc=IN IP4 192.168.1.6\r\na=mid:1\r\na=sendonly\r\na=ssrc:1922577108 cname:rQcWaxPvcgYTistQ\r\na=ssrc:1922577108 msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-video\r\na=msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-video\r\na=rtcp-mux\r\na=rtpmap:96 H264/90000\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtcp-fb:96 goog-remb\r\na=fmtp:96 profile-level-id=42e01f;packetization-mode=1;level-asymmetry-allowed=1\r\n
[2023-11-18 19:47:53.003][INFO][1004][5tf47246] RTC local answer: v=0\r\no=SRS/5.0.195(Bee) 42950478000 2 IN IP4 0.0.0.0\r\ns=SRSPublishSession\r\nt=0 0\r\na=ice-lite\r\na=group:BUNDLE 0 1\r\na=msid-semantic: WMS live/livestream\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:656x25ws\r\na=ice-pwd:7991769yqi3ep2257c1193fbob64876v\r\na=fingerprint:sha-256 84:18:AF:15:78:E6:D1:51:4C:D7:63:C1:13:1C:84:67:A0:F9:9A:F8:32:2F:55:CB:39:2D:2B:1F:25:53:62:B6\r\na=setup:passive\r\na=mid:0\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:111 OPUS/48000/2\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=candidate:0 1 tcp 2130706431 192.168.1.6 8000 typ host tcptype passive\r\nm=video 9 UDP/TLS/RTP/SAVPF 96\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:656x25ws\r\na=ice-pwd:7991769yqi3ep2257c1193fbob64876v\r\na=fingerprint:sha-256 84:18:AF:15:78:E6:D1:51:4C:D7:63:C1:13:1C:84:67:A0:F9:9A:F8:32:2F:55:CB:39:2D:2B:1F:25:53:62:B6\r\na=setup:passive\r\na=mid:1\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:96 H264/90000\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=fmtp:96 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\na=candidate:0 1 tcp 2130706431 192.168.1.6 8000 typ host tcptype passive\r\n
[2023-11-18 19:47:53.003][INFO][1004][5tf47246] TCP: before dispose resource(HttpConn)(0xa000c2ef0), conns=1, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 19:47:53.003][WARN][1004][5tf47246][104] client disconnect peer. ret=1007
[2023-11-18 19:47:53.004][INFO][1004][89277238] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2023-11-18 19:47:53.004][INFO][1004][5tf47246] TCP: disposing #0 resource(HttpConn)(0xa000c2ef0), conns=1, disposing=1, zombies=0
[2023-11-18 19:47:53.160][INFO][1004][1c0c8agj] Hybrid cpu=1.60%,27MB, cid=5,1, timer=62,7,34, clock=0,48,1,1,1,0,0,0,0, free=1
[2023-11-18 19:47:53.160][INFO][1004][1c0c8agj] RTC: Server conns=1, snk=(98,a:49,v:49,h:0)
[2023-11-18 19:47:58.160][INFO][1004][1c0c8agj] Hybrid cpu=1.61%,27MB, cid=5,1, timer=62,7,34, clock=0,48,1,1,1,0,0,0,0, free=1
[2023-11-18 19:47:58.160][INFO][1004][1c0c8agj] RTC: Server conns=1, snk=(68,a:34,v:34,h:0)
[2023-11-18 19:47:59.447][INFO][1004][3c002253] HTTP #0 127.0.0.1:52593 DELETE http://127.0.0.1:1985/rtc/v1/whip/?action=delete&token=85mx79251&app=live&stream=livestream&session=656x25ws:jzaK, content-length=-1
[2023-11-18 19:47:59.448][INFO][1004][5tf47246] RTC: before dispose resource(RtcConn)(0xa000c48b0), conns=1, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 19:47:59.448][INFO][1004][5tf47246] RTC: session detach from 5tf47246, disposing=1
[2023-11-18 19:47:59.449][INFO][1004][3c002253] WHIP: Delete session=656x25ws:jzaK, p=0xa000c48b0, url=http://127.0.0.1:1985/rtc/v1/whip/?action=delete&token=85mx79251&app=live&stream=livestream&session=656x25ws:jzaK
[2023-11-18 19:47:59.449][INFO][1004][a5a05603] RTC: clear zombies=1 resources, conns=1, removing=0, unsubs=1
[2023-11-18 19:47:59.450][INFO][1004][5tf47246] RTC: disposing #0 resource(RtcConn)(0xa000c48b0), conns=1, disposing=1, zombies=0
[2023-11-18 19:47:59.450][INFO][1004][5tf47246] cleanup when unpublish, created=1, deliver=0
[2023-11-18 19:47:59.450][WARN][1004][5tf47246][11][DTLS_HANG] DTLS: Hang, done=0, version=-1, arq=0
[2023-11-18 19:47:59.451][WARN][1004][5tf47246][11][DTLS_HANG] DTLS: Hang, done=0, version=-1, arq=0
[2023-11-18 19:47:59.451][INFO][1004][3c002253] TCP: before dispose resource(HttpConn)(0xa000c7610), conns=1, zombies=0, ign=0, inz=0, ind=0
[2023-11-18 19:47:59.451][WARN][1004][3c002253][104] client disconnect peer. ret=1007
[2023-11-18 19:47:59.451][INFO][1004][89277238] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2023-11-18 19:47:59.452][INFO][1004][3c002253] TCP: disposing #0 resource(HttpConn)(0xa000c7610), conns=1, disposing=1, zombies=0
[2023-11-18 19:48:03.160][INFO][1004][1c0c8agj] Hybrid cpu=1.60%,27MB, cid=2,1, timer=62,7,31, clock=0,48,1,1,1,0,0,0,0, free=1
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TransByAI Translated by AI/GPT. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.
Projects
None yet
Development

No branches or pull requests

2 participants