Skip to content

The open source AI video agent: turns any coding agent into a video agent, with an editor to change anything it makes.

MANUAL: a new clip goes on a free track beside clips like it; a track is added only to layer (#305)

riverisbuilding0cb9a650d33d
diff --git a/.changeset/manual-reuse-tracks.md b/.changeset/manual-reuse-tracks.md
new file mode 100644
index 0000000..f5745fd
--- /dev/null
+++ b/.changeset/manual-reuse-tracks.md
@@ -0,0 +1,5 @@
+---
+"openfilm": patch
+---
+
+Agents put a new clip on a track that has room for it, beside clips like it, instead of adding a track each time, so a film no longer ends up with many tracks.
diff --git a/packages/openfilm/MANUAL.md b/packages/openfilm/MANUAL.md
index dc49973..f6f5dec 100644
--- a/packages/openfilm/MANUAL.md
+++ b/packages/openfilm/MANUAL.md
@@ -37,6 +37,7 @@ A folder:
- The viewport is the film's frame, in CSS pixels; without it, 1920×1080.
- Each `<section>` is a track of clips that do not overlap; any clip goes on any track. The sections are the tracks as Studio's timeline shows them, top first: the first one's pictures are on top, so titles go before the footage they cover, and the background last. What a page does not paint is transparent; a moment with no clip is black.
+- Put a new clip on a track that is free at its time and holds clips like it: titles with titles, footage with footage, sound with sound. Add a track only for a clip that must be over or under one already there at that time, and leave no track empty.
- A track the person `locked` is theirs: change nothing on it. A `hidden` track shows and plays nothing; a `muted` one plays no sound.
- A clip is an element: `<iframe>` a page, `<video>`, `<img>` a picture, `<audio>` a sound.
- `src`: its file, relative to film.html. `#t=in,out` says which seconds of it play, `#t=in` to its end; without it, all of them. A picture, or a page without a `duration`, needs `#t=0,length`: how long it stays.