Skip to content

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

Backlog

Description

@baylesj

In application.bs (#streaming-video), the definition of sequence-number on video-frame says:

Identifies the frame and its order in the encoding. Within an encoding, larger sequence numbers mean later start times.

That second sentence breaks streams with B-frames when remoting demuxed video without re-encoding. Hardware decoders expect access units in decode order (I at start-time 0, P at 66 ms, then B at 33 ms) and reorder pictures internally using start-time as the presentation timestamp. In that case sequence-number increases in decode order (0, 1, 2), while start-time is non-monotonic.

To fix this, define sequence-number as the decode and delivery order within the encoding. Keep start-time as each frame's presentation time on the media timeline.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions