MP4, H264: seek to keyframe does not try scanning from earlier point unless it hits End of Stream
Categories
(Core :: Audio/Video: Playback, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: tnibler, Assigned: tnibler, NeedInfo)
References
Details
Attachments
(1 external file)
(Follow up to Bug 2072130)
When searching for a keyframe to seek to, the scan only works forward. If the stream ends before one is found, the search restarts from the beginning where it is very likely to find one. But we're specifically looking for the closest keyframe before the seek point, not the first one we encounter.
If the scan does find a keyframe at time Tk before the end of stream but after the seek point Ts, this frame is displayed for entire interval Ts - Tk.
Again the logic is not correct to find the closest keyframe before the seek point.
Fix: when seeking, find the last keyframe before the target time and resolve the seek from there.
| Assignee | ||
Comment 1•1 month ago
|
||
The seek algorithm now jumps back to the start if either the target time
has been passed or end of stream is hit.
Both are equivalent in that they mean that no suitable keyframe can be
found past this point.
While walking the stream, keep track of the latest keyframe which is
also the closest one to the seek target and thus the best point to seek
to.
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Comment 2•1 month ago
|
||
The severity field is not set for this bug.
:jimm, could you have a look please?
For more information, please visit BugBot documentation.
Updated•17 days ago
|
Comment 4•14 days ago
|
||
| bugherder | ||
Description
•