Repository navigation
fix(hls): frames reordered deeper than the opening frames show keep their presentation times - #37
Merged
Merged
Conversation
…megabytes a player fetches before its first frame
…eter sets declare, frames reordered after the opening ones shared a presentation time
… every presentation time through HLS, full pass and on demand
…s presentation time through a negative composition offset, it was clamped onto its neighbour's
… shares its keyframe's timestamp, as the full pass does
…frame's timestamp, full pass and on demand agree on its decode times
…me or two, which showed no reordering
…offset 0, a stray timestamp wrote a negative offset of seconds
…oss, not by a duration, and moves no other frame's decode time on either path
… presentation time must be the source's
…s the reference muxer's MP4 beside them
…muxer stamped four of its frames alike
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.
HLS/DASH from a video with B-frames lost frames whenever the stream reordered deeper than its opening frames showed: frames shared a presentation time and players dropped them (25 to 40 % of a segment's frames on the files measured).
Fixed
max_num_reorder_frames,sps_max_num_reorder_pics), and is measured past a first GOP of a frame or two.trunversion 1) instead of being clamped onto its neighbour's.Changed
RemuxToMP4still carries it.Integration
For the sources concerned, the init segment's edit list and the segments' composition offsets change together: cached inits and segments of one source must be dropped at once.
Checks
scripts/e2e.shgains a source that reorders only after its opening frames; presentation times are compared with the prober's, full pass and on demand, from Matroska and MP4.Apple timestamps: on a macOS runner, AVFoundation decodes the init and segments and every frame must present where the source has it, for a positive shift with an edit list and for negative offsets.Known limit
A reader that ignores the video edit list presents a B-frame video later than its audio by the composition shift. This is not new; the shift grows (for instance 42 to 84 ms) on the sources fixed here. Follow-up: signed offsets with no shift and no edit list.