Comment at 0:03
← All posts

Comment at 0:03


“Around three seconds in, the knife comes in late” is the video version of “the pricing section is vague”. The editor scrubs, guesses, and fixes a different frame. The last ShareCube post was about keeping a comment on the right words. This one is the same problem for things that play: a comment has to land on a second of a video or a podcast, or on one part of a picture, and still point there after someone uploads a new cut.

The test project

Brightloaf is a bakery that does not exist. Its drop has three files: a 12 second teaser cut from stock footage of hands and bread, a podcast episode with its baker, and a cover photo. Each one is a media artifact in ShareCube. You upload the file itself, with no page around it: PNG, JPEG, WebP, AVIF or GIF images (several make a carousel), one MP4, MOV or WebM video, or one MP3, M4A, WAV, OGG, FLAC or AAC audio file.

The moment

Under the video there is a film strip and one wide button whose label is the clock. Play, pause where the knife comes in, and it reads “Comment at 0:03”. Press it, or press C anywhere on the page, write the note, and a pin lands on the strip at that second.

Noor pauses the teaser at 0:03, comments on that moment, and the pin lands on the film strip.

The comment carries a time chip. Pressing it moves the player back to 0:03, which is the point: the person answering does not scrub. Drag across the strip instead of clicking and the button becomes “Comment on 0:20 to 0:24”, a span rather than a moment.

The area

Some notes are about where, not when. Pause the video and “Comment on an area” lets you drag a box on the frame. Ama’s note at 0:08 is about the crumbs, so the box goes around the crumbs.

A comment on an area of the paused frame at 0:08, with the box around the crumbs on the board

The box is drawn on the picture only near its moment: from 750 ms before it to 750 ms after, or through the span when it has one. A box drawn at 0:08 does not sit on top of every other frame.

A photo works the same way without the clock. On the cover, “Comment on an area” says “Drag across the image to choose an area, or press Enter for the whole image.”

The Brightloaf cover with a box around the floured crust and the comment on it

The sound

The episode is an audio artifact. The waveform is the timeline, with the file’s loudness next to its name (this mix is -16.4 LUFS). There is a mug set down on the desk at 1:08, between the baker’s answer and the next question. Click the waveform there and the button reads “Comment at 1:08”. Dragging across the waveform makes a span, as on the film strip.

The episode's waveform with a pin at 1:08 and the comment about the mug

Caption lines and separate stems can take comments too. That is a post of its own.

What is stored

A text comment stores a quote. A media comment stores a file anchor. This is Ama’s, read back from the API, with the region rounded:

{
  "kind": "file",
  "path": "brightloaf-teaser.mp4",
  "sha256": "e05a988c21f13eccff692ac70c8bf26726b78f40294c3dacb13f083716fa1792",
  "region": { "x": 0.47, "y": 0.71, "w": 0.33, "h": 0.27 },
  "time": { "start_ms": 8400 },
  "versionId": "YGu6xJtvn7jShU.ismnBcS75CnTX75oy"
}

The time is milliseconds from the start. The region is fractions of the picture as it is shown, after rotation and inside any letterboxing, so the box is the same on a phone, in the console and in full screen. Noor’s comment at 0:03 has no region, only "time": { "start_ms": 3312 }. An image takes a region, a video takes a region, a time or both, and audio takes a time. A comment with neither is refused (“Choose an area or a moment to comment on.”), and so is a time past the end of the file.

Agents use the same shape. Over MCP, create_comment takes { kind: "file", path, time: { start_ms, end_ms? } }, with a region for an area. If the agent also sends the sha256 it read from get_artifact, and the file has changed since, the comment is refused instead of landing on the wrong cut. list_comments returns each one with anchor_file, where it stands now. get_frame with a thread_id returns the frame the comment points at, with its area outlined, so an agent can look at what the reviewer was looking at.

When the file changes

The sentence post leaned on the quote: the words are the truth, the offsets are a cache. A cut has no words. Here the sha256 is the truth. It names the exact bytes the comment was made on.

When Theo uploads a new cut over the old one, the bytes change, and ShareCube does not guess where 0:03 went. The comment is labelled “Earlier version”. Its pin and its box show only while it is open. Its time chip still moves the player to 0:03 in the new cut, and the label is the warning that the moment may have moved. If the new cut is shorter than the comment’s time, the comment has nowhere to point and is orphaned, the same as a text comment whose quote is gone. If the same bytes were only renamed or moved, the comment follows them.

That is the trade I wanted. A comment stays on the frame it was made on. It does not walk to whatever happens to be at 0:03 now. Seeing what changed between the two cuts is the next post: V1 beside V2.


Comment threads, mentions and resolve work the same on media as on pages. They are covered in the ShareCube guide.