ossrs / srs

SRS is a simple, high-efficiency, real-time media server supporting RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
25.83k stars 5.4k forks source link

WebRTC: The interface can be requested and returns normally, but it cannot be played using Google Chrome browser and SRS live streaming app. It keeps spinning in circles. #2148

Closed tingfeng-key closed 3 years ago

tingfeng-key commented 3 years ago

Description'

Please ensure that the markdown structure is maintained.

webrtc cannot play, using Google Chrome and SRS live streaming APP cannot play, Chrome can request the interface and return normally, but cannot play, always spinning in circles.

  1. SRS version: 4.0.59
  2. SRS log as follows: Please make sure to maintain the markdown structure.
    
    [2021-01-14 19:00:15.459][Trace][15279][75801xp4] source url=/live/livestream, ip=1.204.118.242, cache=0, is_edge=0, source_id=/
    [2021-01-14 19:00:15.568][Trace][15279][75801xp4] ignore disabled exec for vhost=__defaultVhost__
    [2021-01-14 19:00:15.568][Trace][15279][75801xp4] http: mount flv stream for sid=/live/livestream, mount=/live/livestream.flv
    [2021-01-14 19:00:15.568][Trace][15279][75801xp4] set fd=14 TCP_NODELAY 0=>1
    [2021-01-14 19:00:15.568][Trace][15279][75801xp4] start publish mr=0/350, p1stpt=20000, pnt=5000, tcp_nodelay=1
    [2021-01-14 19:00:15.605][Trace][15279][75801xp4] got metadata, width=1024, height=640
    [2021-01-14 19:00:16.396][Trace][15279][75801xp4] 4B audio sh, codec(10, profile=LC, 2channels, 0kbps, 44100HZ), flv(16bits, 2channels, 44100HZ)
    [2021-01-14 19:00:16.433][Trace][15279][75801xp4] 45B video sh,  codec(7, profile=High, level=3.1, 1024x640, 0kbps, 0.0fps, 0.0s)
    [2021-01-14 19:00:27.904][Trace][15279][7k512026] https: api server done, use key ./conf/zhibo_server.key and cert ./conf/zhibo_server.crt, cost=45ms
    [2021-01-14 19:00:27.939][Trace][15279][7k512026] HTTP #0 1.204.118.242:16086 OPTIONS https://zhibo.hardymonkey.cn:1990/rtc/v1/play/, content-length=-1
    [2021-01-14 19:00:27.984][Trace][15279][7k512026] HTTP #1 1.204.118.242:16086 POST https://zhibo.hardymonkey.cn:1990/rtc/v1/play/, content-length=5282
    [2021-01-14 19:00:27.984][Trace][15279][7k512026] RTC play webrtc://zhibo.hardymonkey.cn:1990/live/livestream, api=https://zhibo.hardymonkey.cn:1990/rtc/v1/play/, clientip=, app=live, stream=livestream, offer=4836B, eip=, srtp=, dtls=
    [2021-01-14 19:00:27.984][Trace][15279][7k512026] RTC player nack=1
    [2021-01-14 19:00:27.984][Trace][15279][7k512026] RTC connection player gcc=0
    [2021-01-14 19:00:27.984][Trace][15279][7k512026] RTC: Init tracks {track: video-968z9605, is_active: 0=>1},{track: audio-41o60b77, is_active: 0=>1}, ok
    [2021-01-14 19:00:27.984][Trace][15279][7k512026] Best matched ip=172.17.0.7, ifname=eth0
    [2021-01-14 19:00:27.984][Trace][15279][7k512026] RTC: Use candidates 172.17.0.7
    [2021-01-14 19:00:27.985][Warn][15279][7k512026][0][DTLS_HANG] DTLS: Hang, done=0, version=-1, arq=0
    [2021-01-14 19:00:27.985][Trace][15279][7k512026] RTC init session, user=b64g8et9:bnP3, url=/live/livestream, encrypt=1/1, DTLS(role=passive, version=auto), timeout=30000ms
    [2021-01-14 19:00:27.985][Trace][15279][7k512026] RTC username=b64g8et9:bnP3, dtls=1, srtp=1, offer=4836B, answer=1252B
    [2021-01-14 19:00:27.985][Trace][15279][7k512026] RTC remote offer: v=0\r\no=- 344077803054005157 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0 1\r\na=msid-semantic: WMS\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:bnP3\r\na=ice-pwd:g8kg/8+m9Yezw4gwD49ZuBUB\r\na=ice-options:trickle\r\na=fingerprint:sha-256 06:59:D9:CA:71:D0:7A:8F:64:0B:4D:BE:6E:33:E2:0D:E0:AB:8D:E8:E7:EB:E6:19:92:99:A7:A6:0E:F4:4B:9B\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=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id\r\na=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id\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:103 ISAC/16000\r\na=rtpmap:104 ISAC/32000\r\na=rtpmap:9 G722/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:106 CN/32000\r\na=rtpmap:105 CN/16000\r\na=rtpmap:13 CN/8000\r\na=rtpmap:110 telephone-event/48000\r\na=rtpmap:112 telephone-event/32000\r\na=rtpmap:113 telephone-event/16000\r\na=rtpmap:126 telephone-event/8000\r\nm=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 122 102 120 127 119 125 107 108 109 121 114 115 124 118 123\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:bnP3\r\na=ice-pwd:g8kg/8+m9Yezw4gwD49ZuBUB\r\na=ice-options:trickle\r\na=fingerprint:sha-256 06:59:D9:CA:71:D0:7A:8F:64:0B:4D:BE:6E:33:E2:0D:E0:AB:8D:E8:E7:EB:E6:19:92:99:A7:A6:0E:F4:4B:9B\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:12 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay\r\na=extmap:11 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:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id\r\na=extmap:6 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:122 VP9/90000\r\na=rtcp-fb:122 goog-remb\r\na=rtcp-fb:122 transport-cc\r\na=rtcp-fb:122 ccm fir\r\na=rtcp-fb:122 nack\r\na=rtcp-fb:122 nack pli\r\na=fmtp:122 profile-id=1\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:120 rtx/90000\r\na=fmtp:120 apt=102\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=0;profile-level-id=42001f\r\na=rtpmap:119 rtx/90000\r\na=fmtp:119 apt=127\r\na=rtpmap:125 H264/90000\r\na=rtcp-fb:125 goog-remb\r\na=rtcp-fb:125 transport-cc\r\na=rtcp-fb:125 ccm fir\r\na=rtcp-fb:125 nack\r\na=rtcp-fb:125 nack pli\r\na=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\na=rtpmap:107 rtx/90000\r\na=fmtp:107 apt=125\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:121 H264/90000\r\na=rtcp-fb:121 goog-remb\r\na=rtcp-fb:121 transport-cc\r\na=rtcp-fb:121 ccm fir\r\na=rtcp-fb:121 nack\r\na=rtcp-fb:121 nack pli\r\na=fmtp:121 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d0015\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=1;profile-level-id=640015\r\na=rtpmap:115 rtx/90000\r\na=fmtp:115 apt=114\r\na=rtpmap:124 red/90000\r\na=rtpmap:118 rtx/90000\r\na=fmtp:118 apt=124\r\na=rtpmap:123 ulpfec/90000\r\n
    [2021-01-14 19:00:27.985][Trace][15279][7k512026] RTC local answer: v=0\r\no=SRS/4.0.59(Leo) 47166000 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:b64g8et9\r\na=ice-pwd:40n3p69wqe78o3f597x1718444t21431\r\na=fingerprint:sha-256 3E:95:59:82:DE:E1:F1:DC:57:E4:77:7F:2A:88:47:7B:03:3B:67:5B:8B:D4:8E:F1:92:3D:3B:73:E6:10:7B:09\r\na=setup:passive\r\na=mid:0\r\na=sendonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:111 opus/48000/2\r\na=ssrc:154333182 cname:10271kor62658m50\r\na=ssrc:154333182 label:audio-41o60b77\r\na=candidate:0 1 udp 2130706431 172.17.0.7 8000 typ host generation 0\r\nm=video 9 UDP/TLS/RTP/SAVPF 125\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:b64g8et9\r\na=ice-pwd:40n3p69wqe78o3f597x1718444t21431\r\na=fingerprint:sha-256 3E:95:59:82:DE:E1:F1:DC:57:E4:77:7F:2A:88:47:7B:03:3B:67:5B:8B:D4:8E:F1:92:3D:3B:73:E6:10:7B:09\r\na=setup:passive\r\na=mid:1\r\na=sendonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:125 H264/90000\r\na=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\na=ssrc:154333183 cname:10271kor62658m50\r\na=ssrc:154333183 label:video-968z9605\r\na=candidate:0 1 udp 2130706431 172.17.0.7 8000 typ host generation 0\r\n
    [2021-01-14 19:00:28.060][Trace][15279][7k512026] TCP: before dispose resource(HttpsConn)(0x2c64300), conns=2, zombies=0, ign=0, inz=0, ind=0
    [2021-01-14 19:00:28.060][Warn][15279][7k512026][104] client disconnect peer. ret=1007
    [2021-01-14 19:00:28.060][Trace][15279][a67s7097] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0
    [2021-01-14 19:00:28.060][Trace][15279][7k512026] TCP: disposing #0 resource(HttpsConn)(0x2c64300), conns=2, disposing=1, zombies=0
    [2021-01-14 19:00:32.583][Trace][15279][132p9l79] RTC: Server conns=1, cpu=1.33%, rss=7MB
    [2021-01-14 19:00:37.583][Trace][15279][132p9l79] RTC: Server conns=1, cpu=1.33%, rss=7MB
    [2021-01-14 19:00:40.568][Trace][15279][75801xp4] <- CPB time=20003328, okbps=1,0,0, ikbps=2544,0,0, mr=0/350, p1stpt=20000, pnt=5000
    [2021-01-14 19:00:42.583][Trace][15279][132p9l79] RTC: Server conns=1, cpu=1.00%, rss=7MB
    [2021-01-14 19:00:47.583][Trace][15279][132p9l79] RTC: Server conns=1, cpu=1.00%, rss=7MB
    [2021-01-14 19:00:50.568][Trace][15279][75801xp4] <- CPB time=30003880, okbps=0,1,0, ikbps=2576,2475,0, mr=0/350, p1stpt=20000, pnt=5000
    [2021-01-14 19:00:52.584][Trace][15279][132p9l79] RTC: Server conns=1, cpu=1.33%, rss=7MB
    [2021-01-14 19:00:57.584][Trace][15279][132p9l79] RTC: Server conns=1, cpu=1.67%, rss=7MB
    [2021-01-14 19:01:00.018][Trace][15279][867da229] RTMP client ip=106.7.251.202:33873, fd=15
    [2021-01-14 19:01:00.042][Trace][15279][867da229] simple handshake success.
    [2021-01-14 19:01:00.078][Trace][15279][867da229] connect app, tcUrl=rtmp://81.68.105.42:1935/live, pageUrl=, swfUrl=rtmp://81.68.105.42:1935/live, schema=rtmp, vhost=81.68.105.42, port=1935, app=live, args=null
    [2021-01-14 19:01:00.078][Trace][15279][867da229] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=4096, out.chunk=128
    [2021-01-14 19:01:00.162][Trace][15279][867da229] client identified, type=fmle-publish, vhost=81.68.105.42, app=live, stream=livestream, param=, duration=0ms
    [2021-01-14 19:01:00.162][Trace][15279][867da229] connected stream, tcUrl=rtmp://81.68.105.42:1935/live, pageUrl=, swfUrl=rtmp://81.68.105.42:1935/live, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, stream=livestream, param=, args=null
    [2021-01-14 19:01:00.162][Trace][15279][867da229] source url=/live/livestream, ip=106.7.251.202, cache=0, is_edge=0, source_id=75801xp4/75801xp4
    [2021-01-14 19:01:00.234][Trace][15279][867da229] TCP: before dispose resource(RtmpConn)(0x2c6fcc0), conns=2, zombies=0, ign=0, inz=0, ind=0
    [2021-01-14 19:01:00.234][Error][15279][867da229][11] serve error code=1028 : service cycle : rtmp: stream service : rtmp: stream /live/livestream is busy
    thread [15279][867da229]: do_cycle() [src/app/srs_app_rtmp_conn.cpp:233][errno=11]
    thread [15279][867da229]: service_cycle() [src/app/srs_app_rtmp_conn.cpp:430][errno=11]
    thread [15279][867da229]: acquire_publish() [src/app/srs_app_rtmp_conn.cpp:960][errno=11](Resource temporarily unavailable)
    [2021-01-14 19:01:00.234][Trace][15279][a67s7097] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0
    [2021-01-14 19:01:00.234][Trace][15279][867da229] TCP: disposing #0 resource(RtmpConn)(0x2c6fcc0), conns=2, disposing=1, zombies=0
    [2021-01-14 19:01:00.568][Trace][15279][75801xp4] <- CPB time=40004346, okbps=0,1,0, ikbps=2596,2475,0, mr=0/350, p1stpt=20000, pnt=5000
    [2021-01-14 19:01:02.584][Trace][15279][7k512026] RTC: session destroy by timeout, username=b64g8et9:bnP3, summary: alive=33679ms, nsub=1
    [2021-01-14 19:01:02.584][Trace][15279][7k512026] RTC: before dispose resource(RtcConn)(0x2cfb5b0), conns=1, zombies=0, ign=0, inz=0, ind=0
    [2021-01-14 19:01:02.584][Trace][15279][7k512026] RTC: session detach from [7k512026](RtcConn), disposing=1
    [2021-01-14 19:01:02.584][Trace][15279][043wl013] RTC: clear zombies=1 resources, conns=1, removing=0, unsubs=0
    [2021-01-14 19:01:02.584][Trace][15279][7k512026] RTC: disposing #0 resource(RtcConn)(0x2cfb5b0), conns=1, disposing=1, zombies=0
    [2021-01-14 19:01:02.584][Warn][15279][7k512026][4][DTLS_HANG] DTLS: Hang, done=0, version=-1, arq=0
    [2021-01-14 19:01:10.568][Trace][15279][75801xp4] <- CPB time=50004432, okbps=0,1,0, ikbps=2611,2475,0, mr=0/350, p1stpt=20000, pnt=5000
    [2021-01-14 19:01:11.001][Trace][15279][29626633] RTMP client ip=106.7.251.202:33877, fd=15
    [2021-01-14 19:01:11.056][Trace][15279][29626633] simple handshake success.
    [2021-01-14 19:01:11.063][Trace][15279][29626633] connect app, tcUrl=rtmp://81.68.105.42:1935/live, pageUrl=, swfUrl=rtmp://81.68.105.42:1935/live, schema=rtmp, vhost=81.68.105.42, port=1935, app=live, args=null
    [2021-01-14 19:01:11.063][Trace][15279][29626633] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=4096, out.chunk=128
    [2021-01-14 19:01:11.098][Trace][15279][29626633] client identified, type=fmle-publish, vhost=81.68.105.42, app=live, stream=livestream, param=, duration=0ms
    [2021-01-14 19:01:11.099][Trace][15279][29626633] connected stream, tcUrl=rtmp://81.68.105.42:1935/live, pageUrl=, swfUrl=rtmp://81.68.105.42:1935/live, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, stream=livestream, param=, args=null
    [2021-01-14 19:01:11.099][Trace][15279][29626633] source url=/live/livestream, ip=106.7.251.202, cache=0, is_edge=0, source_id=75801xp4/75801xp4
    [2021-01-14 19:01:11.154][Trace][15279][29626633] TCP: before dispose resource(RtmpConn)(0x2d09640), conns=2, zombies=0, ign=0, inz=0, ind=0
    [2021-01-14 19:01:11.154][Error][15279][29626633][11] serve error code=1028 : service cycle : rtmp: stream service : rtmp: stream /live/livestream is busy
    thread [15279][29626633]: do_cycle() [src/app/srs_app_rtmp_conn.cpp:233][errno=11]
    thread [15279][29626633]: service_cycle() [src/app/srs_app_rtmp_conn.cpp:430][errno=11]
    thread [15279][29626633]: acquire_publish() [src/app/srs_app_rtmp_conn.cpp:960][errno=11](Resource temporarily unavailable)
    [2021-01-14 19:01:11.154][Trace][15279][a67s7097] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0
    [2021-01-14 19:01:11.154][Trace][15279][29626633] TCP: disposing #0 resource(RtmpConn)(0x2d09640), conns=2, disposing=1, zombies=0
    [2021-01-14 19:01:20.568][Trace][15279][75801xp4] <- CPB time=60004542, okbps=0,0,0, ikbps=2619,2667,0, mr=0/350, p1stpt=20000, pnt=5000
    [2021-01-14 19:01:21.907][Trace][15279][0i6594m5] RTMP client ip=106.7.251.202:33910, fd=15
    [2021-01-14 19:01:21.937][Trace][15279][0i6594m5] simple handshake success.
    [2021-01-14 19:01:21.960][Trace][15279][0i6594m5] connect app, tcUrl=rtmp://81.68.105.42:1935/live, pageUrl=, swfUrl=rtmp://81.68.105.42:1935/live, schema=rtmp, vhost=81.68.105.42, port=1935, app=live, args=null
    [2021-01-14 19:01:21.960][Trace][15279][0i6594m5] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=4096, out.chunk=128
    [2021-01-14 19:01:21.999][Trace][15279][0i6594m5] client identified, type=fmle-publish, vhost=81.68.105.42, app=live, stream=livestream, param=, duration=0ms
    [2021-01-14 19:01:21.999][Trace][15279][0i6594m5] connected stream, tcUrl=rtmp://81.68.105.42:1935/live, pageUrl=, swfUrl=rtmp://81.68.105.42:1935/live, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, stream=livestream, param=, args=null
    [2021-01-14 19:01:21.999][Trace][15279][0i6594m5] source url=/live/livestream, ip=106.7.251.202, cache=0, is_edge=0, source_id=75801xp4/75801xp4
    [2021-01-14 19:01:22.057][Trace][15279][0i6594m5] TCP: before dispose resource(RtmpConn)(0x2c6fcc0), conns=2, zombies=0, ign=0, inz=0, ind=0
    [2021-01-14 19:01:22.057][Error][15279][0i6594m5][11] serve error code=1028 : service cycle : rtmp: stream service : rtmp: stream /live/livestream is busy
    thread [15279][0i6594m5]: do_cycle() [src/app/srs_app_rtmp_conn.cpp:233][errno=11]
    thread [15279][0i6594m5]: service_cycle() [src/app/srs_app_rtmp_conn.cpp:430][errno=11]
    thread [15279][0i6594m5]: acquire_publish() [src/app/srs_app_rtmp_conn.cpp:960][errno=11](Resource temporarily unavailable)
    [2021-01-14 19:01:22.057][Trace][15279][a67s7097] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0
    [2021-01-14 19:01:22.057][Trace][15279][0i6594m5] TCP: disposing #0 resource(RtmpConn)(0x2c6fcc0), conns=2, disposing=1, zombies=0
    [2021-01-14 19:01:30.568][Trace][15279][75801xp4] <- CPB time=70018305, okbps=0,0,0, ikbps=2625,2667,0, mr=0/350, p1stpt=20000, pnt=5000
1. SRS configuration is as follows:
Please make sure to maintain the markdown structure.

listen 1935; max_connections 1000; srs_log_file ./objs/srs.log;

http_server { enabled on; listen 8080; dir ./objs/nginx/html; https { enabled on; listen 8088; key ./conf/zhibo_server.key; cert ./conf/zhibo_server.crt; } }

http_api { enabled on; listen 1985; https { enabled on; listen 1990; key ./conf/zhibo_server.key; cert ./conf/zhibo_server.crt; } } stats { network 0; } rtc_server { enabled on;

Listen at udp://8000

listen          8000;
#
# The $CANDIDATE means fetch from env, if not configed, use * as default.
#
# The * means retrieving server IP automatically, from all network interfaces,
# @see https://github.com/ossrs/srs/issues/307#issuecomment-599028124
candidate       $CANDIDATE;

}

vhost defaultVhost { rtc { enabled on; bframe discard; } }



**Replay**
Please make sure to maintain the markdown structure.

**How to replay bug?**
Please make sure to maintain the markdown structure.

1. `xxxxxx`
1. `xxxxxx`
1. `xxxxxx`

**Expected behavior (Expect)**
Please make sure to maintain the markdown structure.

> Please describe your expectation

Make sure to maintain the markdown structure.

`TRANS_BY_GPT3`
vinsonws commented 3 years ago

rtmp: stream /live/livestream is busy

Is /live/livestream being occupied by another stream? Try using a different stream.

TRANS_BY_GPT3

ZuofeiGithub commented 3 years ago

Big boss, is it resolved?

TRANS_BY_GPT3

tingfeng-key commented 3 years ago

Boss, is it resolved? The problem is resolved, but I forgot the specifics of how it was resolved. You can refer to the two configurations below for reference.


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

http_server { enabled on; listen 8080; }

http_api { enabled on; listen 1985; }

rtc_server { enabled on; listen 8000; candidate $CANDIDATE; }

vhost defaultVhost { rtc { enabled on; bframe discard; }

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

tcp_nodelay     on
min_latency     on;

play {
    gop_cache       off;
    queue_length    10;
    mw_latency      100;
}

publish {
    mr off;
}

}

listen 1935; max_connections 1000; srs_log_file ./objs/srs.log;

http_server { enabled on; listen 8080; dir ./objs/nginx/html; https { enabled on; listen 8088; key ./conf/zhibo_server.key; cert ./conf/zhibo_server.crt; } }

http_api { enabled on; listen 1985; https { enabled on; listen 1990; key ./conf/zhibo_server.key; cert ./conf/zhibo_server.crt; } } stats { network 0; } rtc_server { enabled on;

Listen at udp://8000

listen          8000;
#
# The $CANDIDATE means fetch from env, if not configed, use * as default.
#
# The * means retrieving server IP automatically, from all network interfaces,
# @see https://github.com/ossrs/srs/issues/307#issuecomment-599028124
candidate       81.68.105.42;#$CANDIDATE;
ecdsa           on;
encrypt         on;
merge_nalus off;

}

vhost defaultVhost { rtc { enabled on; bframe discard; stun_timeout 30; stun_strict_check on; dtls_role passive; dtls_version auto; drop_for_pt 0; } http_remux { enabled on; mount [vhost]/[app]/[stream].flv; hstrs on; }

tcp_nodelay     on
min_latency     off;

play {
    gop_cache       off;
    queue_length    10;
    mw_latency      0;
    mw_msgs         1;
}

publish {
    mr off;
}

}



`TRANS_BY_GPT3`
ZuofeiGithub commented 3 years ago

Solved, thank you very much. ------------------ Original Email ------------------ Sender: "ossrs/srs" @.; Sent: March 31, 2021 (Wednesday) 11:39 PM @.>; @.**@.>; Subject: Re: [ossrs/srs] Unable to play webrtc (#2148)

Boss, is it resolved? The problem has been resolved, but I forgot the specific solution. You can refer to the two configurations below. ` listen 1935; max_connections 1000; daemon off; srs_log_tank console;

http_server { enabled on; listen 8080; }

http_api { enabled on; listen 1985; }

rtc_server { enabled on; listen 8000; candidate $CANDIDATE; }

vhost defaultVhost { rtc { enabled on; bframe discard; } http_remux { enabled on; mount [vhost]/[app]/[stream].flv; } tcp_nodelay on min_latency on; play { gop_cache off; queue_length 10; mw_latency 100; } publish { mr off; }
} `

` listen 1935; max_connections 1000; srs_log_file ./objs/srs.log;

http_server { enabled on; listen 8080; dir ./objs/nginx/html; https { enabled on; listen 8088; key ./conf/zhibo_server.key; cert ./conf/zhibo_server.crt; } }

http_api { enabled on; listen 1985; https { enabled on; listen 1990; key ./conf/zhibo_server.key; cert ./conf/zhibo_server.crt; } } stats { network 0; } rtc_server { enabled on;

Listen at udp://8000

listen 8000; #

The $CANDIDATE means fetch from env, if not configed, use * as default.

#

The * means retrieving server IP automatically, from all network interfaces,

@see #307 (comment)

candidate 81.68.105.42;#$CANDIDATE; ecdsa on; encrypt on; merge_nalus off; }

vhost defaultVhost { rtc { enabled on; bframe discard; stun_timeout 30; stun_strict_check on; dtls_role passive; dtls_version auto; drop_for_pt 0; } http_remux { enabled on; mount [vhost]/[app]/[stream].flv; hstrs on; } tcp_nodelay on min_latency off; play { gop_cache off; queue_length 10; mw_latency 0; mw_msgs 1; } publish { mr off; }
} `

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

TRANS_BY_GPT3

x-batman commented 3 years ago

rtc_server { enabled on; listen 8000; candidate $CANDIDATE; # Under NAT network, replace this $CANDIDATE with your external IP }

TRANS_BY_GPT3

winlinvip commented 3 years ago

@x-batman 👍 +1

duantuidp commented 1 year ago

How to solve the crash well, changing the configuration doesn't work.

TRANS_BY_GPT3