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

setRemoteDescription error: ","Answer changed id for extmap attribute at level 0 (http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01) from 7 to 4." #200

Open
hktalent opened this issue May 20, 2024 · 3 comments

Comments

@hktalent
Copy link

https://github.com/pion/example-webrtc-applications/tree/f939bc71df2ae20b23049475fc8277deafe794aa/rtmp-to-webrtc

An error occurred in the browser:

setRemoteDescription error: ","Answer changed id for extmap attribute at level 0 (http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01) from 7 to 4."

sdp:

{"type":"answer","sdp":"v=0\r\no=- 2505052729681155324 1716177631 IN IP4 0.0.0.0\r\ns=-\r\nt=0 0\r\na=msid-semantic:WMS*\r\na=fingerprint:sha-256 69:59:B0:66:3E:A4:1E:A9:4E:D4:F5:9A:54:5F:7D:8A:66:D5:98:0B:CD:3B:6F:66:23:CD:C2:2F:EF:A0:4A:C2\r\na=extmap-allow-mixed\r\na=group:BUNDLE 0 1\r\nm=video 9 UDP/TLS/RTP/SAVPF 98 99 102 103 104 105 106 107 108 109\r\nc=IN IP4 0.0.0.0\r\na=setup:active\r\na=mid:0\r\na=ice-ufrag:ZMQvLPJfPDQYgdko\r\na=ice-pwd:uJPwrefxvoJENmDAnBkdztChXFCYFraL\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:98 H264/90000\r\na=fmtp:98 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\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=rtpmap:99 rtx/90000\r\na=fmtp:99 apt=98\r\na=rtpmap:102 H264/90000\r\na=fmtp:102 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f\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=rtpmap:103 rtx/90000\r\na=fmtp:103 apt=102\r\na=rtpmap:104 VP8/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=rtpmap:105 rtx/90000\r\na=fmtp:105 apt=104\r\na=rtpmap:106 VP9/90000\r\na=fmtp:106 profile-id=0\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=rtpmap:107 rtx/90000\r\na=fmtp:107 apt=106\r\na=rtpmap:108 VP9/90000\r\na=fmtp:108 profile-id=2\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=rtpmap:109 rtx/90000\r\na=fmtp:109 apt=108\r\na=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=ssrc:2500753834 cname:pion\r\na=ssrc:2500753834 msid:pion video\r\na=ssrc:2500753834 mslabel:pion\r\na=ssrc:2500753834 label:video\r\na=msid:pion video\r\na=sendrecv\r\na=candidate:2569382870 1 udp 2130706431 192.168.0.107 51624 typ host\r\na=candidate:2569382870 2 udp 2130706431 192.168.0.107 51624 typ host\r\na=candidate:2589410501 1 udp 2130706431 192.168.64.1 49289 typ host\r\na=candidate:2589410501 2 udp 2130706431 192.168.64.1 49289 typ host\r\na=candidate:1267723428 1 udp 1694498815 171.212.126.216 9135 typ srflx raddr 0.0.0.0 rport 58273\r\na=candidate:1267723428 2 udp 1694498815 171.212.126.216 9135 typ srflx raddr 0.0.0.0 rport 58273\r\na=candidate:1267723428 1 udp 1694498815 171.212.126.216 9138 typ srflx raddr 0.0.0.0 rport 59003\r\na=candidate:1267723428 2 udp 1694498815 171.212.126.216 9138 typ srflx raddr 0.0.0.0 rport 59003\r\na=candidate:1267723428 1 udp 1694498815 171.212.126.216 9136 typ srflx raddr 0.0.0.0 rport 59231\r\na=candidate:1267723428 2 udp 1694498815 171.212.126.216 9136 typ srflx raddr 0.0.0.0 rport 59231\r\na=candidate:1267723428 1 udp 1694498815 171.212.126.216 9137 typ srflx raddr 0.0.0.0 rport 53709\r\na=candidate:1267723428 2 udp 1694498815 171.212.126.216 9137 typ srflx raddr 0.0.0.0 rport 53709\r\na=candidate:438490595 1 udp 16777215 65.49.208.113 54650 typ relay raddr 0.0.0.0 rport 49783\r\na=candidate:438490595 2 udp 16777215 65.49.208.113 54650 typ relay raddr 0.0.0.0 rport 49783\r\na=candidate:3255566946 1 udp 2130706431 fdca:b2a4:4e8c:f81f:cde:4875:ec:c767 55731 typ host\r\na=candidate:3255566946 2 udp 2130706431 fdca:b2a4:4e8c:f81f:cde:4875:ec:c767 55731 typ host\r\na=end-of-candidates\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111 9 0 8\r\nc=IN IP4 0.0.0.0\r\na=setup:active\r\na=mid:1\r\na=ice-ufrag:ZMQvLPJfPDQYgdko\r\na=ice-pwd:uJPwrefxvoJENmDAnBkdztChXFCYFraL\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=rtcp-fb:111 transport-cc \r\na=rtpmap:9 G722/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=ssrc:2988138862 cname:pion\r\na=ssrc:2988138862 msid:pion audio\r\na=ssrc:2988138862 mslabel:pion\r\na=ssrc:2988138862 label:audio\r\na=msid:pion audio\r\na=sendonly\r\n"}
@hktalent
Copy link
Author

hktalent commented May 20, 2024

now setRemoteDescription set ok,but:

image
$ ps -ef|grep ffmpeg
  501 32747  1151   0  2:03下午 ttys004    0:00.01 grep ffmpeg
  501 32244 32218   0  2:00下午 ttys012    8:05.78 ffmpeg -i rtsp://admin:MJAmg%[email protected]/live/main -an -vcodec libvpx -cpu-used 5 -deadline 1 -g 10 -error-resilient 1 -auto-alt-ref 1 -f rtp rtp://127.0.0.1:1025?pkt_size=1200 -vn -c:a libopus -f rtp rtp://127.0.0.1:1024?pkt_size=1200

logs

127.0.0.1:8081Connection State has changed checking 
Got an ICE candidate:  candidate:2569382870 1 udp 2130706431 192.168.0.107 50711 typ host
Got an ICE candidate:  candidate:2589410501 1 udp 2130706431 192.168.64.1 60287 typ host
Got an ICE candidate:  candidate:3255566946 1 udp 2130706431 fdca:b2a4:4e8c:f81f:cde:4875:ec:c767 59061 typ host
Got an ICE candidate:  candidate:1267723428 1 udp 1694498815 171.212.126.216 8792 typ srflx raddr 0.0.0.0 rport 49551
Got an ICE candidate:  candidate:1267723428 1 udp 1694498815 171.212.126.216 8789 typ srflx raddr 0.0.0.0 rport 56117
Got an ICE candidate:  candidate:1267723428 1 udp 1694498815 171.212.126.216 8791 typ srflx raddr 0.0.0.0 rport 49199
Got an ICE candidate:  candidate:1267723428 1 udp 1694498815 171.212.126.216 8788 typ srflx raddr 0.0.0.0 rport 50744
Got an ICE candidate:  candidate:438490595 1 udp 16777215 65.49.208.113 57088 typ relay raddr 0.0.0.0 rport 61913
2024/05/20 14:20:46 rtsp://admin:MJAmg%[email protected]/live/main
2024/05/20 14:20:46 rtp://127.0.0.1:1024?pkt_size=1200
2024/05/20 14:20:46 rtp://127.0.0.1:1025?pkt_size=1200
[GIN] 2024/05/20 - 14:20:47 | 200 |  419.785032ms |       127.0.0.1 | POST     "/rtsp2rtc"
Connection State has changed connected 
2024/05/20 14:20:49 rtpToTrack ReadFrom 1025 28
2024/05/20 14:20:49 rtpToTrack ReadFrom 1024 273

@hktalent
Copy link
Author

rtsp test ok
image

@hktalent
Copy link
Author

@at-wat Can you give me some help? Thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant