vidx

v0.2.1
io.github.renjithrrkj/vidx Checked 4 days ago Published 16 days ago

Local video understanding and editing for agents, in small text instead of frames.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

index_video Index a video

Index a video file: neural shot cuts, keyframes, motion and colour per shot, on-screen text and watermarks, transcript, speech/music/sfx stretches, beats, events, CLIP embeddings. Re-indexing the same file only runs what is missing unless force=true. captions=true adds one-line shot captions (slower). glitch=true also scans AI-generated clips for morphing; hits are suspects, so confirm them with peek. Returns video_id, duration, shot count, language and a short summary.

ParameterTypeDescription
path *string
captionsboolean
forceboolean
glitchboolean

overview Video overview

Table of contents. level="scenes" covers the whole video in <=limit lines (similar shots merged, long shots split at pauses); level="shots" lists shots s1..sN (page with offset).

ParameterTypeDescription
video_id *string
levelstring
limitinteger
offsetinteger

query Find moments

Find time ranges. kind: speech (exact+fuzzy transcript match), visual (CLIP text->shot), text (on-screen words), event (e.g. "silence>1.5", "black", "loud", "freeze", "laugh", "glitch", "music", "sfx", "speech", "beat", or any detector trained with `vidx teach`), any (event syntax, else text+speech+visual).

ParameterTypeDescription
text *string
video_id *string
kindstring
limitinteger

get_segment Read a time range

Detail for one range: start/end in seconds or shot ids (start="s3" alone = that shot). fields: any of words,events,shots,wordtimes,detail. wordtimes = per-word timestamps for precise cuts; detail = per-shot motion curve and peak, colour stats, audio level, keyframe times, glitch flag, text boxes.

ParameterTypeDescription
start *string
video_id *string
endstring
fieldsstring

peek Look at frames

SEE frames (costs image tokens; use sparingly). target = video_id or a rendered version id (v3). times = seconds or shot ids, e.g. ["12.5", "s3"]; omit for an even visual summary. Returns one contact sheet (max 4x4 tiles, each labeled with its timestamp); size = longest side of a tile. times=["cuts"] on a rendered version shows the frames either side of each cut (worst colour jumps first when there are many) plus a colour strip of every clip: a whole edit in one look.

ParameterTypeDescription
target *string
gridboolean
sizeinteger
times

edit Create an edit version

Create a version from an edit script (see server instructions for the DSL). With parent_version, the script is appended to the parent's script (incremental fix) unless it has its own `base` line. Returns version id, segment count, output duration and warnings.

ParameterTypeDescription
dsl *string
video_id *string
parent_versionstring

render Render a version

Render a version. preset: original | reel_9x16 | yt_16x9. preview=true is a fast 480p draft. Clips are cached, so re-rendering after a small change only encodes what changed. Writes next to the source in vidx_renders/ (or to out_path). Returns path, duration, size, pieces encoded vs reused.

ParameterTypeDescription
version_id *string
out_pathstring
presetstring
previewboolean

check Check a render

QA a rendered version: black frames, new freezes, mid-word cuts, audio jumps at joins, loudness vs preset target, duration limits. Each finding has a time and a DSL fix. Returns OK when clean.

ParameterTypeDescription
version_id *string

diff Compare two versions

What changed between two versions: added/removed/moved source ranges, option changes, output duration delta.

ParameterTypeDescription
version_a *string
version_b *string