Fix filmstrip 404s by matching sitespeed.io's actual filmstrip cadence#166
Merged
Conversation
The previous filmstrip fix assumed sitespeed.io writes one JPG per VisualProgress change point and built URLs from those timestamps. That assumption is wrong: VisualProgress is sampled at video-frame cadence (every ~33 ms) while the filmstrip plugin writes files on a fixed 100 ms grid. Most change points fall between filmstrip frames and therefore 404 — including FirstVisualChange itself when it lands on a 100 ms boundary like 700 ms. Construct the timestamps directly from FVC/LVC using sitespeed.io's actual rule — ms 0, plus FVC when not on a 100 ms boundary, plus every 100 ms multiple strictly inside (FVC, LVC), plus LVC when not on a 100 ms boundary. Verified against the Sweden run on wikimedia.sitespeed.io: every constructed URL hits a real file. VisualProgress is still consulted to tag each frame with its rendered-% for the divergence-colour accent on the column view. Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com
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.
The previous filmstrip fix assumed sitespeed.io writes one JPG per
VisualProgress change point and built URLs from those timestamps.
That assumption is wrong: VisualProgress is sampled at video-frame
cadence (every ~33 ms) while the filmstrip plugin writes files on
a fixed 100 ms grid. Most change points fall between filmstrip
frames and therefore 404 — including FirstVisualChange itself when
it lands on a 100 ms boundary like 700 ms.
Construct the timestamps directly from FVC/LVC using sitespeed.io's
actual rule — ms 0, plus FVC when not on a 100 ms boundary, plus
every 100 ms multiple strictly inside (FVC, LVC), plus LVC when not
on a 100 ms boundary. Verified against the Sweden run on
wikimedia.sitespeed.io: every constructed URL hits a real file.
VisualProgress is still consulted to tag each frame with its
rendered-% for the divergence-colour accent on the column view.
Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com