Add debug to understand VP9 freezes. (#2434)
* Add debug to understand VP9 freezes. Have reports of VP9 freezing in some rooms. Some data indicates that NACKs are received by SFU, but cannot get RTP packet when that happens. It is possible that the NACKs are all from dropped packets. Adding some debug to understand drops/NACKs better. * enable DD debug * comment out DD debug * markers * add back log about diff length mismatch * add back key frame mismatch logging * log skipped drops also
This commit is contained in:
+30
-2
@@ -1695,8 +1695,36 @@ func (f *Forwarder) getTranslationParamsVideo(extPkt *buffer.ExtPacket, layer in
|
||||
tp.shouldDrop = true
|
||||
if f.started && result.IsRelevant {
|
||||
// call to update highest incoming sequence number and other internal structures
|
||||
if tpRTP, err := f.rtpMunger.UpdateAndGetSnTs(extPkt, result.RTPMarker); err == nil && tpRTP.snOrdering == SequenceNumberOrderingContiguous {
|
||||
f.rtpMunger.PacketDropped(extPkt)
|
||||
if tpRTP, err := f.rtpMunger.UpdateAndGetSnTs(extPkt, result.RTPMarker); err == nil {
|
||||
if tpRTP.snOrdering == SequenceNumberOrderingContiguous {
|
||||
// TODO-VP9-DEBUG-REMOVE-START
|
||||
f.logger.Debugw(
|
||||
"dropping packet",
|
||||
"isn", extPkt.ExtSequenceNumber,
|
||||
"its", extPkt.ExtTimestamp,
|
||||
"osn", tpRTP.extSequenceNumber,
|
||||
"ots", tpRTP.extTimestamp,
|
||||
"payloadLen", len(extPkt.Packet.Payload),
|
||||
"sid", extPkt.Spatial,
|
||||
"tid", extPkt.Temporal,
|
||||
)
|
||||
// TODO-VP9-DEBUG-REMOVE-END
|
||||
f.rtpMunger.PacketDropped(extPkt)
|
||||
} else {
|
||||
// TODO-VP9-DEBUG-REMOVE-START
|
||||
f.logger.Debugw(
|
||||
"dropping packet skipped as not contiguous",
|
||||
"isn", extPkt.ExtSequenceNumber,
|
||||
"its", extPkt.ExtTimestamp,
|
||||
"osn", tpRTP.extSequenceNumber,
|
||||
"ots", tpRTP.extTimestamp,
|
||||
"payloadLen", len(extPkt.Packet.Payload),
|
||||
"sid", extPkt.Spatial,
|
||||
"tid", extPkt.Temporal,
|
||||
"snOrdering", tpRTP.snOrdering,
|
||||
)
|
||||
// TODO-VP9-DEBUG-REMOVE-END
|
||||
}
|
||||
}
|
||||
}
|
||||
return tp, nil
|
||||
|
||||
Reference in New Issue
Block a user