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

When streaming on Chrome and playing on Firefox, the Console displays TWCC exception. #2370

Closed
winlinvip opened this issue May 21, 2021 · 2 comments
Assignees
Labels
Bug It might be a bug. TransByAI Translated by AI/GPT. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.
Milestone

Comments

@winlinvip
Copy link
Member

winlinvip commented May 21, 2021

Firefox playback failed, TWCC ID abnormal:

Answer has extmap http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 at level 0 that was not present in offer.

Reproduction steps (must occur):

  • Streaming with Chrome, note that there are no issues if streaming with Firefox.
  • Playback with Firefox, fails.

Firefox Offer is as follows:

v=0
o=mozilla...THIS_IS_SDPARTA-84.0 1665199754991553252 0 IN IP4 0.0.0.0
s=-
t=0 0
a=fingerprint:sha-256 AC:5F:D2:3B:7B:E6:CA:6A:1C:BC:CC:8D:86:FE:78:AC:9D:00:1A:E1:11:04:DF:7B:7C:E8:75:0E:36:9B:83:AF
a=group:BUNDLE 0 1
a=ice-options:trickle
a=msid-semantic:WMS *
m=audio 9 UDP/TLS/RTP/SAVPF 109 9 0 8 101
c=IN IP4 0.0.0.0
a=recvonly
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2/recvonly urn:ietf:params:rtp-hdrext:csrc-audio-level
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1
a=fmtp:101 0-15
a=ice-pwd:00ea873b46c5546d22a00817942c9a5a
a=ice-ufrag:a406ed2c
a=mid:0
a=rtcp-mux
a=rtpmap:109 opus/48000/2
a=rtpmap:9 G722/8000/1
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000/1
a=setup:actpass
a=ssrc:2670724214 cname:{6b038746-686f-9c4f-8a10-a063ce53ca71}
m=video 9 UDP/TLS/RTP/SAVPF 120 124 121 125 126 127 97 98
c=IN IP4 0.0.0.0
a=recvonly
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:5 urn:ietf:params:rtp-hdrext:toffset
a=extmap:6/recvonly http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1
a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1
a=fmtp:120 max-fs=12288;max-fr=60
a=fmtp:124 apt=120
a=fmtp:121 max-fs=12288;max-fr=60
a=fmtp:125 apt=121
a=fmtp:127 apt=126
a=fmtp:98 apt=97
a=ice-pwd:00ea873b46c5546d22a00817942c9a5a
a=ice-ufrag:a406ed2c
a=mid:1
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 goog-remb
a=rtcp-fb:120 transport-cc
a=rtcp-fb:121 nack
a=rtcp-fb:121 nack pli
a=rtcp-fb:121 ccm fir
a=rtcp-fb:121 goog-remb
a=rtcp-fb:121 transport-cc
a=rtcp-fb:126 nack
a=rtcp-fb:126 nack pli
a=rtcp-fb:126 ccm fir
a=rtcp-fb:126 goog-remb
a=rtcp-fb:126 transport-cc
a=rtcp-fb:97 nack
a=rtcp-fb:97 nack pli
a=rtcp-fb:97 ccm fir
a=rtcp-fb:97 goog-remb
a=rtcp-fb:97 transport-cc
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:120 VP8/90000
a=rtpmap:124 rtx/90000
a=rtpmap:121 VP9/90000
a=rtpmap:125 rtx/90000
a=rtpmap:126 H264/90000
a=rtpmap:127 rtx/90000
a=rtpmap:97 H264/90000
a=rtpmap:98 rtx/90000
a=setup:actpass
a=ssrc:3775373710 cname:{6b038746-686f-9c4f-8a10-a063ce53ca71}

SRS Answer is as follows:

v=0
o=SRS/4.0.120(Leo) 140726038015488 2 IN IP4 0.0.0.0
s=SRSPlaySession
t=0 0
a=ice-lite
a=group:BUNDLE 0 1
a=msid-semantic: WMS live/livestream
m=audio 9 UDP/TLS/RTP/SAVPF 109
c=IN IP4 0.0.0.0
a=ice-ufrag:954e83u5
a=ice-pwd:23o0989014zm1e22zst14771v25d1c1a
a=fingerprint:sha-256 C8:EF:48:C8:5D:64:E3:3C:A9:E3:7F:9F:E3:CA:13:28:AB:D3:F5:3D:8B:92:F0:42:BC:64:61:7A:50:F1:03:F4
a=setup:passive
a=mid:0
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=sendonly
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:109 opus/48000/2
a=fmtp:109 minptime=10;useinbandfec=1
a=ssrc:78474674 cname:1050664v785oi9ro
a=ssrc:78474674 msid:- 991eaf00-ec75-41dd-8d14-33a28ad5276a
a=ssrc:78474674 mslabel:-
a=ssrc:78474674 label:991eaf00-ec75-41dd-8d14-33a28ad5276a
a=candidate:0 1 udp 2130706431 30.240.83.121 8000 typ host generation 0
m=video 9 UDP/TLS/RTP/SAVPF 126 114
c=IN IP4 0.0.0.0
a=ice-ufrag:954e83u5
a=ice-pwd:23o0989014zm1e22zst14771v25d1c1a
a=fingerprint:sha-256 C8:EF:48:C8:5D:64:E3:3C:A9:E3:7F:9F:E3:CA:13:28:AB:D3:F5:3D:8B:92:F0:42:BC:64:61:7A:50:F1:03:F4
a=setup:passive
a=mid:1
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:7 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=sendonly
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:126 H264/90000
a=rtcp-fb:126 transport-cc
a=rtcp-fb:126 nack
a=rtcp-fb:126 nack pli
a=fmtp:126 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:114 red/90000
a=ssrc:78474675 cname:1050664v785oi9ro
a=ssrc:78474675 msid:- 4a18b92b-953f-42ba-a125-92a0db55fe93
a=ssrc:78474675 mslabel:-
a=ssrc:78474675 label:4a18b92b-953f-42ba-a125-92a0db55fe93
a=candidate:0 1 udp 2130706431 30.240.83.121 8000 typ host generation 0

There are two questions here:

  • The TWCC ID for audio is 3, while the offer is 7.
  • Video has two TWCC IDs, 3 and 7, which are probably incorrect.

TRANS_BY_GPT3

@winlinvip
Copy link
Member Author

winlinvip commented May 21, 2021

Firefox live streaming is normal.

The Firefox offer is as follows:

v=0
o=mozilla...THIS_IS_SDPARTA-84.0 2885198513638972151 0 IN IP4 0.0.0.0
s=-
t=0 0
a=fingerprint:sha-256 36:CC:F2:61:9D:C5:0B:A0:BE:BD:A5:F2:94:3E:A4:C7:FE:8A:2B:2E:46:08:64:05:84:3F:E8:E0:AA:E7:EF:51
a=group:BUNDLE 0 1
a=ice-options:trickle
a=msid-semantic:WMS *
m=audio 9 UDP/TLS/RTP/SAVPF 109 9 0 8 101
c=IN IP4 0.0.0.0
a=sendonly
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2/recvonly urn:ietf:params:rtp-hdrext:csrc-audio-level
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1
a=fmtp:101 0-15
a=ice-pwd:ba6f3a03449d61a8e6f593323c8b744f
a=ice-ufrag:94e715ce
a=mid:0
a=msid:- {bfa0bbd3-6923-9745-9d11-e4b937b84e2e}
a=rtcp-mux
a=rtpmap:109 opus/48000/2
a=rtpmap:9 G722/8000/1
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000/1
a=setup:actpass
a=ssrc:2859623225 cname:{905561b3-bc86-0c4f-8a5e-68ef900b0f0a}
m=video 9 UDP/TLS/RTP/SAVPF 120 124 121 125 126 127 97 98
c=IN IP4 0.0.0.0
a=sendonly
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:5 urn:ietf:params:rtp-hdrext:toffset
a=extmap:6/recvonly http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1
a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1
a=fmtp:120 max-fs=12288;max-fr=60
a=fmtp:124 apt=120
a=fmtp:121 max-fs=12288;max-fr=60
a=fmtp:125 apt=121
a=fmtp:127 apt=126
a=fmtp:98 apt=97
a=ice-pwd:ba6f3a03449d61a8e6f593323c8b744f
a=ice-ufrag:94e715ce
a=mid:1
a=msid:- {c3607790-be53-f54d-9557-ae2ba65344ba}
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 goog-remb
a=rtcp-fb:120 transport-cc
a=rtcp-fb:121 nack
a=rtcp-fb:121 nack pli
a=rtcp-fb:121 ccm fir
a=rtcp-fb:121 goog-remb
a=rtcp-fb:121 transport-cc
a=rtcp-fb:126 nack
a=rtcp-fb:126 nack pli
a=rtcp-fb:126 ccm fir
a=rtcp-fb:126 goog-remb
a=rtcp-fb:126 transport-cc
a=rtcp-fb:97 nack
a=rtcp-fb:97 nack pli
a=rtcp-fb:97 ccm fir
a=rtcp-fb:97 goog-remb
a=rtcp-fb:97 transport-cc
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:120 VP8/90000
a=rtpmap:124 rtx/90000
a=rtpmap:121 VP9/90000
a=rtpmap:125 rtx/90000
a=rtpmap:126 H264/90000
a=rtpmap:127 rtx/90000
a=rtpmap:97 H264/90000
a=rtpmap:98 rtx/90000
a=setup:actpass
a=ssrc:3966929890 cname:{905561b3-bc86-0c4f-8a5e-68ef900b0f0a}

The SRS answer is as follows:

v=0
o=SRS/4.0.120(Leo) 140354640713216 2 IN IP4 0.0.0.0
s=SRSPublishSession
t=0 0
a=ice-lite
a=group:BUNDLE 0 1
a=msid-semantic: WMS live/livestream
m=audio 9 UDP/TLS/RTP/SAVPF 109
c=IN IP4 0.0.0.0
a=ice-ufrag:c07m4nz4
a=ice-pwd:2qitu403ar91338m609e60y9scc02li4
a=fingerprint:sha-256 43:B6:7B:4C:A4:D4:39:1B:4A:3E:1C:F0:11:BE:D9:82:49:4E:14:31:2E:01:0D:66:8C:33:64:E3:25:E0:2C:DB
a=setup:passive
a=mid:0
a=recvonly
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:109 opus/48000/2
a=fmtp:109 ;useinbandfec=1
a=candidate:0 1 udp 2130706431 30.240.83.121 8000 typ host generation 0
m=video 9 UDP/TLS/RTP/SAVPF 126
c=IN IP4 0.0.0.0
a=ice-ufrag:c07m4nz4
a=ice-pwd:2qitu403ar91338m609e60y9scc02li4
a=fingerprint:sha-256 43:B6:7B:4C:A4:D4:39:1B:4A:3E:1C:F0:11:BE:D9:82:49:4E:14:31:2E:01:0D:66:8C:33:64:E3:25:E0:2C:DB
a=setup:passive
a=mid:1
a=extmap:7 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=recvonly
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:126 H264/90000
a=rtcp-fb:126 nack
a=rtcp-fb:126 nack pli
a=rtcp-fb:126 transport-cc
a=fmtp:126 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=candidate:0 1 udp 2130706431 30.240.83.121 8000 typ host generation 0
  • There is no TWCC for audio.
  • The TWCC ID for video is 7, and the SRS response is also normal.

TRANS_BY_GPT3

@winlinvip winlinvip changed the title Firefox播放 Firefox播放时,Console显示TWCC异常 May 21, 2021
@winlinvip winlinvip changed the title Firefox播放时,Console显示TWCC异常 Chrome推流,Firefox播放时,Console显示TWCC异常 May 21, 2021
@winlinvip winlinvip added the Bug It might be a bug. label May 21, 2021
@winlinvip winlinvip added this to the SRS 4.0 release milestone May 21, 2021
@MrxKevin
Copy link

It's working

@winlinvip winlinvip self-assigned this Aug 27, 2021
@winlinvip winlinvip added the WebRTC WebRTC, RTC2RTMP or RTMP2RTC. label Aug 27, 2021
@winlinvip winlinvip changed the title Chrome推流,Firefox播放时,Console显示TWCC异常 When streaming on Chrome and playing on Firefox, the Console displays TWCC exception. 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
Bug It might be a bug. TransByAI Translated by AI/GPT. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.
Projects
None yet
Development

No branches or pull requests

2 participants