Skip to content

Instantly share code, notes, and snippets.

@tarukosu
Created July 10, 2019 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tarukosu/323bcd75bef19e5babcb8a9f261c4865 to your computer and use it in GitHub Desktop.
Save tarukosu/323bcd75bef19e5babcb8a9f261c4865 to your computer and use it in GitHub Desktop.
Offer SDP
v=0
o=- 5512830869395964291 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=msid-semantic: WMS
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 127 123 125 122 124
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:fgga
a=ice-pwd:umVjEt7mGRKluwyLL4lfmTwb
a=ice-options:trickle
a=fingerprint:sha-256 41:50:81:FC:CA:4C:E2:66:9A:78:97:65:44:A1:2F:9E:A1:D6:F5:0F:46:14:15:38:66:B6:A3:D6:CE:D7:01:4D
a=setup:actpass
a=mid:0
a=extmap:14 urn:ietf:params:rtp-hdrext:toffset
a=extmap:13 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:12 urn:3gpp:video-orientation
a=extmap:2 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:11 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://tools.ietf.org/html/draft-ietf-avtext-framemarking-07
a=extmap:9 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:- SELF_VIDEO
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=rtpmap:123 rtx/90000
a=fmtp:123 apt=127
a=rtpmap:125 red/90000
a=rtpmap:122 rtx/90000
a=fmtp:122 apt=125
a=rtpmap:124 ulpfec/90000
a=ssrc-group:FID 1694506276 1746897501
a=ssrc:1694506276 cname:XLihjX+wV0v+B8pE
a=ssrc:1694506276 msid:- SELF_VIDEO
a=ssrc:1694506276 mslabel:-
a=ssrc:1694506276 label:SELF_VIDEO
a=ssrc:1746897501 cname:XLihjX+wV0v+B8pE
a=ssrc:1746897501 msid:- SELF_VIDEO
a=ssrc:1746897501 mslabel:-
a=ssrc:1746897501 label:SELF_VIDEO
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:fgga
a=ice-pwd:umVjEt7mGRKluwyLL4lfmTwb
a=ice-options:trickle
a=fingerprint:sha-256 41:50:81:FC:CA:4C:E2:66:9A:78:97:65:44:A1:2F:9E:A1:D6:F5:0F:46:14:15:38:66:B6:A3:D6:CE:D7:01:4D
a=setup:actpass
a=mid:1
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:- SELF_AUDIO
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:102 ILBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:4110266587 cname:XLihjX+wV0v+B8pE
a=ssrc:4110266587 msid:- SELF_AUDIO
a=ssrc:4110266587 mslabel:-
a=ssrc:4110266587 label:SELF_AUDIO
@voluntas
Copy link

a=rtpmap:102 H264/90000
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:122 rtx/90000
a=fmtp:122 apt=102
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
a=rtpmap:121 rtx/90000
a=fmtp:121 apt=127

この fmtp にあるのが profile_level_id なんですが、これがでてないんですよね。あと msid が - なのも気になります。

@voluntas
Copy link

a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f

これです。

@voluntas
Copy link

これがないので、うまくいっていないようにみえます。

@tarukosu
Copy link
Author

@voluntas webrtc-uwp-sdk の問題なのでしょうか?

@tarukosu
Copy link
Author

P2P だと H.264 でも SDP の受け答えがうまくできていました。

Sora につないだ時に、送られてくる SDP はこれです。

v=0
o=- 3936024966522928775 0 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio_50ajwp video_8MaLeJ audio_ydzx7j video_sTWKsC
a=msid-semantic: WMS 83131ffa-6b1e-41ed-a00b-14d7e576b08b
m=audio 41030 UDP/TLS/RTP/SAVPF 109
c=IN IP4 52.246.167.126
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:0 1 udp 2114002687 52.246.167.126 41030 typ host generation 0
a=ice-ufrag:yRjl2OqO4KNt
a=ice-pwd:DN7cfMSLGUzLGMLTR2b9DHtZ1eKFgEh9qVg6
a=ice-options:trickle
a=fingerprint:sha-256 22:C0:E3:B6:69:66:27:C8:89:E0:64:C8:5E:70:B4:C3:0C:60:EA:C9:0F:A3:F5:D1:80:57:EE:07:94:E1:35:4D
a=setup:actpass
a=mid:audio_50ajwp
a=recvonly
a=msid:83131ffa-6b1e-41ed-a00b-14d7e576b08b 631bd6fb-eb30-41de-a591-398960535130
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:109 opus/48000/2
a=fmtp:109 maxplaybackrate=48000;minptime=10;sprop-stereo=1;stereo=1;useinbandfec=1
a=ssrc:2709093631 cname:83131ffa-6b1e-41ed-a00b-14d7e576b08b
m=video 41030 UDP/TLS/RTP/SAVPF 120 116 117 96 97
c=IN IP4 52.246.167.126
b=AS:2500
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:0 1 udp 2114002687 52.246.167.126 41030 typ host generation 0
a=ice-ufrag:yRjl2OqO4KNt
a=ice-pwd:DN7cfMSLGUzLGMLTR2b9DHtZ1eKFgEh9qVg6
a=ice-options:trickle
a=fingerprint:sha-256 22:C0:E3:B6:69:66:27:C8:89:E0:64:C8:5E:70:B4:C3:0C:60:EA:C9:0F:A3:F5:D1:80:57:EE:07:94:E1:35:4D
a=setup:actpass
a=mid:video_8MaLeJ
a=recvonly
a=msid:83131ffa-6b1e-41ed-a00b-14d7e576b08b 0da77ef9-5c6c-4e39-bd45-422bcc993393
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:120 H264/90000
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=rtcp-fb:120 goog-remb
a=fmtp:120 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:116 red/90000
a=rtpmap:117 ulpfec/90000
a=rtpmap:96 rtx/90000
a=fmtp:96 apt=120
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=116
a=ssrc:513421156 cname:83131ffa-6b1e-41ed-a00b-14d7e576b08b
m=audio 41030 UDP/TLS/RTP/SAVPF 109
c=IN IP4 52.246.167.126
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:0 1 udp 2114002687 52.246.167.126 41030 typ host generation 0
a=ice-ufrag:yRjl2OqO4KNt
a=ice-pwd:DN7cfMSLGUzLGMLTR2b9DHtZ1eKFgEh9qVg6
a=ice-options:trickle
a=fingerprint:sha-256 22:C0:E3:B6:69:66:27:C8:89:E0:64:C8:5E:70:B4:C3:0C:60:EA:C9:0F:A3:F5:D1:80:57:EE:07:94:E1:35:4D
a=setup:actpass
a=mid:audio_ydzx7j
a=sendonly
a=msid:889de164-e20b-4015-b8bf-cc35468ac192 3ef63b24-c88b-4ba9-98c1-16ddfb114482
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:109 opus/48000/2
a=fmtp:109 maxplaybackrate=48000;minptime=10;sprop-stereo=1;stereo=1;useinbandfec=1
a=ssrc:735607221 cname:83131ffa-6b1e-41ed-a00b-14d7e576b08b
m=video 41030 UDP/TLS/RTP/SAVPF 120 96
c=IN IP4 52.246.167.126
b=AS:2500
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:0 1 udp 2114002687 52.246.167.126 41030 typ host generation 0
a=ice-ufrag:yRjl2OqO4KNt
a=ice-pwd:DN7cfMSLGUzLGMLTR2b9DHtZ1eKFgEh9qVg6
a=ice-options:trickle
a=fingerprint:sha-256 22:C0:E3:B6:69:66:27:C8:89:E0:64:C8:5E:70:B4:C3:0C:60:EA:C9:0F:A3:F5:D1:80:57:EE:07:94:E1:35:4D
a=setup:actpass
a=mid:video_sTWKsC
a=sendonly
a=msid:889de164-e20b-4015-b8bf-cc35468ac192 9fa10ff9-7126-4c6e-ac4e-d26663ad298b
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:120 H264/90000
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=fmtp:120 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:96 rtx/90000
a=fmtp:96 apt=120
a=ssrc:1674358912 cname:83131ffa-6b1e-41ed-a00b-14d7e576b08b

@tarukosu
Copy link
Author

作成された Answer がこれで、H264 が消えてしまってます

v=0
o=- 6361642994914055194 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio_50ajwp video_8MaLeJ audio_ydzx7j video_sTWKsC
a=msid-semantic: WMS
m=audio 9 UDP/TLS/RTP/SAVPF 109
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:7//G
a=ice-pwd:40sU/NexRiUbCvv3ptj6BNKb
a=ice-options:trickle
a=fingerprint:sha-256 A7:A2:D8:9D:5E:EA:0E:0E:9E:3A:CB:BB:59:6E:47:36:2F:E2:C4:A3:B9:51:EF:5C:AE:EB:6B:EE:D4:80:09:87
a=setup:active
a=mid:audio_50ajwp
a=sendonly
a=msid:- SELF_AUDIO
a=rtcp-mux
a=rtpmap:109 opus/48000/2
a=fmtp:109 minptime=10;useinbandfec=1
a=ssrc:2152225951 cname:wUJpT5buhFMflzV+
m=video 9 UDP/TLS/RTP/SAVPF 116 117 97
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:7//G
a=ice-pwd:40sU/NexRiUbCvv3ptj6BNKb
a=ice-options:trickle
a=fingerprint:sha-256 A7:A2:D8:9D:5E:EA:0E:0E:9E:3A:CB:BB:59:6E:47:36:2F:E2:C4:A3:B9:51:EF:5C:AE:EB:6B:EE:D4:80:09:87
a=setup:active
a=mid:video_8MaLeJ
a=sendonly
a=msid:- SELF_VIDEO
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:116 red/90000
a=rtpmap:117 ulpfec/90000
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=116
a=ssrc-group:FID 2022231897 719564103
a=ssrc:2022231897 cname:wUJpT5buhFMflzV+
a=ssrc:719564103 cname:wUJpT5buhFMflzV+
m=audio 9 UDP/TLS/RTP/SAVPF 109
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:7//G
a=ice-pwd:40sU/NexRiUbCvv3ptj6BNKb
a=ice-options:trickle
a=fingerprint:sha-256 A7:A2:D8:9D:5E:EA:0E:0E:9E:3A:CB:BB:59:6E:47:36:2F:E2:C4:A3:B9:51:EF:5C:AE:EB:6B:EE:D4:80:09:87
a=setup:active
a=mid:audio_ydzx7j
a=recvonly
a=rtcp-mux
a=rtpmap:109 opus/48000/2
a=fmtp:109 minptime=10;useinbandfec=1
m=video 9 UDP/TLS/RTP/SAVPF 0
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:7//G
a=ice-pwd:40sU/NexRiUbCvv3ptj6BNKb
a=ice-options:trickle
a=fingerprint:sha-256 A7:A2:D8:9D:5E:EA:0E:0E:9E:3A:CB:BB:59:6E:47:36:2F:E2:C4:A3:B9:51:EF:5C:AE:EB:6B:EE:D4:80:09:87
a=setup:active
a=mid:video_sTWKsC
a=recvonly
a=rtcp-mux
a=rtcp-rsize

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