openmode

v0.2.0
io.github.shansabnani/openmode Checked 4 days ago Published 22 days ago

Video editing and rendering for coding agents: look at footage, render edits to MP4, keep versions.

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

look Look at a video

See a video, an image or a folder of frames. Returns one contact sheet (evenly spaced frames, each labelled with its timestamp) and facts: duration, size, fps, loudness in LUFS, silent stretches, black stretches, missing frames. Use it before editing footage and after every render to check your own work. Pass `at` for one full-size frame, or `start`/`end` to look closer at a stretch.

ParameterTypeDescription
path *stringVideo file, image file, or folder of numbered frames.
atnumberReturn one full frame at this second.
endnumberLook up to this second.
framesintegerTiles on the sheet. Default 12.
outstringAlso save the sheet here (.jpg).
quickbooleanSkip sound and black-frame analysis.
startnumberLook from this second.

render_edit Render an edit to MP4

Render an edit file to an MP4 with the local ffmpeg. An edit lists clips in order (video or image, with trims, speed, volume, cut or fade), audio tracks (music, voiceover), timed captions, an end card and a target loudness. Call edit_schema once to see the format. Render with quality draft first, look at it, then final. Returns the MP4 path, duration, size and render time.

ParameterTypeDescription
baseDirstringWith `edit`: the folder clip paths are relative to. Default: the working directory.
editOr the edit object itself, instead of a file.
filestringPath to the edit JSON file. Clip paths inside are relative to this file. Preferred.
outstringOutput .mp4 path. Default: renders/<name>-<quality>.mp4 next to the edit file.
qualitystringdraft = fast and small, to check your work; final = full quality.
validateOnlybooleanCheck the edit and report the timeline without rendering.

render_frames Render frames to MP4

Join a folder of numbered image frames (frame_0001.png ...) into an MP4, with an optional soundtrack. Use it for a headless-browser capture or any renderer that writes frames. Reports missing frame numbers instead of producing a broken film.

ParameterTypeDescription
dir *stringFolder of numbered frames.
audiostringSoundtrack file to lay under the frames.
fpsnumberFrames per second. Default 24.
loudnessnumberTarget loudness in LUFS, e.g. -14.
outstringOutput .mp4 path.
qualitystringdraft = fast and small, to check your work; final = full quality.

render_blender Render a Blender scene to MP4

Render a .blend file, or a Python script that builds a scene with bpy, to an MP4 using the Blender installed on this machine. quality draft is small (360p), low-sample and may skip frames so you can check the scene in seconds; look at it, then render final at the scene's own size and samples. Returns the MP4 path, duration, size, renderer and frame count. Needs Blender; status says if it is installed.

ParameterTypeDescription
file *stringA .blend file or a .py scene script.
allowScriptsbooleanLet Python stored inside the .blend run. Off by default.
audiostringSoundtrack file to lay under the film.
loudnessnumberTarget loudness in LUFS, e.g. -14.
outstringOutput .mp4 path. Default: renders/<name>-<quality>.mp4 next to the scene.
qualitystringdraft = fast and small, to check your work; final = full quality.
rangestringFrames to render, e.g. "1-48" or "12". Default: the scene's range.
rendererstringOverride the scene's renderer.
samplesintegerOverride samples per pixel.
stepintegerRender every Nth frame; the film keeps its length.

versions Save, list, restore and compare versions

Version history for the film folder (the working directory, or `dir`). save records every file with a message and the prompt that led to it; unchanged footage is stored once. list shows the history. restore puts the folder back to a version: unsaved work is saved first and the restore becomes a new version, so nothing is ever lost. diff shows which files changed between two versions (or a version and now), with a line diff for text files such as the edit.

ParameterTypeDescription
action *string
dirstringFilm folder. Default: the working directory.
fromstringdiff: older version, e.g. v2.
idstringrestore: the version to go back to, e.g. v3.
messagestringsave: what changed, in one line.
modelstringsave: the model that made it.
promptstringsave: the user's request that led to this version.
tostringdiff: newer version, or "current" (default).

edit_schema Edit file format

The format of the edit file render_edit reads, with an example. Call once before writing your first edit.

status Check this machine

Check that ffmpeg is installed, whether Blender is, and which features work here (hardware encoder, captions). Call it if a render fails for a reason that is not the edit.