Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Home: the video tile plays Sand Storm, then One Take

Adarsh6914fe0ebd55
diff --git a/public/previews/home/reel-crane-over-1024.mp4 b/public/previews/home/reel-crane-over-1024.mp4
deleted file mode 100644
index 62c3e885..00000000
Binary files a/public/previews/home/reel-crane-over-1024.mp4 and /dev/null differ
diff --git a/public/previews/home/reel-crane-over-640.mp4 b/public/previews/home/reel-crane-over-640.mp4
deleted file mode 100644
index da48bff6..00000000
Binary files a/public/previews/home/reel-crane-over-640.mp4 and /dev/null differ
diff --git a/public/previews/home/reel-one-take-1024.avif b/public/previews/home/reel-one-take-1024.avif
deleted file mode 100644
index e0d71aa2..00000000
Binary files a/public/previews/home/reel-one-take-1024.avif and /dev/null differ
diff --git a/public/previews/home/reel-one-take-1024.jpg b/public/previews/home/reel-one-take-1024.jpg
deleted file mode 100644
index 06bb3cc1..00000000
Binary files a/public/previews/home/reel-one-take-1024.jpg and /dev/null differ
diff --git a/public/previews/home/reel-one-take-640.avif b/public/previews/home/reel-one-take-640.avif
deleted file mode 100644
index ca5878c3..00000000
Binary files a/public/previews/home/reel-one-take-640.avif and /dev/null differ
diff --git a/public/previews/home/reel-sand-storm-1024.avif b/public/previews/home/reel-sand-storm-1024.avif
new file mode 100644
index 00000000..a462ded7
Binary files /dev/null and b/public/previews/home/reel-sand-storm-1024.avif differ
diff --git a/public/previews/home/reel-sand-storm-1024.jpg b/public/previews/home/reel-sand-storm-1024.jpg
new file mode 100644
index 00000000..7d312829
Binary files /dev/null and b/public/previews/home/reel-sand-storm-1024.jpg differ
diff --git a/public/previews/home/reel-sand-storm-640.avif b/public/previews/home/reel-sand-storm-640.avif
new file mode 100644
index 00000000..3951f1bb
Binary files /dev/null and b/public/previews/home/reel-sand-storm-640.avif differ
diff --git a/scripts/gen-home-bento.mjs b/scripts/gen-home-bento.mjs
index 0372a0ca..f3c05162 100644
--- a/scripts/gen-home-bento.mjs
+++ b/scripts/gen-home-bento.mjs
@@ -9,9 +9,9 @@
* Output (public/previews/home/):
* reel-<name>-{640,1024}.mp4 each clip of the video tile's reel (REEL), and at 1536 and 2048 where its
* 2048 px master is in the masters folder
- * reel-one-take-<width>.avif the reel's first clip's first frame at each of its widths: the tile's poster
+ * reel-sand-storm-<width>.avif the reel's first clip's first frame at each of its widths: the tile's poster
* rotation-{640,1024,1536,2048}.{mp4,avif} the turning gown (the 3D tile) at four widths, and each one's first frame
- * reel-one-take-1024.jpg, rotation-1024.jpg the 1024 px clips' first frames, for a browser without AVIF
+ * reel-sand-storm-1024.jpg, rotation-1024.jpg the 1024 px clips' first frames, for a browser without AVIF
* image-4-{480,768}.avif the Image studio's example 4
* ba-{before,after}-{640,960,1280}.avif Colorize's before and after (4:3)
* ba-{before,after}-tall-{432,691}.avif the same pair, a 3:5 crop for the tall tile
@@ -83,13 +83,12 @@ const BA_TALL = { left: 422, top: 0, width: 691, height: 1152 };
* the tile is wider than the 4:3 clip, so only its top and bottom are cropped), and the CRF each width is encoded at
* (chosen on close crops of faces and fine detail against the render; a busy picture, such as One Take's leaves, costs
* more bits). The stretches are the ones that hold up frame by frame at the tile's size: One Take from the arch to its
- * look back (the render's last frame), Sand Storm until the sand fills the frame, Crane Over the Head from the profile
- * to the view. The first clip's first frame is the tile's poster.
+ * look back (the render's last frame) and Sand Storm until the sand fills the frame. The first clip's first frame is the
+ * tile's poster.
*/
export const REEL = [
- { id: "motion-one-take", name: "reel-one-take", from: 28, frames: 96, position: "50% 15%", crf: { 640: 22, 1024: 23, 1536: 27, 2048: 28 } },
{ id: "effect-sand-storm", name: "reel-sand-storm", from: 0, frames: 84, position: "50% 0%", crf: { 640: 22, 1024: 22, 1536: 26, 2048: 27 } },
- { id: "motion-crane-over-the-head", name: "reel-crane-over", from: 36, frames: 88, position: "50% 0%", crf: { 640: 22, 1024: 22, 1536: 26, 2048: 27 } },
+ { id: "motion-one-take", name: "reel-one-take", from: 28, frames: 96, position: "50% 15%", crf: { 640: 22, 1024: 23, 1536: 27, 2048: 28 } },
];
/**
* The 3D tile's clip: its published preset, the name of its copies here, and the CRF each width is encoded at (the
diff --git a/src/lib/home-bento.generated.ts b/src/lib/home-bento.generated.ts
index 2ec8c16c..aec79517 100644
--- a/src/lib/home-bento.generated.ts
+++ b/src/lib/home-bento.generated.ts
@@ -4,12 +4,10 @@
* scripts/gen-home-bento.mjs: run it again rather than editing.
*/
export const HOME_BENTO_MEDIA: Record<string, string> = {
- "/previews/home/reel-one-take-640.mp4": "175b3cd6",
- "/previews/home/reel-one-take-1024.mp4": "dd9a7c62",
"/previews/home/reel-sand-storm-640.mp4": "79c89fa8",
"/previews/home/reel-sand-storm-1024.mp4": "a3911fc1",
- "/previews/home/reel-crane-over-640.mp4": "34ae25b3",
- "/previews/home/reel-crane-over-1024.mp4": "a7cc281e",
+ "/previews/home/reel-one-take-640.mp4": "175b3cd6",
+ "/previews/home/reel-one-take-1024.mp4": "dd9a7c62",
"/previews/home/rotation-640.mp4": "3efbab2a",
"/previews/home/rotation-1024.mp4": "3f5507ab",
"/previews/home/rotation-1536.mp4": "87d3d4f1",
@@ -24,13 +22,13 @@ export const HOME_BENTO_MEDIA: Record<string, string> = {
"/previews/home/ba-after-1280.avif": "61952772",
"/previews/home/ba-after-tall-432.avif": "71f125b7",
"/previews/home/ba-after-tall-691.avif": "46271396",
- "/previews/home/reel-one-take-640.avif": "e3820eec",
- "/previews/home/reel-one-take-1024.avif": "96abf153",
+ "/previews/home/reel-sand-storm-640.avif": "6e339255",
+ "/previews/home/reel-sand-storm-1024.avif": "13b5d74a",
"/previews/home/rotation-640.avif": "c69b0d7b",
"/previews/home/rotation-1024.avif": "23d2a89b",
"/previews/home/rotation-1536.avif": "b3df3778",
"/previews/home/rotation-2048.avif": "bcc9ccc5",
- "/previews/home/reel-one-take-1024.jpg": "991af346",
+ "/previews/home/reel-sand-storm-1024.jpg": "cab53f24",
"/previews/home/rotation-1024.jpg": "61a2cbc9",
"/previews/home/image-4-480.avif": "5a6d07a1",
"/previews/home/image-4-768.avif": "ef9d1b4d",
@@ -40,13 +38,6 @@ export const HOME_BENTO_MEDIA: Record<string, string> = {
/** The video tile's reel, in the order it plays: each clip's preset, its copies' name, its length and its framing. */
export const HOME_BENTO_REEL = [
- {
- "id": "motion-one-take",
- "name": "reel-one-take",
- "frames": 96,
- "fps": 24,
- "position": "50% 15%"
- },
{
"id": "effect-sand-storm",
"name": "reel-sand-storm",
@@ -55,11 +46,11 @@ export const HOME_BENTO_REEL = [
"position": "50% 0%"
},
{
- "id": "motion-crane-over-the-head",
- "name": "reel-crane-over",
- "frames": 88,
+ "id": "motion-one-take",
+ "name": "reel-one-take",
+ "frames": 96,
"fps": 24,
- "position": "50% 0%"
+ "position": "50% 15%"
}
];
diff --git a/tests/home-bento.test.ts b/tests/home-bento.test.ts
index 0bebdc78..97493270 100644
--- a/tests/home-bento.test.ts
+++ b/tests/home-bento.test.ts
@@ -84,10 +84,10 @@ describe("Home's first screen", () => {
}
});
- it("plays One Take, Sand Storm and Crane Over the Head in turn, on the first one's first frame", () => {
+ it("plays Sand Storm and One Take in turn, on the first one's first frame", () => {
const v = bento.video;
expect(v.id).toBe(BENTO_REEL_ID);
- expect(v.reel.map((c) => c.id)).toEqual(["motion-one-take", "effect-sand-storm", "motion-crane-over-the-head"]);
+ expect(v.reel.map((c) => c.id)).toEqual(["effect-sand-storm", "motion-one-take"]);
expect(v.reel.map((c) => c.id)).toEqual(BENTO_REEL);
for (const c of v.reel) {
// At least the 640 and 1024 px copies, each a width a still or clip comes in, narrowest first.
@@ -98,8 +98,8 @@ describe("Home's first screen", () => {
// The poster: the first clip's first frame, in the widths that clip comes in, and a JPEG at 1024 px.
const first = v.reel[0];
expect(v.poster.avif.map((a) => a.w)).toEqual(first.clips.map((x) => x.w));
- for (const a of v.poster.avif) expect(a.src).toMatch(new RegExp(`^/previews/home/reel-one-take-${a.w}\\.avif\\?v=`));
- expect(v.poster.fallback).toMatch(/^\/previews\/home\/reel-one-take-1024\.jpg\?v=/);
+ for (const a of v.poster.avif) expect(a.src).toMatch(new RegExp(`^/previews/home/reel-sand-storm-${a.w}\\.avif\\?v=`));
+ expect(v.poster.fallback).toMatch(/^\/previews\/home\/reel-sand-storm-1024\.jpg\?v=/);
// It is framed as its clip is: the poster's position is the first clip's, on the page.
expect(html).toContain(`object-position:${first.position}`);
});
diff --git a/tests/home-reel.test.ts b/tests/home-reel.test.ts
index 4c57d00f..d954ec8d 100644
--- a/tests/home-reel.test.ts
+++ b/tests/home-reel.test.ts
@@ -14,12 +14,12 @@ const root = process.cwd();
const file = (url: string) => path.join(root, "public", url.split("?")[0]);
describe("Home's video reel", () => {
- it("plays One Take, then Sand Storm, then Crane Over the Head, then One Take again", () => {
- expect(HOME_BENTO_REEL.map((c) => c.id)).toEqual(["motion-one-take", "effect-sand-storm", "motion-crane-over-the-head"]);
+ it("plays Sand Storm, then One Take, then Sand Storm again", () => {
+ expect(HOME_BENTO_REEL.map((c) => c.id)).toEqual(["effect-sand-storm", "motion-one-take"]);
const n = HOME_BENTO_REEL.length;
const order = [0];
for (let i = 0; i < 6; i++) order.push(nextInReel(order.at(-1)!, n));
- expect(order).toEqual([0, 1, 2, 0, 1, 2, 0]);
+ expect(order).toEqual([0, 1, 0, 1, 0, 1, 0]);
// The generated list is the script's, in the same order (run node scripts/gen-home-bento.mjs after changing REEL).
expect(HOME_BENTO_REEL).toEqual(REEL.map(({ id, name, frames, position }) => ({ id, name, frames, fps: 24, position })));
});
@@ -38,11 +38,10 @@ describe("Home's video reel", () => {
expect(mp4Seconds(file(url))).toBeCloseTo(c.frames / 24, 2);
}
}
- // The stretches chosen: One Take from frame 28 to its end, Sand Storm's first 84, Crane Over the Head from 36.
+ // The stretches chosen: Sand Storm's first 84, One Take from frame 28 to its end.
expect(REEL.map((c) => [c.from, c.frames])).toEqual([
- [28, 96],
[0, 84],
- [36, 88],
+ [28, 96],
]);
});