Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Repository files navigation

OpenVideo preview

OpenVideo

Deploy with Clawnify

Part of the Clawnify v1 library: working internal apps you add to your workspace and adapt to your business.

An open-source, agent-friendly video editor. Upload your footage, trim and arrange the clips on a timeline, add text and music, and export to MP4.

A project is a plain-JSON edit decision list, not a proprietary project file: a person edits it on the timeline, and an AI agent can read and change the same document through the API.

Why

Most editors keep a project in a format built for their own app, not for you or an agent to read. Here the main track is an ordered list of clips, times are seconds, and positions are fractions of the frame. That makes it easy for an agent to assemble a cut, and easy for a person to adjust what the agent did.

Features

  • Timeline editor: a main track of clips that play end to end, text on overlay tracks (colour, box and outline, for titles and captions alike), music on audio tracks. Trim, split, reorder and zoom, with filmstrips and waveforms.
  • Live preview: one master clock plays the cut back in the browser as you edit.
  • Footage from a Drive folder: start a project from a Google Drive folder shared with the link, and every video in it and in the folders inside it comes in as that project's own footage. Each clip is logged as it lands: what it shows, the best lines said with their times, the best moments to cut away to, and anything readable on screen. It runs in the background, so an agent can read a whole shoot's logs and choose what goes in.
  • Highlights: every logged clip is read against what you ask for, and each ask is saved as a search with a short title, so "clean landings" and "wipeouts" keep their own picks side by side. You get the soundbites and the b-roll worth an editor's look, each scored with the reason why, and the clips not worth anyone's time set aside with theirs. Say how many you want, and once every clip is read the best that many are chosen from all of them, as a set: the mix the search asks for, never the same moment twice, and when you drop one the next comes in. Review them on one page where each pick plays from its in to its out, keep or drop with a key, and export what you keep as a timeline for Premiere Pro or DaVinci Resolve (the picks end to end on the camera files, nothing re-encoded) or as a sheet. Ask for a change uses them too: "make a 60 second cut from the kept soundbites".
  • 360 cameras: an Insta360 camera records a small preview file beside each 360 original, and the preview comes in from a Drive folder like any clip, so it is logged and searched for highlights. Some previews leave the camera with their picture running behind their own sound, by up to a few seconds over a take: the file's index gives every frame the same length, while the camera took some of them faster. The camera stamps each frame it takes, so such a preview comes in with its index rewritten from those stamps, and its picture plays in step with its sound and with the original. A library video from Drive can be imported again in place (POST /api/assets/:id/reimport): it keeps its place on every timeline and gets the file Drive holds now, so a preview imported before this is put right the same way. A pick in it can be rendered as a flat video from the original beside it: aim on the moment itself, playing in the shape of the render (drag to look around, click a spot to turn to it, scroll to zoom, tilt), with a map of everything around the camera beside it, choose landscape or portrait at 720p or 1080p, and the result joins the library, the project and the original's Drive folder. On a video's timeline the same preview is always shown flat, never as the camera's two lenses: in the player, the frame strip, the library, Crop and Stack two views, through the clip's own aim (the front lens until it is aimed). A clip of any length keeps one aim, set by hand, and is rendered in place up to 2 minutes at a time: the clip shows how its render stands, plays the render in its own place once done, in the video's shape, and can be aimed again; an export names any 360 clip that isn't rendered, or was aimed again since. A clip's render is the clip's own: it joins no library, project footage or Drive folder, so aiming a clip again and again leaves no files to manage, and one no saved cut has used for a day is deleted, as are a project's with it. A clip of up to 2 minutes can follow someone instead of holding still: pause on a frame where they are clear and click them, and the editor follows them through the clip in the browser, five looks a second, with a person and object detector run on the graphics card (or the processor without one). A box on the view shows who it follows, the map shows the path, and stretches where they were lost are named, so they can be followed again from there. The view stays as level as the picture they were picked on, even straight below the camera, and the render turns along the same path.
  • Media library: upload clips, stills and music, or import them from Google Drive, and use them in any project. Videos go straight to the managed media service, resumably and up to 30 GB, so a multi-gigabyte master plays, gets a transcript and exports without passing through the app. Each upload shows its progress, and one that drops picks up where it stopped.
  • Formats: 16:9, 9:16 for Reels, TikTok and Shorts, 1:1, 4:5 and 4:3, or the shape of your own footage. One project delivers the same cut in several of them: cut once, and each version keeps its own framing and title positions. Two people sitting side by side can be stacked top and bottom in the vertical version, each view placed by hand on the source frame. Titles and logos keep their size and place when the shape changes, and clips either fit with bars or fill the frame.
  • Crop: keep part of any clip, logo or picture-in-picture, free or held to 16:9, 9:16, 1:1, 4:5 or the video's own shape, with a scrubber to check the subject stays inside. The preview places a cropped clip exactly as the export does.
  • Fades: fade a clip up from black and down to black, its sound with it, or make a fade through black between two clips. Titles, logos and music fade in and out the same way, and the preview plays each fade as it will export.
  • Colour: brightness, contrast, saturation and temperature on any clip, logo or picture-in-picture, and one click to give every clip the same look, for flat log footage or two cameras that do not match. The preview draws it with the same maths the export renders.
  • Transitions: put a dissolve, a fade through black or white, a wipe, a slide, a blur or a pixelate on any cut, from the mark between two clips on the timeline, or on every cut at once. A transition is centred on its cut and moves no clip, so titles and music stay where you put them, and the preview draws each one frame for frame as it exports.
  • Captions: switch them on for the whole video, pick one of twelve languages and one style. The words come from each clip's transcript, so captions follow every trim, split and reorder. Correct a misheard word or a name's spelling once and every video cut from that clip shows it. Download any video's transcript as text, with the time of each line.
  • AI, in one conversation: add your clips and say what you want beside the cut, in your own words: it builds the cut from them ("a 30 second video from my clips") or changes the one you have. It remembers the conversation, so "shorter" or "a square one too" knows what it refers to, and it asks back instead of guessing when a request could mean two things. A request that would watch a lot of footage says how much first and, on a yes, runs in the background: keep editing or close the tab, and it never lands on top of a change you made meanwhile. The model calls a fixed set of checked operations, so the edit is always a valid document. One request, one undo.
  • Projects hold videos: a project is your footage and every video you make from it (the full cut, short clips, a teaser), each with its own timeline, shapes and export, listed together in the project.
  • Clips from a long video: "5 vertical clips with a strong hook from this interview" reads what is said, picks the moments that stand on their own, opens each on its strongest line, and makes each its own 9:16 video inside the project, with captions, framed on the person speaking. Shots it is unsure how to frame keep the whole picture, and it tells you which. "Frame it for vertical" does the same for the cut you have.
  • AI assist: Auto-cut watches several clips together and assembles the strongest sequence for what the video is for, captions included; Clean up trims one clip down to its good parts.
  • Export to MP4 in draft, standard or high quality, on Clawnify's managed edit service.
  • Share by link: one link per project plays an export to anyone you send it to, with no sign-in, and a Download button. The link stays on the export you shared until you move it to a newer one, so a draft never reaches viewers; turning it off ends it for everyone.
  • Review comments: turn on comments for a share link and viewers leave notes on the video, each at a moment in it or about the whole thing. The team sees them under Review in the editor and as marks on the timeline, jumps to each moment, and resolves them as they go. Comments stay with the export they were made on, so notes on an old cut never land on the new one.
  • Agent-ready: a REST API (/api/assets, /api/drive, /api/projects, /api/projects/{id}/footage, /api/projects/{id}/highlights, /api/projects/{id}/renders360, /api/exports, /api/projects/{id}/share, /api/projects/{id}/comments) and an agent.md, so an AI agent can assemble, edit and export videos without a human in the loop. Validation errors carry a JSON pointer to the offending node, so an agent's edit loop self-corrects.

How an edit works

A project is one JSON document. The main track is an ordered array, so splicing a clip in is an array insert and nothing else has to be recomputed:

{
  "version": 1,
  "output": { "width": 1280, "height": 720, "fps": 30 },
  "main": { "elements": [
    { "id": "intro", "type": "video", "src": "asset:3f9c2a1b8d4e6f70", "trimStart": 2 },
    { "id": "demo",  "type": "video", "src": "asset:9a1d4c7e2b5f8036", "duration": 12 }
  ]},
  "overlays": [{ "id": "titles", "elements": [
    { "id": "hook", "type": "text", "text": "Three features. One minute.", "fontSize": 72,
      "startTime": 0.5, "duration": 3, "x": 0.5, "y": 0.12, "align": "center" }
  ]}]
}

Overlays can also carry images and video (a logo in the corner, picture-in-picture). agent.md has the full format.

Quickstart

pnpm install
pnpm dev        # editor UI + API, with a local database & storage
pnpm test       # unit tests
pnpm test:e2e   # the server end to end, with Drive, the media services and the queue stubbed

Open the editor, hit New project, upload a clip from the Media panel, click it to put it on the timeline, and trim it. Export and the AI tools run on Clawnify's managed services, so they work once the app is deployed.

Deploy

This is a Clawnify app — deploy it to your org with the CLI:

npx clawnify deploy

Exporting runs on Clawnify's managed edit service, so deployed instances need no local video toolchain.

Project layout

src/
  client/app.tsx     # app shell and router
  client/edit.tsx    # projects list and the editor: media rail, player, inspector, timeline
  client/ui.tsx      # shared control recipes (buttons, dialog, empty state)
  client/styles.css  # design tokens: palette, type scale, elevation
  server/            # REST API (assets, projects, exports), EDL validation, the public share page
agent.md             # how an AI agent assembles, edits and exports videos

License

MIT.

Following someone runs RF-DETR Nano by Roboflow (Apache 2.0), in the 4-bit form the ONNX Community publishes, on ONNX Runtime Web by Microsoft (MIT). Neither ships in this repository: the app fetches each from where it is published, at a pinned version whose bytes it checks, and serves it from its own address (src/server/track360.ts).