Skip to content

armgit / kokon

Public Imported from GitHub
0

Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.

video: Prompt+ sentences in one cue, captions on the words they name

Gabriele Lozupone2c9911aa5751
diff --git a/marketing/video/src/app/timeline.ts b/marketing/video/src/app/timeline.ts
index 036e8b4..3f6eae7 100644
--- a/marketing/video/src/app/timeline.ts
+++ b/marketing/video/src/app/timeline.ts
@@ -79,7 +79,9 @@ const all = (scene: SceneName, line: number, local: number): Cue => cue(scene, l
// Create with Prompt+: a few words typed, Prompt+ on, Send on beat 10 and a cut to the card; it
// writes the prompt and fades to the percentage (a closer shot on beat 17); the logo forms, and
// from it the image hatches full frame.
-export const CREATE = { ask: 100, pill: 150, send: 172, writes: 178, job: 173, write: 180, written: 244, leave: 256, form: 278, closer: 279, done: 294, hatch: 300, full: 355, promises: 360 };
+/** Seconds into line 3's sentence 2 where "and your graphics card" starts (Whisper word times). */
+export const GPU_WORDS = 1.68;
+export const CREATE = { ask: 100, pill: 150, send: 172, job: 173, write: 180, written: 244, leave: 256, form: 278, closer: 279, done: 294, hatch: 300, full: 355, promises: 360 };
// Shot changes (removeCut, removeShot, addCut, addShot) and the scene's end sit on beats.
export const REGION = { paint: 46, paint1: 130, removeCut: 138, remove: 150, removeSend: 177, removeShot: 185, addCut: 246, add: 256, addSend: 298, addShot: 307, same: 344 };
export const MONTAGE_EDIT = 91.5; // 1.5 bars
@@ -92,8 +94,8 @@ export const CUES: Cue[] = [
all("intro", 1, 38),
all("hook", 2, 15),
cue("create", 3, 12, 0),
- cue("create", 3, CREATE.ask, 1),
- cue("create", 3, CREATE.writes, 2),
+ // The two Prompt+ sentences in one cue: the take's own 0.4 s pause between them.
+ cue("create", 3, CREATE.ask, 1, 2),
cue("create", 3, CREATE.promises, 3, 5),
cue("region", 4, 6, 0),
cue("region", 4, 58, 1),
diff --git a/marketing/video/src/scenes/AppScenes.tsx b/marketing/video/src/scenes/AppScenes.tsx
index 7fb46d4..e340407 100644
--- a/marketing/video/src/scenes/AppScenes.tsx
+++ b/marketing/video/src/scenes/AppScenes.tsx
@@ -10,7 +10,7 @@ import { FullImage } from "../app/FullImage";
import { imageBox, InpaintOverlay, strokePoints } from "../app/InpaintOverlay";
import { Backdrop, type Cam, Camera, camAt, camSpeed, Caption, DepthOfField, Dissolve, inOut, kf, Pointer, prog, typed, typingDone, Vignette } from "../app/motion";
import { Send, Sfx } from "../app/sound";
-import { CREATE, FPS, LENGTH, REGION, sceneCues, sentenceAt } from "../app/timeline";
+import { CREATE, FPS, GPU_WORDS, LENGTH, REGION, sceneCues, sentenceAt } from "../app/timeline";
import { CardMotionContext, type CardMotion } from "../mocks/card";
import { Hatch } from "../mocks/Cocoon";
import type { State } from "../mocks/store";
@@ -159,6 +159,11 @@ export function Create() {
// image hatches out of it full frame (the app's hatching, on the frame instead of the stage).
const full = f >= C.hatch ? 1 : 0;
const words = cues.find((c) => c.from === 3)!;
+ // The captions follow the voice: "Prompt Plus writes the full prompt," then "and your graphics
+ // card makes it."
+ const prompting = cues.find((c) => c.from === 1)!;
+ const writesAt = sentenceAt(prompting, 2);
+ const gpuAt = writesAt + Math.round(GPU_WORDS * FPS);
return (
<AbsoluteFill>
<Backdrop />
@@ -174,8 +179,8 @@ export function Create() {
</div>
)}
<Vignette strength={onCard && f < C.closer ? 0.7 : 0} />
- <Tag text="Prompt+ writes the prompt." start={C.write - 2} end={C.leave + 12} />
- <Caption title="Made on your own GPU." sub="Qwen-Image 2.1 Turbo · Prompt+ ~2 s, then 2752×1536 in 38 s on an RTX 5070 Ti (sped up here)" start={C.leave + 14} end={C.hatch} size={48} />
+ <Tag text="Prompt+ writes the prompt." start={writesAt} end={gpuAt - 2} />
+ <Caption title="Made on your own GPU." sub="Qwen-Image 2.1 Turbo · Prompt+ ~2 s, then 2752×1536 in 38 s on an RTX 5070 Ti (sped up here)" start={gpuAt} end={C.hatch} y={930} size={48} />
<Words
items={[
{ text: "No cloud.", at: sentenceAt(words, 3) },