Open LumineRose opened 7 months ago
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
I tested OBS 30 and it seems that it does not support media transmission based on TCP. Here is the error log from OBS:
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
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 `
Windows version, when streaming OBS via webrtc tcp, a connection error occurs
Release v5.0-b6
Steps to reproduce the behavior:
Expected behavior Connecting and working webrtc stream via tcp only
Additional context log and confg
Config
TRANS_BY_GPT4