Skip to content

Instantly share code, notes, and snippets.

@mondain
Created July 3, 2023 17:50
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 mondain/9f77de963abc983b3efc067227dee214 to your computer and use it in GitHub Desktop.
Save mondain/9f77de963abc983b3efc067227dee214 to your computer and use it in GitHub Desktop.
OBS with libdatachannel to Red5 Pro version 11.0

Offer from OBS with libdatachannel:

v=0
o=rtc 1749923962 0 IN IP4 127.0.0.1
s=-
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 0 1
a=setup:actpass
a=ice-ufrag:teK7
a=ice-pwd:AKbQ+WLk8yZFl3T2Hp+Rr9
a=ice-options:ice2,trickle
a=fingerprint:sha-256 1C:B5:A2:02:BE:EE:9D:CF:1C:F4:81:22:EE:AA:07:73:F6:83:EC:B5:03:C0:35:D0:B9:E9:1C:CF:D5:D4:8F:C5
m=audio 64227 UDP/TLS/RTP/SAVPF 111
c=IN IP4 10.0.0.30
a=mid:0
a=sendonly
a=ssrc:3490526231 cname:rQcWaxPvcgYTistQ
a=ssrc:3490526231 msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-audio
a=rtcp-mux
a=rtpmap:111 OPUS/48000/2
a=fmtp:111 minptime=10;maxaveragebitrate=96000;stereo=1;sprop-stereo=1;useinbandfec=1
a=candidate:1 1 UDP 2122317823 10.0.0.30 64227 typ host
a=candidate:2 1 UDP 2122317567 10.0.0.37 64227 typ host
a=end-of-candidates
m=video 64227 UDP/TLS/RTP/SAVPF 96
c=IN IP4 10.0.0.30
a=mid:1
a=sendonly
a=ssrc:3490526232 cname:rQcWaxPvcgYTistQ
a=ssrc:3490526232 msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-video
a=rtcp-mux
a=rtpmap:96 H264/90000
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtcp-fb:96 goog-remb
a=fmtp:96 profile-level-id=42e01f;packetization-mode=1;level-asymmetry-allowed=1

For Red5 Pro Server 11.0 support the session level attributes have to be moved to media level:

v=0
o=rtc 1749923962 0 IN IP4 127.0.0.1
s=-
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 0 1
a=setup:actpass
a=ice-options:ice2,trickle
m=audio 64227 UDP/TLS/RTP/SAVPF 111
c=IN IP4 10.0.0.30
a=mid:0
a=sendonly
a=ice-ufrag:teK7
a=ice-pwd:AKbQ+WLk8yZFl3T2Hp+Rr9
a=fingerprint:sha-256 1C:B5:A2:02:BE:EE:9D:CF:1C:F4:81:22:EE:AA:07:73:F6:83:EC:B5:03:C0:35:D0:B9:E9:1C:CF:D5:D4:8F:C5
a=ssrc:3490526231 cname:rQcWaxPvcgYTistQ
a=ssrc:3490526231 msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-audio
a=rtcp-mux
a=rtpmap:111 OPUS/48000/2
a=fmtp:111 minptime=10;maxaveragebitrate=96000;stereo=1;sprop-stereo=1;useinbandfec=1
a=candidate:1 1 UDP 2122317823 10.0.0.30 64227 typ host
a=candidate:2 1 UDP 2122317567 10.0.0.37 64227 typ host
a=end-of-candidates
m=video 64227 UDP/TLS/RTP/SAVPF 96
c=IN IP4 10.0.0.30
a=mid:1
a=sendonly
a=ice-ufrag:teK7
a=ice-pwd:AKbQ+WLk8yZFl3T2Hp+Rr9
a=fingerprint:sha-256 1C:B5:A2:02:BE:EE:9D:CF:1C:F4:81:22:EE:AA:07:73:F6:83:EC:B5:03:C0:35:D0:B9:E9:1C:CF:D5:D4:8F:C5
a=ssrc:3490526232 cname:rQcWaxPvcgYTistQ
a=ssrc:3490526232 msid:fAB8s1VfJrRwiz2r fAB8s1VfJrRwiz2r-video
a=rtcp-mux
a=rtpmap:96 H264/90000
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtcp-fb:96 goog-remb
a=fmtp:96 profile-level-id=42e01f;packetization-mode=1;level-asymmetry-allowed=1

Lastly, it may be required to change this line a=ice-options:ice2,trickle to this a=ice-options:trickle for compatibility.

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