Skip to content

Allow B-frame decode ordering in video-frame sequence-number - #388

Open
baylesj wants to merge 1 commit into
w3c:mainfrom
baylesj:baylesj/issue-382-bframe-sequence-number
Open

baylesj wants to merge 1 commit into
w3c:mainfrom
baylesj:baylesj/issue-382-bframe-sequence-number

Conversation

@baylesj

@baylesj baylesj commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Addresses #382.

In application.bs (#streaming-video), video-frame sequence-number currently states that larger sequence numbers mean later start times. When remoting container-demuxed streams with B-frames without re-encoding, frames arrive in decode order (I, P, B) while start-time gives non-monotonic presentation timestamps.

This PR defines sequence-number as the decode and delivery order within the encoding while start-time gives presentation time.

In application.bs, video-frame sequence-number states that larger
sequence numbers mean later start times, which rejects B-frames sent in
decode order where presentation timestamps are non-monotonic. Define
sequence-number as decode order within the encoding while start-time
carries presentation time.

Fixes w3c#382
@baylesj
baylesj requested a review from markafoltz November 24, 2026 00:37
@baylesj
baylesj marked this pull request as ready for review November 24, 2026 00:37

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant