webrtc-stats
webrtc-stats copied to clipboard
how to describe the relationship of codec and fec mechanisms
when using chrome to make a call on
https://webrtc.github.io/samples/src/content/peerconnection/constraints/
the inbound-rtp
codecId stat is pointing to RTCCodec_1_Inbound_96 which resolves to VP8.
However, Chrome actually wraps this in RED (historically, see https://bugs.chromium.org/p/webrtc/issues/detail?id=1467)
But this is impossible to detect using stats.
What is the proper way to deal with this? Should the codecId point to video/RED which then has an underlying codecId?
What's in the SDP?
abbreviated:
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
a=rtpmap:96 VP8/90000
a=rtpmap:124 red/90000
a=rtpmap:119 rtx/90000
a=fmtp:119 apt=124
a=rtpmap:123 ulpfec/90000
payload type on the wire is 124
What is happening in stats? curious about what is being reported on the payloadType and mimeType?
The endpoint is receiving PT 124 but the stats are reporting that PT is 96?
I don't see any association between 96 and 124 in the SDP. Is that just "declared by being in the packet"?
@alvestrand this isn't done "properly" in chrome's SDP at all (see question on the decade old bug)