/videodb:video-editfrom VideoDB
Edits and composes video on a timeline using VideoDB: adds audio tracks, overlays, transitions, captions, and AI-generated media. Renders on remote servers.
Ships in VideoDB. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
render_timeline, upload_media, download_timeline_render): use them. This is the path in Claude chat on web, desktop and mobile, and in Cowork. Do not install anything and do not ask for an API key..env as VIDEO_DB_API_KEY, never print it, and continue with the Python SDK path at the end of this file. In Claude Code, /mcp then authorizing videodb also works..env, shells, Claude Code or /mcp here; none of them apply in chat, and a key pasted into chat cannot be used because nothing runs code there.Talking to the user: never write "index", "indexed" or "indexing" in a reply. Say "searchable" ("it is now searchable by what was said and what is shown"), and "transcribe" rather than naming a job. One line of status at a time, then the result.
Rendering is a long job: the call returns status: processing. The reply carries an output_url and names the tool to poll (poll_with, or retry_with on older servers). Call that tool with the output_url until it is done; several processing replies in a row are normal (a 10-minute YouTube upload takes about five), and a done reply with an empty result means poll once more. Never re-run the write; that starts a second job. Share the finished player_url.
Do not fall back to ffmpeg, moviepy or local encoding for anything below; it all runs on VideoDB's servers.
Assets first. Every piece of media needs a VideoDB id: videos m-, audio a-, images img-. upload_media(url) takes a public URL or YouTube link (media_type="audio" for a music file, "image" for a logo). list_videos, list_audios, list_images show what is already there. Local files cannot come through the connector; the user uploads at https://console.videodb.io.
One call composes everything: render_timeline(tracks=[...], resolution="1920x1080", background="#000000"). Each track holds clips; each clip has start (seconds on the timeline), duration, and an asset. Tracks stack by z_index (higher on top).
| The user wants | Asset in the clip |
|---|---|
| A video, from second 10 of the source | {"type": "video", "id": "m-...", "start": 10, "volume": 1} |
| Background music at 20% | {"type": "audio", "id": "a-...", "volume": 0.2} on its own track |
| A title or lower-third | {"type": "text", "text": "Launch day", "font": {"size": 64, "color": "#FFFFFF"}, "background": {"color": "#000000", "opacity": 0.6, "border_width": 12}} with clip fit: "contain" and position: "bottom" |
| A logo or image | {"type": "image", "id": "img-..."} with clip scale: 0.2, position: "top_right", opacity: 0.9 |
| Captions from speech | {"type": "caption", "src": "auto", "animation": "box_highlight"}; the video must already be transcribed (generate_transcript, or a spoken_words analyzer run) or the render shows no captions and no error |
| A fade between clips | clip transition: {"in": "fade", "out": "fade", "duration": 0.5} |
| Vertical for social | resolution="1080x1920", clip fit: "crop" |
Text assets: width and height are honoured only with fit: "contain"; the default crop scales the text box up to fill the frame.
Example, a 20-second clip with a title and quiet music:
render_timeline(resolution="1920x1080", tracks=[
{"z_index": 0, "clips": [{"start": 0, "duration": 20, "asset": {"type": "video", "id": "m-abc", "start": 30}}]},
{"z_index": 1, "clips": [{"start": 0, "duration": 4, "fit": "contain", "position": "bottom",
"transition": {"in": "fade", "out": "fade"},
"asset": {"type": "text", "text": "Launch day", "font": {"size": 64}}}]},
{"z_index": 0, "clips": [{"start": 0, "duration": 20, "asset": {"type": "audio", "id": "a-xyz", "volume": 0.2}}]}
])
An MP4 file: download_timeline_render(stream_url), poll, share the download URL.
Generating music, voiceover, images or video with AI, and dubbing: not available through the connector. In Claude Code the SDK does it (below). In chat, ask the user for a hosted audio or image URL to upload instead, and say that generation needs Claude Code or the SDK.
Set up first with /videodb:setup if import videodb fails. Full guide: ${CLAUDE_PLUGIN_ROOT}/python/reference/editor.md; generation: ${CLAUDE_PLUGIN_ROOT}/python/reference/generative.md.
from dotenv import load_dotenv; load_dotenv(".env")
import videodb
from videodb.editor import Timeline, Track, Clip, VideoAsset, AudioAsset, TextAsset, Fit, Transition
conn = videodb.connect(); coll = conn.get_collection()
video = coll.upload(url="https://www.youtube.com/watch?v=VIDEO_ID")
music = coll.generate_music(prompt="warm acoustic background", duration=20) # or coll.upload(url=..., media_type="audio")
voice = coll.generate_voice(text="Welcome to the show", voice_name="Default")
timeline = Timeline(conn); timeline.resolution = "1920x1080"
v = Track(); v.add_clip(0, Clip(asset=VideoAsset(id=video.id, start=30), duration=20))
a = Track(); a.add_clip(0, Clip(asset=AudioAsset(id=music.id, volume=0.2), duration=20))
timeline.add_track(v); timeline.add_track(a)
stream_url = timeline.generate_stream()
print(f"https://console.videodb.io/player?url={stream_url}")
Dubbing: coll.dub_video(video.id, language_code="es").
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
video-editing, timeline-composition, videodb, video-rendering
npx claudepluginhub video-db/skills --plugin videodb6 skills in this plugin
/videodbSet up VideoDB and write code against the VideoDB Python SDK. Use for "setup videodb" or "/videodb setup", when the user wants Python code, a script or a notebook rather than a chat answer, for bulk uploading or indexing a folder or library of media, for sandbox compute with open-weight models, and for any video task that video-search, video-clips, video-subtitles, video-edit and video-live do not cover. Screen recording belongs to video-live, AI-generated music, voiceover, images or video to video-edit, and dubbing to video-subtitles./video-clipsCut clips and highlights from a video. Use when the user wants a clip of a time range, a highlight reel of the moments that match a prompt ("every product demo", "the goals in this match"), a supercut across several videos, a vertical or square cut for Shorts, Reels or TikTok, a thumbnail, or an MP4 to download. One moment found by what was said is video-search, which also cuts that clip; joining whole videos with transitions is video-edit. Works on YouTube links, public URLs and the user's VideoDB videos./video-liveLive video and screen recording. Use when the user wants to connect a camera or live stream (RTSP, RTMP, HLS), watch it for an event and get alerted, search or play back what a stream showed, join and record a Zoom, Google Meet or Teams meeting that is happening now, or record their desktop screen and audio and get a summary or searchable timeline of that session. A recording that already exists as a file is a normal video: use video-search to ask about it.Other plugins' skills for the same job