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:
Raja Subramanian
2024-01-31 15:33:39 +05:30
committed by GitHub
parent c8b7d486b9
commit ff69c2aa11
4 changed files with 83 additions and 39 deletions
+4
View File
@@ -457,6 +457,10 @@ func (b *Buffer) calc(pkt []byte, arrivalTime time.Time) {
b.logger.Errorw("could not exclude range", err, "sn", rtpPacket.SequenceNumber, "esn", flowState.ExtSequenceNumber)
}
}
// TODO-VP9-DEBUG-REMOVE-START
snAdjustment, err := b.snRangeMap.GetValue(flowState.ExtSequenceNumber)
b.logger.Debugw("dropping padding packet", "sn", rtpPacket.SequenceNumber, "osn", flowState.ExtSequenceNumber, "msn", flowState.ExtSequenceNumber-snAdjustment, "error", err)
// TODO-VP9-DEBUG-REMOVE-END
return
}