KOEN
All notes
VIDEO & VERIFICATION

A 60 fps recording: are all 60 frames distinct?

Two invented one-second records each contain 60 frame slots. One has 60 distinct counter values; the other has 30. The chrome-capture docs prompted a small counting exercise about what a recording’s frame rate tells us.

A brass magnifying glass over two paper film frames with repeated coral birds

The same duration, the same number of slots

0, 1, 2, 3. Then 0, 0, 1, 1. I made two invented records of a screen capture, with 60 numbers in each. The first runs from 0 to 59. The second repeats each number from 0 to 29 twice.

Assume each list represents 60 frame slots stored at regular intervals over one second. This is not a recording or an analysis of a video file. I imagined an on-screen counter that advances with each new render, then made arrays of the values captured from it.

Count the slots and both lists have 60. Count distinct counter values and the first has 60 while the second has 30. Running the count gave those results.

Having room for 60 frames and finding 60 different values inside them were separate observations.

The exercise began with the README for chrome-capture, a tool for recording Chrome tabs. Among the frame-rate claims, one detail made me pause: checking a counter drawn inside the recording instead of relying on the file’s stated fps.

Its test page draws a binary counter on each requestAnimationFrame. The documentation describes reading that marker back out of the recorded MP4 to count unique frames. The screen carries a trace of its own redraws.

I did not install the tool or record a video, so the documented performance figures are not results from my machine. But translating the check into a small list clarified the question. Am I asking how many frame slots the file has, or which screen updates those slots contain?

If I wanted a demo of something changing on every render, I would want to look into the repeated numbers in the second list. Knowing that the file plays for one second would not answer that question.

After finding the repeated number

Finding 30 distinct values does not establish that the recorder lost half the updates. The list contains no cause. The original screen might have updated less often, or some later stage might have captured the same state again.

It cannot tell us which browser is faster or which graphics device is at fault either. Attaching an unmeasured cause would quietly turn a counting exercise into a product review.

A stationary screen can legitimately produce repeated pictures. There is no reason to demand that every frame of an unmoving document look different. We first need to say what should be moving.

A counter also has limits. A changed number is evidence that the marker changed. It does not establish that every part of the screen rendered on time or that a click produced the right result.

For a recording demo, I would want to name the action to watch alongside the marker. Is it a value that should change after pressing a button, or the position of an object being dragged? Saying what should appear in the record gives us something specific to look for when it does not.

The impression that a video looks smooth can stand. It just does not count the updates preserved. Counting a marker, in turn, does not tell us whether the recording is pleasant or easy for a person to read.

Imagine attaching the original lists to a file description. Both last one second and contain 60 stored slots. Add that their counters distinguish 60 and 30 values, and there is finally a reason to read the two records differently.

I would pause between the first 0 and the second 0. Was the same scene captured twice, or was the next scene I expected absent? There is room for another question beside the 60 fps label.

Sources

All notes