Skip to content

docs: note CapCut's frame quantisation of durations on first open #69

Closed

Description

@renezander030

Split out of #60 (finding 3), reported by @scornik. Correctly self-classified there as app behaviour rather than a CLI bug — this is a docs-only task.

Durations written at exact microseconds are snapped to the frame grid the first time CapCut opens the draft. At 30fps:

written after open frames
2767000 2766666 83.000
3133000 3133334 94.000
334000 333333 10.000
866000 866667 26.000
867000 866667 26.000

Afterwards 0/14 segments were off-grid, the timeline stayed contiguous, and drift was under one frame (max 667µs). Note the last two rows: 866ms and 867ms both land on 26 frames, so sub-frame distinctions are not preserved.

Sub-frame segments do survive — three 33ms segments became exactly one frame each (33333/33334µs) and kept their positions.

grep finds no mention of quantisation anywhere in docs/. A caller writing exact millisecond timings should know they will be rounded, and that pre-quantising to the frame grid is the only way to make what you write equal what the app stores.

Planned fix: a short section in the schema docs. A frame-grid helper is a possible follow-up; the docs note should not wait on it.

Activity

  1. added
    documentation
    good first issue
    on Aug 9, 2026
  2. tomatotomata commented on Aug 9, 2026

    @tomatotomata

    I was thinking of taking the focused docs-only slice here: add a short frame-grid quantisation section under docs/draft-schema, using the 30fps examples from this issue and keeping the frame-grid helper out of scope. I would run the documented checks and link this issue from the section. Does that scope fit what you had in mind?

  3. added a commit that references this issue on Aug 9, 2026
  4. renezander030 commented on Aug 10, 2026

    @renezander030
    OwnerAuthor

    Hi @tomatotomata, your scope was right, and the timing here was mine to get wrong. You posted this at 10:06 and I opened #72 covering the same ground at 10:08, without having seen your comment first. Sorry about that. Labelling something good first issue and then taking it myself is not how I want this repo to run, so #75 adds a claiming rule to CONTRIBUTING.md: comment first, wait to be assigned, and maintainers answer before picking one up.

    The follow-up this issue named is still open and unclaimed, and it is the better piece anyway. #76 is the frame-grid helper, so that callers can pre-quantise instead of copying the formula out of the docs. Acceptance criteria are on the issue, including the 866000 vs 867000 case from the table above.

    It is yours if you want it. Say the word there and I will assign it, and I will review the same day you open the PR.

  5. added a commit that references this issue on Oct 25, 2026
    bfe1f83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions