You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow B-frame decode ordering in video-frame sequence-number #382
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.
Activity