Repository navigation
fix/vp9 decode and keyframe request - #22
Merged
Merged
Conversation
dangusev
added this pull request to stack #31
October 13, 2026 14:22
dangusev
force-pushed
the
fix/vp9-decode-and-keyframe-request
branch
from
October 13, 2026 14:54
f19b7e4 to
2b8c9b3
Compare
dangusev
force-pushed
the
fix/vp9-decode-and-keyframe-request
branch
from
October 13, 2026 14:54
f19b7e4 to
2b8c9b3
Compare
Browsers send VP9 SVC in flexible mode, with a reference index in each inter-frame packet. The webrtc-rs Vp9Packet keeps the reference indices of earlier packets and fails when three accumulate. The SampleBuilder uses one Vp9Packet for the stream, so after the third reference index no inter frame completed and next_video_frame gave no more frames. Vp9Depacketizer resets the Vp9Packet before each packet. Add debug logs for inbound video: the codec of a new track, a payload type change, and receive counts every 5 s (packets, sequence gaps, markers, samples, frames, decode errors).
next_video_frame asked for a keyframe only after a decode error or a gap in a completed frame. When packets arrived but no frame completed, it decoded nothing and sent no PLI, so the video stayed frozen. It now sends a PLI when no frame was decoded for 3 s while packets arrive, and again after each further 3 s, as libwebrtc does with kMaxWaitForFrame.
dangusev
force-pushed
the
fix/vp9-decode-and-keyframe-request
branch
from
October 13, 2026 15:02
2b8c9b3 to
0562452
Compare
aliev
approved these changes
Oct 13, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack created with GitHub Stacks CLI • Give Feedback 💬