Millisecond timestamps and frame boundaries
Eight frames before and after rounding time. The count matches but identity changes: our boundary trial at 30000/1001 fps.
2026-11-21 · 1.0 · PL / EN
01 / Eight frames can mean two different excerpts
An edit list specifies frames 2 through 9. After saving its boundaries in milliseconds, the output still has eight frames, but they are frames 3 through 10. A length check lets the content change pass. For someone accepting an edit, this means checking frame identity at boundaries even when time was rounded by less than half a millisecond.
This is a result of our synthetic trial on 21 November 2026. It concerns a specific presentation-point selection rule at a constant 30000/1001 frames per second. It is not a subtitle playback result or an assessment of a particular editing application. We extend the edit decision list with a question about what is lost when changing time units.
02 / Define the boundary rule first
We number frames from zero. The presentation instant of frame n is exactly n × 1001/30000 seconds. We use a half-open interval: select a frame if and only if its presentation instant satisfies start ≤ t < end. The start is included and the end excluded. This is the policy deliberately chosen for this trial, rather than a rule for every player.
We round each boundary independently to the nearest integer millisecond, resolving positive half ties upward. Calculations use fractions with integer numerators and denominators. The Python Fraction documentation explains this representation and warns that construction from a floating-point number may preserve its binary approximation. The trial used Python 3.11.11; the current documentation we read is version 3.15.2.
03 / A small time change selects different frames
The exact start at frame 2 is 1001/15 ms, approximately 66.733333 ms. Writing 67 ms moves it by +4/15 ms. The end at frame 10 is 1001/3 ms, approximately 333.666667 ms; writing 334 ms moves it by +1/3 ms. Both errors are within half a millisecond.
Frame 2 nevertheless falls before the new start. Frame 10 falls before the new end and is added. The exact range selects 2–9 and the rounded range selects 3–10. The diagram shows frame membership rather than a time scale; equal spacing represents consecutive frame numbers.
frame: 2 3 4 5 6 7 8 9 10
exact: X X X X X X X X .
rounded: . X X X X X X X X
count: 8 = 8
identity: lost 2; added 10
Rounding does not always change selection. The control from frame 1 to exclusive frame 3 becomes [33,100) ms and still selects 1,2; its boundary errors are −11/30 and −1/10 ms. Control [30,60) already has integer boundaries of 1001 and 2002 ms: both errors are zero and frames 30–59 remain unchanged.
04 / What we actually ran
Our source contained 90 raw gray8 frames, each 64 × 48 pixels, without audio. Every pixel of a frame had the value of its frame number. For each of three cases we saved two select-filter outputs: by frame number and by rounded time. FFmpeg used one thread, without imposing a new output frame rate. The installed build dated from 12 November 2025, identifier git6cdd2cbe32; we do not equate it with the current manual.
reference: gte(n,2)*lt(n,10)
rounded: gte(t,0.067)*lt(t,0.334)
The FFmpeg select manual describes frame number n, time base TB, timestamp pts and time t in seconds. We recorded showinfo before selection. Six executions produced 540 input PTS records in total: frame number and PTS were equal, with a time base of 1001/30000. All 245760 bytes of the six outputs matched the predicted frames. We also checked the source's 276480 bytes.
One trial passed 28 of 28 checks. A deliberately defective frame-count-only check accepted the changed excerpt. The identity check detected missing frame 2 and added frame 10. A separate inspection of saved artifacts checked hashes, protocol order and integer cross-product calculations; we did not rerun the trial.
05 / A caption file does not prove playback
WebVTT, the W3C draft of 20 May 2026, describes three digits for thousandths of a second in a timestamp. We retained a fictional TEST cue with boundaries 00:00.067 and 00:00.334 solely to illustrate syntax. We did not parse it or render it in a player. The select filter selected frames according to the explicit policy.
The trial does not establish subtitle compatibility, readability, camera behaviour, variable frame rate, drop-frame timecode, audiovisual synchronization or UTC alignment. Nor does it show that every error below half a millisecond changes the image. It shows a specific change at a specific boundary.
06 / Accept boundaries and identity
Retain the frame number or exact time fraction together with the unit, timeline origin and boundary inclusion rule. Treat milliseconds as a separate representation. After conversion, compare frame lists and boundary content; length provides an additional check. For a real file, inspect its actual timestamps rather than assuming the constant frame rate of this example.
To apply the method, let us start with one range and an explicitly agreed selection rule. Changes to source, frame rate, timeline origin, rounding, filter or export require appropriate renewed acceptance. Preserve the original. Codex, an AI agent, prepared the PL/EN text, deterministic SVG, calculations and author checks. There was no independent second-model review. Images and data are our own synthetic example; no third-party recordings or voices were used.