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

obs推rtmp流到srs,不能通过srsplayer流畅播放' translates to: 'obs pushes rtmp stream to srs, cannot play smoothly through srsplayer. #2439

Closed
jiangmaoliang opened this issue Jun 24, 2021 · 4 comments
Assignees
Labels
TransByAI Translated by AI/GPT. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.
Milestone

Comments

@jiangmaoliang
Copy link

jiangmaoliang commented Jun 24, 2021

Description'

Please ensure that you maintain the markdown structure.

Please describe the issue you encountered here:
I am pushing an RTMP stream from OBS to SRS, and then playing a WebRTC stream through the playback page provided by SRS. However, the playback is not smooth and resembles a slideshow.

  1. SRS version: v4.0.117
  2. SRS log is as follows:
    '
    Please ensure that you maintain the markdown structure.
[2021-06-24 08:48:07.342][Trace][1][4x5f8w21] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0
[2021-06-24 08:48:07.342][Trace][1][14mtt605] TCP: disposing #0 resource(HttpConn)(0x2d76230), conns=2, disposing=1, zombies=0
[2021-06-24 08:48:07.409][Trace][1][14mtt605] RTC: session address init 192.168.100.75:49744
[2021-06-24 08:48:07.410][Trace][1][14mtt605] RTC: session STUN done, waiting DTLS handshake.
[2021-06-24 08:48:07.410][Trace][1][z4690ko3] <- RTC RECV #10, udp 1, pps 0/0, schedule 1
[2021-06-24 08:48:07.413][Trace][1][14mtt605] DTLS: State Passive RECV, done=0, arq=0/0, r0=1, r1=0, len=167, cnt=22, size=154, hs=1
[2021-06-24 08:48:07.414][Trace][1][14mtt605] DTLS: State Passive SEND, done=0, arq=0/0, r0=-1, r1=2, len=679, cnt=22, size=82, hs=2
[2021-06-24 08:48:07.417][Trace][1][14mtt605] DTLS: State Passive RECV, done=0, arq=0/0, r0=1, r1=0, len=578, cnt=22, size=299, hs=11
[2021-06-24 08:48:07.418][Trace][1][14mtt605] DTLS: State Passive SEND, done=1, arq=0/0, r0=1, r1=0, len=554, cnt=22, size=466, hs=4
[2021-06-24 08:48:07.419][Trace][1][14mtt605] RTC: DTLS handshake done.
[2021-06-24 08:48:07.419][Trace][1][14mtt605] RTC: session pub=0, sub=1, to=30000ms connection established
[2021-06-24 08:48:07.419][Trace][1][14mtt605] RTC: Subscriber url=/live/livestream established
[2021-06-24 08:48:07.419][Trace][1][14mtt605] create consumer, no gop cache
[2021-06-24 08:48:07.419][Trace][1][14mtt605] RTC: start play url=/live/livestream, source_id=x3gc67s4/x3gc67s4, realtime=1, mw_msgs=0
[2021-06-24 08:48:10.090][Trace][1][852y54xa] Hybrid cpu=20.98%,25MB, cid=9,5, timer=59,0,9, clock=0,20,23,1,1,1,1,0,0, free=1, objs=(pkt:1620,raw:42,fua:1577,msg:1851,oth:1,buf:36)
[2021-06-24 08:48:10.090][Trace][1][852y54xa] RTC: Server conns=1
[2021-06-24 08:48:13.905][Trace][1][x3gc67s4] -> HLS time=40079951ms, sno=3, ts=livestream-2.ts, dur=0.00, dva=2717p
[2021-06-24 08:48:14.022][Trace][1][x3gc67s4] <- CPB time=34999707, okbps=0,0,0, ikbps=13875,14084,0, mr=0/350, p1stpt=20000, pnt=5000
[2021-06-24 08:48:15.092][Trace][1][852y54xa] Hybrid cpu=15.98%,26MB, cid=9,5, timer=59,0,9, clock=0,20,23,1,1,1,1,0,0, free=1, objs=(pkt:1620,raw:42,fua:1577,msg:1851,oth:1,buf:36)
[2021-06-24 08:48:15.092][Trace][1][852y54xa] RTC: Server conns=1
[2021-06-24 08:48:17.482][Trace][1][z4690ko3] <- RTC RECV #10, udp 103, pps 2/10, schedule 103
[2021-06-24 08:48:20.092][Trace][1][852y54xa] Hybrid cpu=43.00%,27MB, cid=1,10, timer=59,0,45, clock=0,23,19,1,1,1,1,0,0, objs=(pkt:2438,raw:64,fua:2373,msg:2642,oth:1,buf:31)
[2021-06-24 08:48:20.092][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1217,rtp:1216,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:48:22.194][Trace][1][852y54xa] CircuitBreaker: cpu=93.72%,27MB, break=1,0,0, cond=93.72%, snk=0,0,0
[2021-06-24 08:48:23.190][Trace][1][852y54xa] CircuitBreaker: cpu=90.36%,28MB, break=1,0,0, cond=90.36%, snk=0,0,0
[2021-06-24 08:48:23.777][Trace][1][14mtt605] RTC: NACK ARQ seq=63079, ssrc=10105, ts=3079440, count=1/1, 1314 bytes
[2021-06-24 08:48:23.907][Trace][1][x3gc67s4] -> HLS time=50099886ms, sno=3, ts=livestream-2.ts, dur=0.00, dva=9934p
[2021-06-24 08:48:24.032][Trace][1][x3gc67s4] <- CPB time=45006169, okbps=0,0,0, ikbps=14080,14084,0, mr=0/350, p1stpt=20000, pnt=5000
[2021-06-24 08:48:24.189][Trace][1][852y54xa] CircuitBreaker: cpu=55.06%,28MB, break=1,0,0, cond=55.06%, snk=0,0,0
[2021-06-24 08:48:25.103][Trace][1][852y54xa] Hybrid cpu=55.06%,28MB, cid=1,10, timer=59,0,45, clock=0,23,19,1,1,1,1,0,0, objs=(pkt:2438,raw:64,fua:2373,msg:2642,oth:1,buf:31)
[2021-06-24 08:48:25.103][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1217,rtp:1216,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:48:27.532][Trace][1][z4690ko3] <- RTC RECV #10, udp 99, pps 3/9, schedule 99
[2021-06-24 08:48:30.103][Trace][1][852y54xa] Hybrid cpu=13.97%,28MB, cid=1,9, timer=46,0,35, clock=1,12,14,1,1,1,2,1,1, objs=(pkt:3359,raw:89,fua:3270,msg:3642,oth:1,buf:44)
[2021-06-24 08:48:30.103][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(9,rtp:0,stun:1,rtcp:9), spkts=(1703,rtp:1703,stun:1,rtcp:0), rtcp=(pli:2,twcc:0,rr:0), rnk=(1,1,h:21,m:37), fid=(id:0,fid:0,ffid:9,addr:1,faddr:9)
[2021-06-24 08:48:34.034][Trace][1][x3gc67s4] <- CPB time=55027331, okbps=0,0,0, ikbps=14409,14084,0, mr=0/350, p1stpt=20000, pnt=5000
[2021-06-24 08:48:34.188][Trace][1][x3gc67s4] -> HLS time=60353529ms, sno=4, ts=livestream-3.ts, dur=0.00, dva=5717p
[2021-06-24 08:48:35.104][Trace][1][852y54xa] Hybrid cpu=20.04%,26MB, cid=1,9, timer=46,0,35, clock=1,12,14,1,1,1,2,1,1, objs=(pkt:3359,raw:89,fua:3270,msg:3642,oth:1,buf:44)
[2021-06-24 08:48:35.104][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(9,rtp:0,stun:1,rtcp:9), spkts=(1703,rtp:1703,stun:1,rtcp:0), rtcp=(pli:2,twcc:0,rr:0), rnk=(1,1,h:21,m:37), fid=(id:0,fid:0,ffid:9,addr:1,faddr:9)
[2021-06-24 08:48:37.629][Trace][1][z4690ko3] <- RTC RECV #10, udp 101, pps 4/10, schedule 101
[2021-06-24 08:48:40.104][Trace][1][852y54xa] Hybrid cpu=16.97%,27MB, cid=1,9, timer=46,0,35, clock=1,12,14,1,1,1,2,1,1, objs=(pkt:3359,raw:89,fua:3270,msg:3642,oth:1,buf:44)
[2021-06-24 08:48:40.105][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(9,rtp:0,stun:1,rtcp:9), spkts=(1703,rtp:1703,stun:1,rtcp:0), rtcp=(pli:2,twcc:0,rr:0), rnk=(1,1,h:21,m:37), fid=(id:0,fid:0,ffid:9,addr:1,faddr:9)
[2021-06-24 08:48:44.184][Trace][1][x3gc67s4] -> HLS time=70361703ms, sno=5, ts=livestream-4.ts, dur=0.00, dva=134p
[2021-06-24 08:48:45.111][Trace][1][852y54xa] Hybrid cpu=17.00%,26MB, cid=1,10, timer=59,0,46, clock=0,22,20,1,1,0,1,0,0, objs=(pkt:2748,raw:70,fua:2677,msg:2971,oth:1,buf:35)
[2021-06-24 08:48:45.111][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1374,rtp:1374,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:48:47.681][Trace][1][z4690ko3] <- RTC RECV #10, udp 102, pps 5/10, schedule 102
[2021-06-24 08:48:49.042][Trace][1][x3gc67s4] <- CPB time=70004645, okbps=0,0,0, ikbps=14437,14637,0, mr=0/350, p1stpt=20000, pnt=5000
[2021-06-24 08:48:50.113][Trace][1][852y54xa] Hybrid cpu=20.02%,26MB, cid=1,10, timer=59,0,46, clock=0,22,20,1,1,0,1,0,0, objs=(pkt:2748,raw:70,fua:2677,msg:2971,oth:1,buf:35)
[2021-06-24 08:48:50.113][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1374,rtp:1374,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:48:54.235][Trace][1][x3gc67s4] -> HLS time=80422577ms, sno=5, ts=livestream-4.ts, dur=0.00, dva=7200p
[2021-06-24 08:48:55.114][Trace][1][852y54xa] Hybrid cpu=17.98%,27MB, cid=1,10, timer=58,0,45, clock=0,19,22,1,1,1,1,0,0, objs=(pkt:2719,raw:69,fua:2649,msg:2942,oth:1,buf:34)
[2021-06-24 08:48:55.114][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(9,rtp:0,stun:1,rtcp:9), spkts=(1360,rtp:1359,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:9,addr:1,faddr:9)
[2021-06-24 08:48:57.719][Trace][1][z4690ko3] <- RTC RECV #10, udp 101, pps 5/10, schedule 101
[2021-06-24 08:48:59.045][Trace][1][x3gc67s4] <- CPB time=80025477, okbps=0,0,0, ikbps=14267,14637,0, mr=0/350, p1stpt=20000, pnt=5000
[2021-06-24 08:49:00.114][Trace][1][852y54xa] Hybrid cpu=22.00%,28MB, cid=1,10, timer=58,0,45, clock=0,19,22,1,1,1,1,0,0, objs=(pkt:2719,raw:69,fua:2649,msg:2942,oth:1,buf:34)
[2021-06-24 08:49:00.114][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(9,rtp:0,stun:1,rtcp:9), spkts=(1360,rtp:1359,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:9,addr:1,faddr:9)
[2021-06-24 08:49:04.243][Trace][1][x3gc67s4] -> HLS time=90429696ms, sno=6, ts=livestream-5.ts, dur=0.00, dva=1734p
[2021-06-24 08:49:05.115][Trace][1][852y54xa] Hybrid cpu=15.00%,26MB, cid=1,10, timer=60,0,46, clock=0,25,20,1,1,0,1,0,0, objs=(pkt:2781,raw:71,fua:2709,msg:3008,oth:1,buf:35)
[2021-06-24 08:49:05.115][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1391,rtp:1390,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:49:07.825][Trace][1][z4690ko3] <- RTC RECV #10, udp 103, pps 6/10, schedule 103
[2021-06-24 08:49:09.052][Trace][1][x3gc67s4] <- CPB time=90029355, okbps=0,0,0, ikbps=14239,14152,0, mr=0/350, p1stpt=20000, pnt=5000
[2021-06-24 08:49:10.115][Trace][1][852y54xa] Hybrid cpu=17.98%,27MB, cid=1,10, timer=60,0,46, clock=0,25,20,1,1,0,1,0,0, objs=(pkt:2781,raw:71,fua:2709,msg:3008,oth:1,buf:35)
[2021-06-24 08:49:10.115][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1391,rtp:1390,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:49:14.284][Trace][1][x3gc67s4] -> HLS time=100471553ms, sno=6, ts=livestream-5.ts, dur=0.00, dva=8717p
[2021-06-24 08:49:15.116][Trace][1][852y54xa] Hybrid cpu=14.00%,26MB, cid=1,10, timer=58,0,44, clock=0,18,21,1,2,1,1,0,0, objs=(pkt:2665,raw:69,fua:2595,msg:2884,oth:1,buf:34)
[2021-06-24 08:49:15.116][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1333,rtp:1332,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:49:17.844][Trace][1][z4690ko3] <- RTC RECV #10, udp 102, pps 6/10, schedule 102
[2021-06-24 08:49:19.055][Trace][1][x3gc67s4] <- CPB time=100039912, okbps=0,0,0, ikbps=14219,14152,0, mr=0/350, p1stpt=20000, pnt=5000
[2021-06-24 08:49:20.116][Trace][1][852y54xa] Hybrid cpu=12.00%,26MB, cid=1,10, timer=58,0,44, clock=0,18,21,1,2,1,1,0,0, objs=(pkt:2665,raw:69,fua:2595,msg:2884,oth:1,buf:34)
[2021-06-24 08:49:20.116][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1333,rtp:1332,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:49:24.291][Trace][1][x3gc67s4] -> HLS time=110480476ms, sno=7, ts=livestream-6.ts, dur=0.00, dva=3250p
[2021-06-24 08:49:25.116][Trace][1][852y54xa] Hybrid cpu=13.99%,27MB, cid=1,10, timer=58,0,44, clock=0,18,21,1,2,1,1,0,0, objs=(pkt:2665,raw:69,fua:2595,msg:2884,oth:1,buf:34)
[2021-06-24 08:49:25.117][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1333,rtp:1332,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:49:27.949][Trace][1][z4690ko3] <- RTC RECV #10, udp 104, pps 6/10, schedule 104
[2021-06-24 08:49:30.118][Trace][1][852y54xa] Hybrid cpu=23.00%,27MB, cid=1,10, timer=59,0,46, clock=0,23,21,1,1,1,1,0,0, objs=(pkt:3059,raw:79,fua:2979,msg:3309,oth:1,buf:39)
[2021-06-24 08:49:30.118][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1530,rtp:1529,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:49:34.059][Trace][1][x3gc67s4] <- CPB time=115034939, okbps=0,0,0, ikbps=14581,14152,0, mr=0/350, p1stpt=20000, pnt=5000
[2021-06-24 08:49:34.320][Trace][1][x3gc67s4] -> HLS time=120505442ms, sno=7, ts=livestream-6.ts, dur=0.00, dva=12367p
[2021-06-24 08:49:35.119][Trace][1][852y54xa] Hybrid cpu=21.96%,27MB, cid=1,10, timer=59,0,46, clock=0,23,21,1,1,1,1,0,0, objs=(pkt:3059,raw:79,fua:2979,msg:3309,oth:1,buf:39)
[2021-06-24 08:49:35.119][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1530,rtp:1529,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:49:37.966][Trace][1][z4690ko3] <- RTC RECV #10, udp 104, pps 7/10, schedule 104
[2021-06-24 08:49:40.119][Trace][1][852y54xa] Hybrid cpu=15.00%,26MB, cid=1,10, timer=59,0,46, clock=0,23,21,1,1,1,1,0,0, objs=(pkt:3059,raw:79,fua:2979,msg:3309,oth:1,buf:39)
[2021-06-24 08:49:40.119][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1530,rtp:1529,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:49:44.060][Trace][1][x3gc67s4] <- CPB time=125039828, okbps=0,0,0, ikbps=14781,15799,0, mr=0/350, p1stpt=20000, pnt=5000
[2021-06-24 08:49:44.538][Trace][1][x3gc67s4] -> HLS time=130706121ms, sno=8, ts=livestream-7.ts, dur=0.00, dva=8334p
[2021-06-24 08:49:45.122][Trace][1][852y54xa] Hybrid cpu=18.00%,26MB, cid=1,10, timer=59,0,46, clock=0,28,16,1,1,0,1,0,1, objs=(pkt:3355,raw:86,fua:3268,msg:3629,oth:1,buf:42)
[2021-06-24 08:49:45.122][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1676,rtp:1676,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:49:48.052][Trace][1][z4690ko3] <- RTC RECV #10, udp 102, pps 7/10, schedule 102
[2021-06-24 08:49:50.129][Trace][1][852y54xa] Hybrid cpu=17.86%,27MB, cid=1,10, timer=59,0,46, clock=0,28,16,1,1,0,1,0,1, objs=(pkt:3355,raw:86,fua:3268,msg:3629,oth:1,buf:42)
[2021-06-24 08:49:50.129][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1676,rtp:1676,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:49:54.601][Trace][1][x3gc67s4] -> HLS time=140779241ms, sno=9, ts=livestream-8.ts, dur=0.00, dva=3017p
[2021-06-24 08:49:55.129][Trace][1][852y54xa] Hybrid cpu=18.00%,27MB, cid=1,10, timer=59,0,45, clock=0,19,22,1,1,1,0,0,0, objs=(pkt:2792,raw:71,fua:2720,msg:3019,oth:1,buf:35)
[2021-06-24 08:49:55.129][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1398,rtp:1398,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:49:58.103][Trace][1][z4690ko3] <- RTC RECV #10, udp 102, pps 7/10, schedule 102
[2021-06-24 08:49:59.067][Trace][1][x3gc67s4] <- CPB time=140055081, okbps=0,0,0, ikbps=14628,15799,0, mr=0/350, p1stpt=20000, pnt=5000
[2021-06-24 08:50:00.130][Trace][1][852y54xa] Hybrid cpu=11.99%,28MB, cid=1,10, timer=59,0,45, clock=0,19,22,1,1,1,0,0,0, objs=(pkt:2792,raw:71,fua:2720,msg:3019,oth:1,buf:35)
[2021-06-24 08:50:00.130][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1398,rtp:1398,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:50:04.598][Trace][1][x3gc67s4] -> HLS time=150781303ms, sno=9, ts=livestream-8.ts, dur=0.00, dva=9617p
[2021-06-24 08:50:05.131][Trace][1][852y54xa] Hybrid cpu=19.98%,27MB, cid=1,10, timer=59,0,45, clock=0,19,22,1,1,1,0,0,0, objs=(pkt:2792,raw:71,fua:2720,msg:3019,oth:1,buf:35)
[2021-06-24 08:50:05.131][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1398,rtp:1398,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:50:08.270][Trace][1][z4690ko3] <- RTC RECV #10, udp 104, pps 7/10, schedule 104
[2021-06-24 08:50:09.068][Trace][1][x3gc67s4] <- CPB time=150057072, okbps=0,0,0, ikbps=14635,14471,0, mr=0/350, p1stpt=20000, pnt=5000
[2021-06-24 08:50:10.133][Trace][1][852y54xa] Hybrid cpu=12.99%,28MB, cid=1,10, timer=60,0,47, clock=0,26,20,1,1,0,0,1,0, objs=(pkt:2557,raw:67,fua:2489,msg:2771,oth:1,buf:33)
[2021-06-24 08:50:10.133][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1279,rtp:1278,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
[2021-06-24 08:50:14.607][Trace][1][x3gc67s4] -> HLS time=160793834ms, sno=10, ts=livestream-9.ts, dur=0.00, dva=4584p
[2021-06-24 08:50:15.135][Trace][1][852y54xa] Hybrid cpu=18.00%,29MB, cid=1,10, timer=60,0,47, clock=0,26,20,1,1,0,0,1,0, objs=(pkt:2557,raw:67,fua:2489,msg:2771,oth:1,buf:33)
[2021-06-24 08:50:15.135][Trace][1][852y54xa] RTC: Server conns=1, rpkts=(10,rtp:0,stun:1,rtcp:9), spkts=(1279,rtp:1278,stun:1,rtcp:0), rtcp=(pli:4,twcc:0,rr:0), fid=(id:0,fid:0,ffid:10,addr:1,faddr:10)
  1. SRS configuration is as follows:
    '
    Please ensure that you maintain the markdown structure.
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;
    listen 8000;
    candidate 192.168.100.46;
}

vhost __defaultVhost__ {
    rtc {
        enabled     on;
        bframe      discard;
    }
    http_remux {
        enabled     on;
        mount       [vhost]/[app]/[stream].flv;
    }
}

Replay
Make sure to maintain the markdown structure.

> How to replay bug?
Make sure to maintain the markdown structure.

1. Deploy an SRS service that supports WebRTC.
2. Push the stream to SRS using OBS.
3. Watch the WebRTC stream through the playback URL provided by SRS.

Expected behavior (Expect)

> Describe your expectation (Please describe your expectation)

I expect smooth playback.
1624524518(1)

TRANS_BY_GPT3

@xiaozhihong
Copy link
Collaborator

xiaozhihong commented Jun 25, 2021

Settings" -> "Output" -> Advanced -> Select "Baseline" for the profile. WebRTC does not support B-frames.

TRANS_BY_GPT3

@xiaozhihong
Copy link
Collaborator

image

@chenfuxu920
Copy link

chenfuxu920 commented Aug 10, 2021

"Settings" -> "Output" -> Advanced -> Select "Baseline" in the profile, WebRTC does not support B-frames.

Thank you, it works. Just set B-frames to 0.

image

TRANS_BY_GPT3

@jiangmaoliang
Copy link
Author

jiangmaoliang commented Aug 17, 2021

I have already modified the OBS streaming method, but there is still some lag, although it has indeed reduced a lot. The WebRTC playback will lag once every about 1 minute, but it will continue playing after a while. The playback is smooth when using RTMP. I tested it on an internal network, so there should be no network issues. There are no error reports from the backend. Have you encountered this situation before? I am using this clock website: http://www.daojishiqi.com/bjtime.asp

TRANS_BY_GPT3

@winlinvip winlinvip added the WebRTC WebRTC, RTC2RTMP or RTMP2RTC. label Aug 27, 2021
@winlinvip winlinvip added this to the 4.0 milestone Sep 4, 2021
@winlinvip winlinvip changed the title obs推rtmp流到srs,不能通过srsplayer流畅播放 obs推rtmp流到srs,不能通过srsplayer流畅播放' translates to: 'obs pushes rtmp stream to srs, cannot play smoothly through srsplayer. Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
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

4 participants