-
-
Save johzzy/067dd46a1222bf211f79aef5bcf4cd3a to your computer and use it in GitHub Desktop.
SDP munging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
一份 munging 风格 simulcast 的 sdp | |
offer: | |
``` | |
v=0 | |
o=- 8477070938705963049 2 IN IP4 127.0.0.1 | |
s=- | |
t=0 0 | |
a=group:BUNDLE 0 1 | |
a=extmap-allow-mixed | |
a=msid-semantic: WMS ez0lPBqQZbbAN0ImN4ZrrUCbshr2khvkB6ob | |
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 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:FYWo | |
a=ice-pwd:w16id/Ao74bZrC0Dgff/8uLG | |
a=ice-options:trickle | |
a=fingerprint:sha-256 F9:F3:BB:93:B6:C9:F1:29:8D:15:C1:1D:65:37:E4:D1:42:97:59:40:15:61:58:BB:99:13:72:E5:28:32:5A:80 | |
a=setup:actpass | |
a=mid:0 | |
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level | |
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time | |
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 | |
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid | |
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id | |
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id | |
a=sendrecv | |
a=msid:ez0lPBqQZbbAN0ImN4ZrrUCbshr2khvkB6ob dce55f71-a511-4008-8d73-c4a72efc1958 | |
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: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:4129794049 cname:rsPDymoMnGBuVXTx | |
a=ssrc:4129794049 msid:ez0lPBqQZbbAN0ImN4ZrrUCbshr2khvkB6ob dce55f71-a511-4008-8d73-c4a72efc1958 | |
a=ssrc:4129794049 mslabel:ez0lPBqQZbbAN0ImN4ZrrUCbshr2khvkB6ob | |
a=ssrc:4129794049 label:dce55f71-a511-4008-8d73-c4a72efc1958 | |
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 121 127 120 125 107 108 109 35 36 124 119 123 118 114 115 116 | |
c=IN IP4 0.0.0.0 | |
a=rtcp:9 IN IP4 0.0.0.0 | |
a=ice-ufrag:FYWo | |
a=ice-pwd:w16id/Ao74bZrC0Dgff/8uLG | |
a=ice-options:trickle | |
a=fingerprint:sha-256 F9:F3:BB:93:B6:C9:F1:29:8D:15:C1:1D:65:37:E4:D1:42:97:59:40:15:61:58:BB:99:13:72:E5:28:32:5A:80 | |
a=setup:actpass | |
a=mid:1 | |
a=extmap:14 urn:ietf:params:rtp-hdrext:toffset | |
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time | |
a=extmap:13 urn:3gpp:video-orientation | |
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 | |
a=extmap:12 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay | |
a=extmap:11 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://www.webrtc.org/experiments/rtp-hdrext/color-space | |
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid | |
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id | |
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id | |
a=sendrecv | |
a=msid:ez0lPBqQZbbAN0ImN4ZrrUCbshr2khvkB6ob 99528680-68d8-418b-afc6-205372e9cb6f | |
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: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:121 rtx/90000 | |
a=fmtp:121 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:120 rtx/90000 | |
a=fmtp:120 apt=127 | |
a=rtpmap:125 H264/90000 | |
a=rtcp-fb:125 goog-remb | |
a=rtcp-fb:125 transport-cc | |
a=rtcp-fb:125 ccm fir | |
a=rtcp-fb:125 nack | |
a=rtcp-fb:125 nack pli | |
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f | |
a=rtpmap:107 rtx/90000 | |
a=fmtp:107 apt=125 | |
a=rtpmap:108 H264/90000 | |
a=rtcp-fb:108 goog-remb | |
a=rtcp-fb:108 transport-cc | |
a=rtcp-fb:108 ccm fir | |
a=rtcp-fb:108 nack | |
a=rtcp-fb:108 nack pli | |
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f | |
a=rtpmap:109 rtx/90000 | |
a=fmtp:109 apt=108 | |
a=rtpmap:35 AV1X/90000 | |
a=rtcp-fb:35 goog-remb | |
a=rtcp-fb:35 transport-cc | |
a=rtcp-fb:35 ccm fir | |
a=rtcp-fb:35 nack | |
a=rtcp-fb:35 nack pli | |
a=rtpmap:36 rtx/90000 | |
a=fmtp:36 apt=35 | |
a=rtpmap:124 H264/90000 | |
a=rtcp-fb:124 goog-remb | |
a=rtcp-fb:124 transport-cc | |
a=rtcp-fb:124 ccm fir | |
a=rtcp-fb:124 nack | |
a=rtcp-fb:124 nack pli | |
a=fmtp:124 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d0032 | |
a=rtpmap:119 rtx/90000 | |
a=fmtp:119 apt=124 | |
a=rtpmap:123 H264/90000 | |
a=rtcp-fb:123 goog-remb | |
a=rtcp-fb:123 transport-cc | |
a=rtcp-fb:123 ccm fir | |
a=rtcp-fb:123 nack | |
a=rtcp-fb:123 nack pli | |
a=fmtp:123 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640032 | |
a=rtpmap:118 rtx/90000 | |
a=fmtp:118 apt=123 | |
a=rtpmap:114 red/90000 | |
a=rtpmap:115 rtx/90000 | |
a=fmtp:115 apt=114 | |
a=rtpmap:116 ulpfec/90000 | |
a=ssrc-group:FID 1390104252 2798384649 | |
a=ssrc:1390104252 cname:rsPDymoMnGBuVXTx | |
a=ssrc:1390104252 msid:ez0lPBqQZbbAN0ImN4ZrrUCbshr2khvkB6ob 99528680-68d8-418b-afc6-205372e9cb6f | |
a=ssrc:2798384649 cname:rsPDymoMnGBuVXTx | |
a=ssrc:2798384649 msid:ez0lPBqQZbbAN0ImN4ZrrUCbshr2khvkB6ob 99528680-68d8-418b-afc6-205372e9cb6f | |
a=ssrc-group:FID 1390104253 2798384650 | |
a=ssrc:1390104253 cname:rsPDymoMnGBuVXTx | |
a=ssrc:1390104253 msid:ez0lPBqQZbbAN0ImN4ZrrUCbshr2khvkB6ob 99528680-68d8-418b-afc6-205372e9cb6f | |
a=ssrc:2798384650 cname:rsPDymoMnGBuVXTx | |
a=ssrc:2798384650 msid:ez0lPBqQZbbAN0ImN4ZrrUCbshr2khvkB6ob 99528680-68d8-418b-afc6-205372e9cb6f | |
a=ssrc-group:FID 1390104254 2798384651 | |
a=ssrc:1390104254 cname:rsPDymoMnGBuVXTx | |
a=ssrc:1390104254 msid:ez0lPBqQZbbAN0ImN4ZrrUCbshr2khvkB6ob 99528680-68d8-418b-afc6-205372e9cb6f | |
a=ssrc:2798384651 cname:rsPDymoMnGBuVXTx | |
a=ssrc:2798384651 msid:ez0lPBqQZbbAN0ImN4ZrrUCbshr2khvkB6ob 99528680-68d8-418b-afc6-205372e9cb6f | |
a=ssrc-group:SIM 1390104252 1390104253 1390104254 | |
``` | |
answer: | |
```v=0 | |
o=SRS/5.0.8(Leo) 140207101952000 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 111 | |
c=IN IP4 0.0.0.0 | |
a=ice-ufrag:ae171f49 | |
a=ice-pwd:4215h7ec7162232nsj9669zj108z277c | |
a=fingerprint:sha-256 E0:62:24:8C:BB:A1:5B:A4:47:51:15:DD:CA:3F:95:C7:F5:C1:14:34:79:40:16:0C:B7:AE:C0:11:3E:0C:BD:31 | |
a=setup:passive | |
a=mid:0 | |
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time | |
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 | |
a=recvonly | |
a=rtcp-mux | |
a=rtcp-rsize | |
a=rtpmap:111 opus/48000/2 | |
a=rtcp-fb:111 transport-cc | |
a=fmtp:111 minptime=10;useinbandfec=1 | |
a=candidate:0 1 udp 2130706431 192.168.250.70 18381 typ host generation 0 | |
m=video 9 UDP/TLS/RTP/SAVPF 102 114 | |
c=IN IP4 0.0.0.0 | |
a=ice-ufrag:ae171f49 | |
a=ice-pwd:4215h7ec7162232nsj9669zj108z277c | |
a=fingerprint:sha-256 E0:62:24:8C:BB:A1:5B:A4:47:51:15:DD:CA:3F:95:C7:F5:C1:14:34:79:40:16:0C:B7:AE:C0:11:3E:0C:BD:31 | |
a=setup:passive | |
a=mid:1 | |
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time | |
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 | |
a=recvonly | |
a=rtcp-mux | |
a=rtcp-rsize | |
a=rtpmap:102 H264/90000 | |
a=rtcp-fb:102 goog-remb | |
a=rtcp-fb:102 transport-cc | |
a=rtcp-fb:102 nack | |
a=rtcp-fb:102 nack pli | |
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;x-google-min-bitrate=5000;x-google-max-bitrate=8000;profile-level-id=42001f | |
a=rtpmap:114 red/90000 | |
a=candidate:0 1 udp 2130706431 192.168.250.70 18381 typ host generation 0 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment