Repository navigation
VisionSet 0.0.1b4
Pre-releaseChanged
-
Video is imported in the browser, and this process no longer decodes one at all. A clip is
demuxed and decoded where it already lives - the browser, with its ownWebCodecssupport, via
the new@visionset/mediapackage - and only JPEG frames and the provenance describing them ever
reach the server. The clip itself is never uploaded. That replaces the whole server-side path:
POST /projects/{id}/sources/videois gone and aVIDEOsource is now opened through a session
with a middle to it -POST /projects/{project_id}/video-imports declare the clip, open the session GET /video-imports/{import_id} the session's progress POST /video-imports/{import_id}/frames stage a bounded chunk of frames (multipart) POST /video-imports/{import_id}/commit every expected frame arrived → the batch DELETE /video-imports/{import_id} throw the session awayThe invariant the session exists for: nothing staged is a project asset before
commit. A
closed tab, a crashed decoder or an aborted import adds no asset and no batch to the project,
where a half-finished server-side extraction used to leave frames in a batch and a report
explaining the rest.commitrefuses withVIDEO_IMPORT_INCOMPLETEuntil every expected
ordinal has arrived, is idempotent, and answers the batch it made;FRAME_CONTENT_CONFLICT,
FRAME_ORDINAL_OUT_OF_RANGE,FRAME_TIMESTAMP_OFF_GRID,VIDEO_IMPORT_NOT_FOUNDand
VIDEO_IMPORT_NOT_OPENare the session's other refusals — the timestamp a frame declares must
be its ordinal's own grid point, which the server derives rather than takes on trust. Opening a
session is bounded as well as gated: a selected cut holding more frames than one session may
stage isVIDEO_IMPORT_TOO_LARGE— counted over the canonical ranges, so narrowing a selection
genuinely lifts it — a project already holding the
most open sessions it may isTOO_MANY_OPEN_VIDEO_IMPORTS, andstartsweeps sessions nothing
has touched for a day — deleting each through its source, so theVIDEOsource it declared goes
with it. A frame must also decode to the geometry the session declared, the clip's size after
scale_percent, rather than merely agree with its own descriptor - and a part heavier than that
geometry's own raster is refused off its weight before anything decodes it, since
FRAMES_PER_REQUESTbounds how many parts a request carries and never how big one is. Frame
parts are streamed from the handle the server already spooled rather than read whole. Workspace format version 19
adds thevideo_importandvideo_import_frametables.A
VIDEOsource's locator is now an opaquevideo-import:<uuid4>, so importing the same clip
twice creates two sources rather than deduplicating onto one; content addressing still collapses
identical frames into one asset.VideoProvenancegainspolicy_versionandmaterializer, so
which sampling rules and which decoder produced a set of frames is legible in the data.In the browser, the ingest screen picks between
ImageIngestFlowandVideoImportFlowby the
chosen file's kind. A clip is inspected locally before anything is registered - container,
codec, size, duration and source rate, or one of a closed set of refusals naming why this
browser will not decode it - and the import shows materialized against expected frames with a
Cancel that costs nothing, because nothing has landed yet. -
ffmpegis no longer a prerequisite for anything. It is not installed, not shipped, not
pinned and not documented as a dependency, and theMediaToolUnavailableerror it was the only
cause of is gone with it. A machine with no media binary at all now does everything VisionSet does, video included. There
is deliberately no fallback decoder: a browser that cannot decode a codec says so, in the
browser, rather than handing the file to a server that would have decoded it instead. A gate,
tests/scripts/no_server_video_decode.test.mjs, refuses the reintroduction.
Removed
-
POST /projects/{id}/sources/video. There is no route that takes a video file. -
The CLI's video path.
visionset ingesttakes a directory of still images and only that;
pointed at a clip it is a usage error (exit 2) naming where video import actually happens.
--fps,--rangeand--scaleare gone with it. -
The MCP video path. No tool in the stdio server decodes video or registers a clip:
ingest
takesproject,pathandbatch_name, refuses anything that is not a directory, and there is
noregister_video_sourceand noextraction_fpsparameter anywhere. A stdio agent has no way
to perform a browser capability, so nothing stands in for it. -
Three fields from the wire, all part of the same removal.
IngestFailureOut.frames_produced
andIngestFailureOut.frames_expected_estimateare gone, and so is theIngestFailureKind
enum member"partial". They existed for one case - a clip whose bytes ran out part-way through
a server-side extraction - and there is no longer a decode running insideIngestServicelong
enough to stop partway.IngestFailureKindhas two members,unsupportedandcorrupt, both a
total loss for the file they name. A client branching on"partial", or reading either
count, must be updated: the interrupted-import case now surfaces as aVIDEO_IMPORT_*refusal
on a session holding zero assets, not as a batch with a footnote. Workspace format version 20
rewrites the reports already on disk: every entry a previous release wrote carries both retired
keys, so the model that forbids extras would refuse to read one. The migration strips them, and
folds apartialentry's counts into itsreasonbefore recording it ascorrupt, so what a
damaged clip actually contributed is still legible. -
VideoProcessor,FfmpegVideoProcessorandMediaToolUnavailable. The kernel declares no
video-decoding port at all; the browser-side contract isVideoMaterializer.