Skip to content

programmatic video rendering framework that is actually fast

docs: add preview videos of every example to the README (#239)

Dmitriy Kovalenko654ae86ffdff
diff --git a/AGENTS.md b/AGENTS.md
index cc441a67..adceb224 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -359,7 +359,7 @@ Rules for `render_frame`:
- It runs once per frame on several threads. No panics, no I/O, no heavy allocation. Precompute
in the constructor and read from `self`; memoise per-video data in a `std::sync::OnceLock`
- field (only store a measurement once it succeeded, see `examples/motion-graphics`).
+ field (only store a measurement once it succeeded).
- `svgr!` is SVG with Rust interpolation: attributes and text children accept `{expr}` where
`expr` is a string, number, `Color`, `Transform`, another `Svgr`, or an iterator of `Svgr`
(`.collect::<Vec<_>>()`). Comments are `// ...` lines inside the markup.
@@ -690,7 +690,7 @@ With `fframes = { features = ["lottie"] }`, a Lottie `.json` file is media like
into the `include_media_dir!` folder or a `MediaDirectory` folder and play it by name.
[velato](https://github.com/linebender/velato) reads and evaluates the file. fframes draws each
frame as `svgr!` vector graphics, on every backend and in the editor. See
-`examples/lottie-launch`.
+`examples/lottie`.
```rust
use fframes::LottieOptions;
diff --git a/Cargo.lock b/Cargo.lock
index 26d10407..bdf955be 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2050,7 +2050,7 @@ dependencies = [
]
[[package]]
-name = "lottie-launch"
+name = "lottie"
version = "1.3.0"
dependencies = [
"fframes",
@@ -2198,24 +2198,6 @@ dependencies = [
"simd-adler32",
]
-[[package]]
-name = "motion-graphics-editor-bridge-example"
-version = "1.3.0"
-dependencies = [
- "fframes-editor-controller",
- "motion-graphics-example",
- "wasm-bindgen",
-]
-
-[[package]]
-name = "motion-graphics-example"
-version = "1.3.0"
-dependencies = [
- "clap",
- "fframes",
- "fframes_skia_renderer",
-]
-
[[package]]
name = "mutate_once"
version = "0.1.1"
@@ -3396,7 +3378,6 @@ dependencies = [
"hello-world-example",
"low-poly-art-example",
"marketing-example",
- "motion-graphics-example",
"pixel-example",
"png 0.17.16",
"podcast-example",
diff --git a/Cargo.toml b/Cargo.toml
index 3070dc77..d5f945e6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -38,8 +38,6 @@ members = [
"examples/teej-podcast/editor/editor-bridge",
"examples/pixel-memory",
"examples/pixel-memory/editor/editor-bridge",
- "examples/motion-graphics",
- "examples/motion-graphics/editor/editor-bridge",
"examples/shaders",
"examples/shaders/editor/editor-bridge",
"examples/neon-triangle",
@@ -52,7 +50,7 @@ members = [
"examples/fframes-intro",
"examples/made-of-motion",
"examples/shader-mode",
- "examples/lottie-launch",
+ "examples/lottie",
"examples/svg-in-3d",
]
diff --git a/README.md b/README.md
index 6e2976da..e9e91c4f 100644
--- a/README.md
+++ b/README.md
@@ -17,9 +17,7 @@
<a href="https://x.com/fframes_rust"><img alt="@fframes_rust on X" src="https://img.shields.io/badge/X-@fframes__rust-black.svg" /></a>
</p>
-<p align="center">
- <a href="https://fframes.studio"><img alt="The fframes launch video, made with fframes" src="landing/poster.jpg" width="720" /></a>
-</p>
+https://github.com/user-attachments/assets/9fdfd7b6-121b-4b49-bbf4-6f34d240f3a5
<p align="center">
<sub>This 128 second video was <a href="https://x.com/neogoose_btw/status/2104432561200279774">vibed in 48 minutes and rendered in 36 seconds</a>.<br />
@@ -36,17 +34,16 @@ fframes ships a skill for coding agents. Add it once:
npx skills add https://fframes.studio
```
-Then describe the video you want, the way you would brief a motion designer. The skill takes your agent from an empty
-folder to a rendered `.mp4`: it installs fframes, creates a project, designs the motion, places the sound, and checks
-the result before handing it to you.
+Then tell the agent what video you want. The skill walks it from an empty folder to a rendered `.mp4`: install
+fframes, create a project, design the motion, place the sound, check the result.
-The fframes API is explicit and verbose, and that is [why it stayed unreleased for years](https://x.com/neogoose_btw/status/2104432563146444994).
-Writing explicit, verbose code is exactly what an agent with the right skill is good at.
+The fframes API is explicit and verbose, which is [why it stayed unreleased for years](https://x.com/neogoose_btw/status/2104432563146444994).
+An agent with a good skill file writes that kind of code without complaint.
-## Built for an author that cannot watch
+## Your agent cannot watch the video
-A coding agent cannot watch a video or hear a soundtrack. Every generated project comes with a command line that turns
-a video into things an agent can read: PNGs, text and numbers.
+A coding agent cannot play a video or listen to a soundtrack, so every generated project comes with a command line
+that turns the video into PNGs and text.
<table>
<tr>
@@ -55,20 +52,14 @@ a video into things an agent can read: PNGs, text and numbers.
</tr>
<tr>
<td valign="top">
- <b>Checks every frame without rendering pixels.</b><br />
- <code>inspect</code> reports missing fonts or images, text cut off by the canvas, invalid SVG and panics, each with its time and scene.<br /><br />
- <b>Looks at the motion.</b><br />
- <code>strip</code> lays evenly spaced frames out on one contact sheet, <code>onion</code> blends frames to show a movement's path and easing, <code>frame</code> writes full-size PNGs.<br /><br />
- <b>Measures the sound.</b><br />
- <code>audio analyze</code> reports loudness (LUFS), true peak, clipping and silence, per scene.
+ <code>inspect</code> checks every frame without rendering pixels. It reports missing fonts or images, text cut off by the canvas, invalid SVG and panics, each with its time and scene.<br /><br />
+ <code>strip</code> lays evenly spaced frames out on one contact sheet, <code>onion</code> blends frames to show the path and easing of a movement, <code>frame</code> writes full-size PNGs.<br /><br />
+ <code>audio analyze</code> reports loudness (LUFS), true peak, clipping and silence per scene.
</td>
<td valign="top">
- <b>Watch it in real time, with sound.</b><br />
- <code>preview</code> opens a GPU window to play, pause, seek and step through frame by frame.<br /><br />
- <b>Scrub it in the browser.</b><br />
- The editor runs the video compiled to WebAssembly, with a timeline.<br /><br />
- <b>Ship it.</b><br />
- <code>render</code> writes the final file; <code>render --draft</code> encodes one scene at half size in about a second.
+ <code>preview</code> opens a GPU window with sound to play, pause, seek and step frame by frame.<br /><br />
+ The editor runs the video compiled to WebAssembly in the browser, with a timeline to scrub.<br /><br />
+ <code>render</code> writes the final file. <code>render --draft</code> encodes one scene at half size in about a second.
</td>
</tr>
</table>
@@ -91,10 +82,10 @@ ranges like `<scene>@0..<scene>@1s`. Add `--json` to parse the output.
## Why it is fast
-- **The GPU draws.** The Skia backend renders on Metal (macOS) or Vulkan (Linux, Windows), about 10x faster than the built-in CPU backend.
-- **Static markup is cached.** Parts of a frame without `{expressions}` are hashed at compile time and reused by the renderers.
-- **ffmpeg encodes.** fframes links ffmpeg's libav libraries instead of shelling out to a separate tool.
-- **Shaders when SVG is not enough.** Run SkSL or pasted Shadertoy GLSL as a layer of any frame.
+- The Skia backend draws on the GPU, Metal on macOS and Vulkan on Linux and Windows, about 10x faster than the built-in CPU backend.
+- Parts of a frame without `{expressions}` are hashed at compile time, so the renderers draw them once and reuse them.
+- fframes links ffmpeg's libav libraries instead of piping frames to a separate process.
+- When SVG is not enough, SkSL or pasted Shadertoy GLSL runs as a layer of any frame.
## What your agent writes
@@ -158,31 +149,127 @@ impl Video for HelloWorldVideo<'_> {
</details>
-The skill's guides are plain Markdown and worth reading as a human too:
+The skill's guides are plain Markdown, so you can read them too:
[the workflow](skills/fframes-video/SKILL.md), [the API cheat sheet](skills/fframes-video/references/api.md),
[design](skills/fframes-video/references/design.md) and [sound](skills/fframes-video/references/audio.md).
The full API reference is on [docs.rs/fframes](https://docs.rs/fframes).
## Examples
-| example | what it shows |
-| --- | --- |
-| [fframes-intro](examples/fframes-intro) | the 128 second [launch video](https://x.com/neogoose_btw/status/2104432561200279774), everything placed on the beat grid of its soundtrack |
-| [signal-lab](examples/signal-lab) | a 24 second motion study: product UI, data storytelling and a technical explainer |
-| [motion-graphics](examples/motion-graphics) | spring "punch in" motion and monospace text fitted to its box |
-| [shaders](examples/shaders) | GPU shader layers composed with SVG: an SkSL background and a Shadertoy raymarcher clipped into a card |
-| [shader-mode](examples/shader-mode) | a 31-second shader promo with reference audio, a moving panel wall, native preview footage and 18 GPU shader programs, rendered with Skia on Metal or Vulkan |
-| [neon-triangle](examples/neon-triangle) | a minimal shader clip built to make banding and motion artifacts easy to spot |
-| [hello-world](examples/hello-world) | a simple "hello world" video |
-| [beta](examples/beta) | a complicated multi-scene example (our beta announce video) |
-| [marketing](examples/marketing) | our marketing video |
-| [audio-announce](examples/audio-announce) | an automated workflow to create audio visualisation with automated subtitles |
-| [podcast](examples/podcast) | an audio visualization for a podcast placeholder video |
-| [teej-podcast](examples/teej-podcast) | teej's podcast with video and chapters visualization |
-| [tiktok](examples/tiktok) | a TikTok-like vertical video |
-| [conference-splash-screen](examples/conference-splash-screen) | one splash screen per conference talk, rendered in batch |
-| [low-poly-art](examples/low-poly-art) | a renderer stress test: animal art with a lot of polygons |
-| [pixel-memory](examples/pixel-memory) | my dog's memorial video generator (totally randomized) |
+Click a poster to watch the example. The README in each example folder has the video inline, and
+`just render <example>` renders the full one.
+
+<table>
+ <tr>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/9fdfd7b6-121b-4b49-bbf4-6f34d240f3a5"><img alt="fframes-intro" src="examples/_previews/fframes-intro.jpg" width="100%" /></a><br />
+ <b><a href="examples/fframes-intro">fframes-intro</a></b><br />
+ <sub>the 128 second <a href="https://x.com/neogoose_btw/status/2104432561200279774">launch video</a>, everything placed on the beat grid of its soundtrack</sub>
+ </td>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/d03e5fe7-4782-4a67-9571-e435ed367477"><img alt="signal-lab" src="examples/_previews/signal-lab.jpg" width="100%" /></a><br />
+ <b><a href="examples/signal-lab">signal-lab</a></b><br />
+ <sub>a 24 second motion study: product UI, data storytelling and a technical explainer</sub>
+ </td>
+ </tr>
+ <tr>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/2a97f8d0-abb9-4b24-9149-cde560b1efcb"><img alt="shaders" src="examples/_previews/shaders.jpg" width="100%" /></a><br />
+ <b><a href="examples/shaders">shaders</a></b><br />
+ <sub>GPU shader layers composed with SVG: an SkSL background and a Shadertoy raymarcher clipped into a card</sub>
+ </td>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/53bed61f-6478-471b-81c1-125a3054ee18"><img alt="shader-mode" src="examples/_previews/shader-mode.jpg" width="100%" /></a><br />
+ <b><a href="examples/shader-mode">shader-mode</a></b><br />
+ <sub>a 31-second shader promo with reference audio, a moving panel wall, native preview footage and 18 GPU shader programs, rendered with Skia on Metal or Vulkan.<br />The preview is silent: its soundtrack is not in the repository.</sub>
+ </td>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/8f15791f-0dc4-4589-bec4-c63e4ec0f912"><img alt="neon-triangle" src="examples/_previews/neon-triangle.jpg" width="100%" /></a><br />
+ <b><a href="examples/neon-triangle">neon-triangle</a></b><br />
+ <sub>a minimal shader clip built to make banding and motion artifacts easy to spot</sub>
+ </td>
+ </tr>
+ <tr>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/4731c533-c120-44d0-8022-e09600d0c52f"><img alt="hello-world" src="examples/_previews/hello-world.jpg" width="100%" /></a><br />
+ <b><a href="examples/hello-world">hello-world</a></b><br />
+ <sub>a simple "hello world" video</sub>
+ </td>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/fee736cc-e6e4-4ad6-b2a8-ca2ad287ab53"><img alt="beta" src="examples/_previews/beta.jpg" width="100%" /></a><br />
+ <b><a href="examples/beta">beta</a></b><br />
+ <sub>a complicated multi-scene example (our beta announce video)</sub>
+ </td>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/963e7f80-e13a-44a2-95de-63684e175006"><img alt="marketing" src="examples/_previews/marketing.jpg" width="100%" /></a><br />
+ <b><a href="examples/marketing">marketing</a></b><br />
+ <sub>our marketing video</sub>
+ </td>
+ </tr>
+ <tr>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/2b6706b8-562d-41fe-97aa-cc8198980001"><img alt="audio-announce" src="examples/_previews/audio-announce.jpg" width="100%" /></a><br />
+ <b><a href="examples/audio-announce">audio-announce</a></b><br />
+ <sub>an automated workflow to create audio visualisation with automated subtitles</sub>
+ </td>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/602f32c6-4c4c-4d07-b5e9-da5e9dfe80ad"><img alt="podcast" src="examples/_previews/podcast.jpg" width="100%" /></a><br />
+ <b><a href="examples/podcast">podcast</a></b><br />
+ <sub>an audio visualization for a podcast placeholder video</sub>
+ </td>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/fb57ae04-f908-4787-9ef0-bd440d36b1a4"><img alt="teej-podcast" src="examples/_previews/teej-podcast.jpg" width="100%" /></a><br />
+ <b><a href="examples/teej-podcast">teej-podcast</a></b><br />
+ <sub>teej's podcast with video and chapters visualization</sub>
+ </td>
+ </tr>
+ <tr>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/20dda3c9-8c44-4ea9-9663-860527d635be"><img alt="tiktok" src="examples/_previews/tiktok.jpg" width="56%" /></a><br />
+ <b><a href="examples/tiktok">tiktok</a></b><br />
+ <sub>a TikTok-like vertical video</sub>
+ </td>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/066d349e-aad6-4d03-b76b-25ad8ccdf8eb"><img alt="conference-splash-screen" src="examples/_previews/conference-splash-screen.jpg" width="100%" /></a><br />
+ <b><a href="examples/conference-splash-screen">conference-splash-screen</a></b><br />
+ <sub>one splash screen per conference talk, rendered in batch</sub>
+ </td>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/71f0b506-e37b-4e56-8064-b9bbc57cdfad"><img alt="low-poly-art" src="examples/_previews/low-poly-art.jpg" width="100%" /></a><br />
+ <b><a href="examples/low-poly-art">low-poly-art</a></b><br />
+ <sub>a renderer stress test: animal art with a lot of polygons</sub>
+ </td>
+ </tr>
+ <tr>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/fdddfc5e-72f2-4e5f-8ebe-892b9025ee1f"><img alt="pixel-memory" src="examples/_previews/pixel-memory.jpg" width="100%" /></a><br />
+ <b><a href="examples/pixel-memory">pixel-memory</a></b><br />
+ <sub>my dog's memorial video generator (totally randomized)</sub>
+ </td>
+ </tr>
+ <tr>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/3736d334-624b-42b5-870d-0afd39cfe3ff"><img alt="lottie" src="examples/_previews/lottie.jpg" width="56%" /></a><br />
+ <b><a href="examples/lottie">lottie</a></b><br />
+ <sub>an 18 second vertical launch video for Lottie support: every animation is a Lottie file and the music is synthesized in Rust</sub>
+ </td>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/3c51ccae-3541-4c79-817c-f544cf83e415"><img alt="made-of-motion" src="examples/_previews/made-of-motion.jpg" width="100%" /></a><br />
+ <b><a href="examples/made-of-motion">made-of-motion</a></b><br />
+ <sub>a 20 second promo with pixel objects, a perspective carousel, thermal shaders and per-exposure vector ink, an adaptation of a reference film</sub>
+ </td>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/f752ebc6-6d7c-4304-abb6-27becc64801c"><img alt="arm" src="examples/_previews/arm.jpg" width="100%" /></a><br />
+ <b><a href="examples/arm">arm</a></b><br />
+ <sub>a 37 second 3D short: a lab robot with a camera eye spells fframes, drops a letter and picks it up again, rendered with fframes-3d on the GPU</sub>
+ </td>
+ <td width="33%" align="center" valign="top">
+ <a href="https://github.com/user-attachments/assets/09432a37-4bd9-42ac-b068-ce92f59695af"><img alt="svg-in-3d" src="examples/_previews/svg-in-3d.jpg" width="100%" /></a><br />
+ <b><a href="examples/svg-in-3d">svg-in-3d</a></b><br />
+ <sub>an svgr UI on the screen of a turning 3D monitor, showing a 3D cube with the svgr logo: four nested levels of SVG and 3D that never leave the GPU</sub>
+ </td>
+ </tr>
+</table>
From the repository root, `just run podcast` opens an example in the editor with live reload and `just render podcast`
writes it to a file.
diff --git a/e2e/snapshots/lottie-launch/code_2s.png b/e2e/snapshots/lottie/code_2s.png
similarity index 100%
rename from e2e/snapshots/lottie-launch/code_2s.png
rename to e2e/snapshots/lottie/code_2s.png
diff --git a/e2e/snapshots/lottie-launch/code_3.5s.png b/e2e/snapshots/lottie/code_3.5s.png
similarity index 100%
rename from e2e/snapshots/lottie-launch/code_3.5s.png
rename to e2e/snapshots/lottie/code_3.5s.png
diff --git a/e2e/snapshots/lottie-launch/code_3.7s.png b/e2e/snapshots/lottie/code_3.7s.png
similarity index 100%
rename from e2e/snapshots/lottie-launch/code_3.7s.png
rename to e2e/snapshots/lottie/code_3.7s.png
diff --git a/e2e/snapshots/lottie-launch/code_3.9s.png b/e2e/snapshots/lottie/code_3.9s.png
similarity index 100%
rename from e2e/snapshots/lottie-launch/code_3.9s.png
rename to e2e/snapshots/lottie/code_3.9s.png
diff --git a/e2e/snapshots/motion-graphics/1s.png b/e2e/snapshots/motion-graphics/1s.png
deleted file mode 100644
index 31f5ea66..00000000
Binary files a/e2e/snapshots/motion-graphics/1s.png and /dev/null differ
diff --git a/e2e/snapshots/motion-graphics/3s.png b/e2e/snapshots/motion-graphics/3s.png
deleted file mode 100644
index 934fc338..00000000
Binary files a/e2e/snapshots/motion-graphics/3s.png and /dev/null differ
diff --git a/examples/_previews/arm.jpg b/examples/_previews/arm.jpg
new file mode 100644
index 00000000..3a462753
Binary files /dev/null and b/examples/_previews/arm.jpg differ
diff --git a/examples/_previews/audio-announce.jpg b/examples/_previews/audio-announce.jpg
new file mode 100644
index 00000000..f7fbf36d
Binary files /dev/null and b/examples/_previews/audio-announce.jpg differ
diff --git a/examples/_previews/beta.jpg b/examples/_previews/beta.jpg
new file mode 100644
index 00000000..06583f23
Binary files /dev/null and b/examples/_previews/beta.jpg differ
diff --git a/examples/_previews/conference-splash-screen.jpg b/examples/_previews/conference-splash-screen.jpg
new file mode 100644
index 00000000..9a209c0c
Binary files /dev/null and b/examples/_previews/conference-splash-screen.jpg differ
diff --git a/examples/_previews/fframes-intro.jpg b/examples/_previews/fframes-intro.jpg
new file mode 100644
index 00000000..9ee5b0b7
Binary files /dev/null and b/examples/_previews/fframes-intro.jpg differ
diff --git a/examples/_previews/hello-world.jpg b/examples/_previews/hello-world.jpg
new file mode 100644
index 00000000..1ce56f6a
Binary files /dev/null and b/examples/_previews/hello-world.jpg differ
diff --git a/examples/_previews/lottie.jpg b/examples/_previews/lottie.jpg
new file mode 100644
index 00000000..9ac5718c
Binary files /dev/null and b/examples/_previews/lottie.jpg differ
diff --git a/examples/_previews/low-poly-art.jpg b/examples/_previews/low-poly-art.jpg
new file mode 100644
index 00000000..e42077fb
Binary files /dev/null and b/examples/_previews/low-poly-art.jpg differ
diff --git a/examples/_previews/made-of-motion.jpg b/examples/_previews/made-of-motion.jpg
new file mode 100644
index 00000000..4caab4b0
Binary files /dev/null and b/examples/_previews/made-of-motion.jpg differ
diff --git a/examples/_previews/marketing.jpg b/examples/_previews/marketing.jpg
new file mode 100644
index 00000000..86e04a3b
Binary files /dev/null and b/examples/_previews/marketing.jpg differ
diff --git a/examples/_previews/neon-triangle.jpg b/examples/_previews/neon-triangle.jpg
new file mode 100644
index 00000000..7f77ceca
Binary files /dev/null and b/examples/_previews/neon-triangle.jpg differ
diff --git a/examples/_previews/pixel-memory.jpg b/examples/_previews/pixel-memory.jpg
new file mode 100644
index 00000000..905c1375
Binary files /dev/null and b/examples/_previews/pixel-memory.jpg differ
diff --git a/examples/_previews/podcast.jpg b/examples/_previews/podcast.jpg
new file mode 100644
index 00000000..4c6a3aeb
Binary files /dev/null and b/examples/_previews/podcast.jpg differ
diff --git a/examples/_previews/shader-mode.jpg b/examples/_previews/shader-mode.jpg
new file mode 100644
index 00000000..ec0f4ef2
Binary files /dev/null and b/examples/_previews/shader-mode.jpg differ
diff --git a/examples/_previews/shaders.jpg b/examples/_previews/shaders.jpg
new file mode 100644
index 00000000..ecccd5f7
Binary files /dev/null and b/examples/_previews/shaders.jpg differ
diff --git a/examples/_previews/signal-lab.jpg b/examples/_previews/signal-lab.jpg
new file mode 100644
index 00000000..871665d0
Binary files /dev/null and b/examples/_previews/signal-lab.jpg differ
diff --git a/examples/_previews/svg-in-3d.jpg b/examples/_previews/svg-in-3d.jpg
new file mode 100644
index 00000000..2124b58b
Binary files /dev/null and b/examples/_previews/svg-in-3d.jpg differ
diff --git a/examples/_previews/teej-podcast.jpg b/examples/_previews/teej-podcast.jpg
new file mode 100644
index 00000000..75ea1e0f
Binary files /dev/null and b/examples/_previews/teej-podcast.jpg differ
diff --git a/examples/_previews/tiktok.jpg b/examples/_previews/tiktok.jpg
new file mode 100644
index 00000000..3eb38cd6
Binary files /dev/null and b/examples/_previews/tiktok.jpg differ
diff --git a/examples/arm/README.md b/examples/arm/README.md
index 8e5ff297..ca7e57b3 100644
--- a/examples/arm/README.md
+++ b/examples/arm/README.md
@@ -1,56 +1,13 @@
-# FFRAMES, ASSEMBLED
+# arm
-A 37-second short film about a lab robot with a camera eye. The robot wakes up in the dark
-lab, and its eye light searches the floor. The lab lights flicker on. The robot sees the
-camera, then spells `fframes` with letter pieces from a rack. It gets faster and too
-confident. In a spin it throws the "a" across the floor, and sparks fly. The music stops like
-a tape, and crickets fill the silence. The robot looks at the letter, then into the camera. It
-sighs, moves over carefully and picks up the letter from the floor. It puts the letter in its
-place, pats it, completes the word and bows.
+A 37 second 3D short: a lab robot with a camera eye spells fframes, drops a letter and picks it up again, rendered with fframes-3d on the GPU.
-| file | what |
-| --- | --- |
-| `src/arm.rs` | the six axis arm and its analytic inverse kinematics for any tool pose. The arm has finned motors, bolt circles, a gas spring, a corrugated hose, a drag chain, three wrist motors, a forearm that rolls, a gripper and a camera eye with a lid, a spot light and a beam |
-| `src/lab.rs` | the polished concrete floor (procedural color, normal and occlusion-roughness maps, reflects the scene), hazard stripes, stencils, a printed grid, the rack, shelves of bins, monitors, the walls and the lights |
-| `src/effects.rs` | what the film builds itself from the building blocks: camera shake, a light beam in hazy air, sparks with streaks, a printed grid |
-| `src/story.rs` | the performance: keys with character easing (anticipation, overshoot), idle motion, the timelines of the letters, the rigid tumble of the dropped letter, the sounds and the console lines |
-| `src/bin/soundtrack.rs` | the score (music box, marimba, pizzicato, glockenspiel, drums, pads, crickets, tape stop) and every effect, timed from the story. The servo sound follows the speed of each joint |
+https://github.com/user-attachments/assets/f752ebc6-6d7c-4304-abb6-27becc64801c
+
+The soundtrack is synthesized by a second binary, so run it once before the video:
```sh
cargo run --release -p arm-example --bin arm-soundtrack # writes dynamic_media/*.wav
cargo run --release -p arm-example --bin arm -- render # 3D and Skia on the GPU -> out.mp4
cargo run --release -p arm-example --bin arm -- --cpu render # everything on the CPU
-cargo run --release -p arm-example --bin arm -- --readback render # the 3D read back to the CPU, to compare
```
-
-## What it uses
-
-| `fframes::three_d` | where |
-| --- | --- |
-| scene graph, groups, `Scene::local_to_world` | the joints of the arm, the gas spring between two joints |
-| `rounded_box`, `cylinder`, `torus`, `sphere_partial`, `lathe`, `extrude`, `tube`, `ring`, `circle`, `text`, `merge` | the arm, the letters, the stencils |
-| `Material::standard`, `metal`, `clearcoat`, `emissive`, `glow` | white paint, chrome, lacquered letters, status lights, the beam |
-| `map`, `normal_map`, `ao_map`, `metal_rough_map`, `emissive_map`, `Texture::from_fn` | the concrete, the hazard stripes, the grid, the monitors |
-| `Light::sun` with `Shadow`, `directional`, `hemisphere`, `spot`, `point` | the ceiling, the fill, the eye light, the glow of the base ring |
-| `Environment::Studio`, `Fog::Exp2`, `Background::Color` | the lab at each light level |
-| `Reflector::floor` | the polished concrete |
-| `Node::instanced` with a color per copy | the bins on the shelves |
-| `Node::particles` | the dust in the beam, the sparks |
-| `Camera::focus_on`, `Renderer::render_motion_blur` | depth of field in every shot, motion blur in the spin and the throw |
-| `Bloom`, `ToneMapping::Neutral`, `exposure` | the glow of the lights and the sparks |
-| `Camera::project`, `Camera::pixel_size` | the SVG marker on the thrown letter |
-
-The 3D comes from `fframes = { features = ["3d", "wgpu"] }` and renders on the GPU
-(`Renderer::gpu()`). On Linux and Windows it uses the same Vulkan device as Skia (the `wgpu`
-feature of `fframes_skia_renderer`): the 3D of each frame is a GPU texture, Skia draws the
-console overlay on it and converts it to YUV for the encoder, and nothing is read back between
-these steps. On macOS Skia renders with Metal, and the 3D comes back as pixels.
-
-The polished concrete reflects the scene (`Scene::reflector`). The reflection renders mirrored
-at half resolution, and the roughness map of the floor blurs it. Specular antialiasing stops
-the sparkle on the chrome.
-
-The full film renders in about 42 seconds on an Intel UHD 770 iGPU: about 19 ms for each 1080p
-frame with depth of field, reflections and 4x MSAA. On average the 3D is within 0.4/255 of the
-CPU rasterizer. `--readback` reads the 3D back from the GPU and uploads it to Skia again, for
-comparison. With `--cpu` the film takes about six minutes on a 28-thread machine.
diff --git a/examples/audio-announce/README.md b/examples/audio-announce/README.md
new file mode 100644
index 00000000..30ed21bf
--- /dev/null
+++ b/examples/audio-announce/README.md
@@ -0,0 +1,8 @@
+# audio-announce
+
+An automated workflow to create audio visualisation with automated subtitles.
+
+https://github.com/user-attachments/assets/2b6706b8-562d-41fe-97aa-cc8198980001
+
+From the repository root, `just run audio-announce` opens it in the editor with live reload and
+`just render audio-announce` writes the full video to a file.
diff --git a/examples/beta/README.md b/examples/beta/README.md
new file mode 100644
index 00000000..ae23431e
--- /dev/null
+++ b/examples/beta/README.md
@@ -0,0 +1,8 @@
+# beta
+
+A complicated multi-scene example (our beta announce video).
+
+https://github.com/user-attachments/assets/fee736cc-e6e4-4ad6-b2a8-ca2ad287ab53
+
+From the repository root, `just run beta` opens it in the editor with live reload and
+`just render beta` writes the full video to a file.
diff --git a/examples/conference-splash-screen/README.md b/examples/conference-splash-screen/README.md
new file mode 100644
index 00000000..5040645b
--- /dev/null
+++ b/examples/conference-splash-screen/README.md
@@ -0,0 +1,8 @@
+# conference-splash-screen
+
+One splash screen per conference talk, rendered in batch.
+
+https://github.com/user-attachments/assets/066d349e-aad6-4d03-b76b-25ad8ccdf8eb
+
+From the repository root, `just run conference-splash-screen` opens it in the editor with live reload and
+`just render conference-splash-screen` writes the full video to a file.
diff --git a/examples/fframes-intro/README.md b/examples/fframes-intro/README.md
new file mode 100644
index 00000000..222f025c
--- /dev/null
+++ b/examples/fframes-intro/README.md
@@ -0,0 +1,8 @@
+# fframes-intro
+
+The 128 second launch video, everything placed on the beat grid of its soundtrack.
+
+https://github.com/user-attachments/assets/9fdfd7b6-121b-4b49-bbf4-6f34d240f3a5
+
+From the repository root, `just run fframes-intro` opens it in the editor with live reload and
+`just render fframes-intro` writes the full video to a file.
diff --git a/examples/fframes-intro/src/lib.rs b/examples/fframes-intro/src/lib.rs
index 00ed37cd..f63e06d6 100644
--- a/examples/fframes-intro/src/lib.rs
+++ b/examples/fframes-intro/src/lib.rs
@@ -154,7 +154,6 @@ fn hud(frame: &Frame, b: f32) -> Svgr<'static> {
let bpm = format!("132 BPM BAR {bar:03}.{beat_in_bar}");
// a tick that flashes on every beat
let tick = if b < 0.0 { 0.0 } else { pulse(b, 7.0) };
- let progress = (gsec(frame) / TOTAL_SECONDS * 1788.0).max(0.5);
fframes::svgr!(
<g opacity={appear * 0.9} style="mix-blend-mode:difference">
{corners(36.0, 36.0, 1848.0, 1008.0, 26.0, "#d8d4cc", 2.0)}
@@ -164,8 +163,6 @@ fn hud(frame: &Frame, b: f32) -> Svgr<'static> {
{label(66.0, 1018.0, tc, "#d8d4cc", 17.0, "start")}
{label(290.0, 1018.0, fnum, "#77736d", 17.0, "start")}
{label(1854.0, 1018.0, section.to_owned(), "#d8d4cc", 17.0, "end")}
- <rect x="66" y="1034" width="1788" height="1" fill="#d8d4cc" opacity="0.25" />
- <rect x="66" y="1033" width={progress} height="3" fill="#d8d4cc" />
</g>
)
}
diff --git a/examples/hello-world/README.md b/examples/hello-world/README.md
new file mode 100644
index 00000000..d8ebc217
--- /dev/null
+++ b/examples/hello-world/README.md
@@ -0,0 +1,8 @@
+# hello-world
+
+A simple "hello world" video.
+
+https://github.com/user-attachments/assets/4731c533-c120-44d0-8022-e09600d0c52f
+
+From the repository root, `just run hello-world` opens it in the editor with live reload and
+`just render hello-world` writes the full video to a file.
diff --git a/examples/lottie-launch/README.md b/examples/lottie-launch/README.md
deleted file mode 100644
index d99af863..00000000
--- a/examples/lottie-launch/README.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# fframes now plays Lottie
-
-An 18 second launch video for social feeds, 1080x1920 at 60 fps. Every animation in it is a
-Lottie file from `media/`, played with `frame.play_lottie`. The music is synthesized in
-`src/soundtrack.rs` when the video starts, so the example ships no audio files.
-
-| beats | scene | what you see |
-| --- | --- | --- |
-| 0-8 | Hook | the wordmark and a party popper on the first frame, then "NOW PLAYS LOTTIE" by 1.3 s |
-| 8-16 | Grid | twelve animations pop in on sixteenth notes and float |
-| 16-24 | Code | the tiger plays above the `play_lottie` call that plays it |
-| 24-28 | Zoom | the camera dives into the tiger's eye until the pupil fills the screen |
-| 28-36 | Outro | the wordmark, `features = ["lottie"]` and fframes.studio |
-
-`src/beat.rs` holds the timing at 120 BPM. The picture and the music both read it, so each pop
-and keystroke has its sound on the same frame.
-
-```sh
-cargo run --release -p lottie-launch -- render # out.mp4, CPU backend
-cargo run --release -p lottie-launch -- --renderer gpu render # Skia on the GPU
-```
-
-The e2e suite (`just e2e cpu`) renders the tiger at four points of its loop and compares them
-with `e2e/snapshots/lottie-launch`.
-
-## Credits
-
-- Emoji animations (`media/*.json` except the two below): [Noto Animated Emoji](https://googlefonts.github.io/noto-emoji-animation/) by Google, CC BY 4.0.
-- `media/switch.json` and `media/watermelon.json`: [lottie-ios](https://github.com/airbnb/lottie-ios) samples, Apache 2.0.
-- Fonts: Anton, IBM Plex Mono and Instrument Serif, SIL Open Font License.
diff --git a/examples/lottie-launch/Cargo.toml b/examples/lottie/Cargo.toml
similarity index 92%
rename from examples/lottie-launch/Cargo.toml
rename to examples/lottie/Cargo.toml
index f818bc6b..3779160e 100644
--- a/examples/lottie-launch/Cargo.toml
+++ b/examples/lottie/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "lottie-launch"
+name = "lottie"
version = "1.3.0"
edition = "2024"
publish = false
@@ -20,12 +20,12 @@ fframes_skia_renderer = { workspace = true, features = ["vulkan", "cli"] }
fframes = { workspace = true, features = ["h264", "h265", "vpx", "libav-agree-gpl", "build-portable"] }
[lib]
-name = "lottie_launch"
+name = "lottie"
path = "src/lib.rs"
doctest = false
[[bin]]
-name = "lottie-launch"
+name = "lottie"
path = "src/main.rs"
[lints]
diff --git a/examples/lottie/README.md b/examples/lottie/README.md
new file mode 100644
index 00000000..c162c4e5
--- /dev/null
+++ b/examples/lottie/README.md
@@ -0,0 +1,14 @@
+# lottie
+
+An 18 second vertical launch video for Lottie support: every animation is a Lottie file and the music is synthesized in Rust.
+
+https://github.com/user-attachments/assets/3736d334-624b-42b5-870d-0afd39cfe3ff
+
+From the repository root, `just run lottie` opens it in the editor with live reload and
+`just render lottie` writes the full video to a file.
+
+## Credits
+
+- Emoji animations (`media/*.json` except the two below): [Noto Animated Emoji](https://googlefonts.github.io/noto-emoji-animation/) by Google, CC BY 4.0.
+- `media/switch.json` and `media/watermelon.json`: [lottie-ios](https://github.com/airbnb/lottie-ios) samples, Apache 2.0.
+- Fonts: Anton, IBM Plex Mono and Instrument Serif, SIL Open Font License.
diff --git a/examples/lottie-launch/media/Anton-Regular.ttf b/examples/lottie/media/Anton-Regular.ttf
similarity index 100%
rename from examples/lottie-launch/media/Anton-Regular.ttf
rename to examples/lottie/media/Anton-Regular.ttf
diff --git a/examples/lottie-launch/media/IBMPlexMono-Medium.ttf b/examples/lottie/media/IBMPlexMono-Medium.ttf
similarity index 100%
rename from examples/lottie-launch/media/IBMPlexMono-Medium.ttf
rename to examples/lottie/media/IBMPlexMono-Medium.ttf
diff --git a/examples/lottie-launch/media/IBMPlexMono-SemiBold.ttf b/examples/lottie/media/IBMPlexMono-SemiBold.ttf
similarity index 100%
rename from examples/lottie-launch/media/IBMPlexMono-SemiBold.ttf
rename to examples/lottie/media/IBMPlexMono-SemiBold.ttf
diff --git a/examples/lottie-launch/media/InstrumentSerif-Italic.ttf b/examples/lottie/media/InstrumentSerif-Italic.ttf
similarity index 100%
rename from examples/lottie-launch/media/InstrumentSerif-Italic.ttf
rename to examples/lottie/media/InstrumentSerif-Italic.ttf
diff --git a/examples/lottie-launch/media/cat.json b/examples/lottie/media/cat.json
similarity index 100%
rename from examples/lottie-launch/media/cat.json
rename to examples/lottie/media/cat.json
diff --git a/examples/lottie-launch/media/clapper.json b/examples/lottie/media/clapper.json
similarity index 100%
rename from examples/lottie-launch/media/clapper.json
rename to examples/lottie/media/clapper.json
diff --git a/examples/lottie-launch/media/cool.json b/examples/lottie/media/cool.json
similarity index 100%
rename from examples/lottie-launch/media/cool.json
rename to examples/lottie/media/cool.json
diff --git a/examples/lottie-launch/media/earth.json b/examples/lottie/media/earth.json
similarity index 100%
rename from examples/lottie-launch/media/earth.json
rename to examples/lottie/media/earth.json
diff --git a/examples/lottie-launch/media/fire.json b/examples/lottie/media/fire.json
similarity index 100%
rename from examples/lottie-launch/media/fire.json
rename to examples/lottie/media/fire.json
diff --git a/examples/lottie-launch/media/mind_blown.json b/examples/lottie/media/mind_blown.json
similarity index 100%
rename from examples/lottie-launch/media/mind_blown.json
rename to examples/lottie/media/mind_blown.json
diff --git a/examples/lottie-launch/media/party.json b/examples/lottie/media/party.json
similarity index 100%
rename from examples/lottie-launch/media/party.json
rename to examples/lottie/media/party.json
diff --git a/examples/lottie-launch/media/popcorn.json b/examples/lottie/media/popcorn.json
similarity index 100%
rename from examples/lottie-launch/media/popcorn.json
rename to examples/lottie/media/popcorn.json
diff --git a/examples/lottie-launch/media/rainbow.json b/examples/lottie/media/rainbow.json
similarity index 100%
rename from examples/lottie-launch/media/rainbow.json
rename to examples/lottie/media/rainbow.json
diff --git a/examples/lottie-launch/media/rocket.json b/examples/lottie/media/rocket.json
similarity index 100%
rename from examples/lottie-launch/media/rocket.json
rename to examples/lottie/media/rocket.json
diff --git a/examples/lottie-launch/media/sparkles.json b/examples/lottie/media/sparkles.json
similarity index 100%
rename from examples/lottie-launch/media/sparkles.json
rename to examples/lottie/media/sparkles.json
diff --git a/examples/lottie-launch/media/star_struck.json b/examples/lottie/media/star_struck.json
similarity index 100%
rename from examples/lottie-launch/media/star_struck.json
rename to examples/lottie/media/star_struck.json
diff --git a/examples/lottie-launch/media/switch.json b/examples/lottie/media/switch.json
similarity index 100%
rename from examples/lottie-launch/media/switch.json
rename to examples/lottie/media/switch.json
diff --git a/examples/lottie-launch/media/tiger.json b/examples/lottie/media/tiger.json
similarity index 100%
rename from examples/lottie-launch/media/tiger.json
rename to examples/lottie/media/tiger.json
diff --git a/examples/lottie-launch/media/unicorn.json b/examples/lottie/media/unicorn.json
similarity index 100%
rename from examples/lottie-launch/media/unicorn.json
rename to examples/lottie/media/unicorn.json
diff --git a/examples/lottie-launch/media/watermelon.json b/examples/lottie/media/watermelon.json
similarity index 100%
rename from examples/lottie-launch/media/watermelon.json
rename to examples/lottie/media/watermelon.json
diff --git a/examples/lottie-launch/src/beat.rs b/examples/lottie/src/beat.rs
similarity index 100%
rename from examples/lottie-launch/src/beat.rs
rename to examples/lottie/src/beat.rs
diff --git a/examples/lottie-launch/src/lib.rs b/examples/lottie/src/lib.rs
similarity index 99%
rename from examples/lottie-launch/src/lib.rs
rename to examples/lottie/src/lib.rs
index 0dc2b6bc..1966df10 100644
--- a/examples/lottie-launch/src/lib.rs
+++ b/examples/lottie/src/lib.rs
@@ -18,7 +18,7 @@ use fframes::{
use beat::*;
-include_media_dir!(pub struct LaunchMedia, "examples/lottie-launch/media");
+include_media_dir!(pub struct LaunchMedia, "examples/lottie/media");
pub const WIDTH: usize = 1080;
pub const HEIGHT: usize = 1920;
diff --git a/examples/lottie-launch/src/main.rs b/examples/lottie/src/main.rs
similarity index 96%
rename from examples/lottie-launch/src/main.rs
rename to examples/lottie/src/main.rs
index 239b525f..4414296a 100644
--- a/examples/lottie-launch/src/main.rs
+++ b/examples/lottie/src/main.rs
@@ -5,7 +5,7 @@ use fframes::{
LimiterOptions, MediaProvider, RenderOptions, cli,
};
use fframes_skia_renderer::cli::SkiaRenderers;
-use lottie_launch::{LaunchMedia, LaunchVideo, soundtrack};
+use lottie::{LaunchMedia, LaunchVideo, soundtrack};
fn main() -> ExitCode {
let media = LaunchMedia::new().expect("media");
diff --git a/examples/lottie-launch/src/soundtrack.rs b/examples/lottie/src/soundtrack.rs
similarity index 100%
rename from examples/lottie-launch/src/soundtrack.rs
rename to examples/lottie/src/soundtrack.rs
diff --git a/examples/low-poly-art/README.md b/examples/low-poly-art/README.md
new file mode 100644
index 00000000..84433070
--- /dev/null
+++ b/examples/low-poly-art/README.md
@@ -0,0 +1,8 @@
+# low-poly-art
+
+A renderer stress test: animal art with a lot of polygons.
+
+https://github.com/user-attachments/assets/71f0b506-e37b-4e56-8064-b9bbc57cdfad
+
+From the repository root, `just run low-poly-art` opens it in the editor with live reload and
+`just render low-poly-art` writes the full video to a file.
diff --git a/examples/made-of-motion/README.md b/examples/made-of-motion/README.md
index b0921572..6a0596e6 100644
--- a/examples/made-of-motion/README.md
+++ b/examples/made-of-motion/README.md
@@ -1,91 +1,13 @@
-# Made of motion
+# made-of-motion
-A 489-frame, 1440×1080 fframes promo with pixel objects, a continuous perspective
-carousel, thermal performances, paper texture, and per-exposure vector ink. Metal
-on macOS; Vulkan elsewhere. This GPU example has no web-editor bridge.
+A 20 second promo with pixel objects, a perspective carousel, thermal shaders and per-exposure vector ink, an adaptation of a reference film.
-The film adapts the [reference film](https://x.com/jordanarchivess/status/2107536262894915762)
-to fframes: “how do you turn a few lines of code into a feeling?”, three cards
-(**code. / motion. / feeling.**), and seven flying letters assembling into the
-fframes wordmark. Original cut boundaries and audio are retained.
+https://github.com/user-attachments/assets/3c51ccae-3541-4c79-817c-f544cf83e415
+From the repository root, `just run made-of-motion` opens it in the editor with live reload and
+`just render made-of-motion` writes the full video to a file.
-## What is vector, shader, or footage?
+## Credits
-| Layer | Implementation |
-| --- | --- |
-| Handwritten opening, brown/red/white pen strokes, black dots and whips, broad gray trails | SVG paths traced independently for each measured exposure |
-| Portrait marks, hand marks, red feature-card marks and inter-card speed lines | Per-exposure SVG contours; source caption/icon regions excluded or reconstructed |
-| Red marks around the ending letters | Four measured SVG nib tracks translated onto seven brand letters |
-| Portrait, 3.88–6.38s | Cleaned source footage with SVG ink added back and shader caption cleanup |
-| Hand, 13.83–15.92s | Source-derived silhouette and smooth heat field; shader recreates palette, background and light |
-| Electric star and contracting orange ball | SkSL geometry with measured centre/radius/rotation/cusp parameters |
-| Paper, grain, four-frame thermal cut and collision light | Procedural shaders |
-| Icons, ring, hero motion, typography | Original pixel atlas and Rust animation; selected motion measurements inform poses |
-
-No reference ink pixels are sampled at runtime. `VectorInk` decompresses the text
-SVG archives and builds the scene trees once, then samples by global frame index.
-Contours retain pressure and soft trails with 64 opacity levels, even-odd fills,
-0.4px simplification tolerance, and 0.1px coordinate precision.
-
-This is vector rotoscoping, not recovery of the creator's original splines or a
-fluid simulation. Source compression, pigment/opacity estimation and reconstructed
-occlusions prevent a claim of pixel-identical recovery. The brand ending preserves
-the larger final red gestures through frame 488, following assembly and the fast
-camera pullback. Only the independent black gestures fade. Ink-only mode keeps
-the four original tracks at their source positions.
-
-The featured icons occupy permanent slots in one continuously rotating wheel.
-Flights cover frames 190–205, 227–242 and 261–270; returns cover 214–225, 249–259
-and 280–294. During feature cards the other icons are hidden while their tracks
-continue rotating. Returning icons dock in their moving vacant slots.
-
-`objects.rs` prepares the trajectories with cached `timeline!` animations;
-`hero.rs` uses those same poses. The motion diamond eases between measured camera
-poses. `flight.rs` retains the seven letter flights, three-frame assembly and
-four-frame camera pullback.
-
-`opening.rs` retains the oversized type through frame 13, with full-width dashed
-x-height/baseline rulers, lateral camera moves and a cursor wipe. Two one-frame
-color flashes precede it. A pixel pulse and four broken-line exposures collapse
-into a measured selection around the adapted copy; that selection blinks on
-frames 18–20 and 22. The large type intentionally crosses the canvas edge during
-the camera moves, so inspection reports expected clipping warnings there.
-
-## Explicit final export
-
-The source has 489 frames at 24000/1001 fps. Native preview uses 24 fps, about 20ms
-shorter over the whole film, with decoded stereo audio and no gain changes or
-limiting. For delivery, the following FFmpeg step restores the rational cadence
-and copies the original AAC packets unchanged. It replaces the final output file.
-
-Run only when a full export is requested:
-
-```sh
-cargo run --release -p made-of-motion -- render \
- -o examples/made-of-motion/output/made-of-motion.24fps.mp4
-
-ffmpeg -hide_banner -loglevel error -y \
- -i examples/made-of-motion/output/made-of-motion.24fps.mp4 \
- -i examples/made-of-motion/dynamic_media/soundtrack.m4a \
- -map 0:v:0 -map 1:a:0 \
- -vf 'settb=1/24000,setpts=N*1001' -r 24000/1001 -fps_mode cfr \
- -c:v libx264 -crf 16 -preset slow -pix_fmt yuv420p \
- -c:a copy -video_track_timescale 24000 -movflags +faststart \
- examples/made-of-motion/output/made-of-motion.mp4
-```
-
-Verify the delivered video:
-
-```sh
-ffprobe -v error -select_streams v:0 \
- -show_entries stream=width,height,r_frame_rate,nb_frames \
- examples/made-of-motion/output/made-of-motion.mp4
-
-ffmpeg -v error -i examples/made-of-motion/output/made-of-motion.mp4 \
- -map 0:a:0 -c:a copy -f adts - | shasum -a 256
-```
-
-Expect 1440×1080, 489 frames, `24000/1001` fps, and the `audio_adts_sha256` value
-from `assets.json`. No tests are added; use inspection, frames, onions, formatting
-and the repository's Clippy rules when changing the example.
+The film adapts the [reference film](https://x.com/jordanarchivess/status/2107536262894915762) by Jordan Watkins to
+fframes. The original cut boundaries and audio are retained.
diff --git a/examples/marketing/README.md b/examples/marketing/README.md
new file mode 100644
index 00000000..630c837b
--- /dev/null
+++ b/examples/marketing/README.md
@@ -0,0 +1,8 @@
+# marketing
+
+Our very first announcement video from 2021
+
+https://github.com/user-attachments/assets/963e7f80-e13a-44a2-95de-63684e175006
+
+From the repository root, `just run marketing` opens it in the editor with live reload and
+`just render marketing` writes the full video to a file.
diff --git a/examples/motion-graphics/Cargo.toml b/examples/motion-graphics/Cargo.toml
deleted file mode 100644
index 7f545ffe..00000000
--- a/examples/motion-graphics/Cargo.toml
+++ /dev/null
@@ -1,48 +0,0 @@
-[package]
-name = "motion-graphics-example"
-version = "1.3.0"
-edition = "2024"
-
-[dependencies]
-fframes.workspace = true
-clap = { version = "4.3.4", features = ["derive"] }
-
-# `--renderer cpu|skia-cpu|gpu`: Skia on Metal on macOS, on Vulkan everywhere else
-[target.'cfg(target_os = "macos")'.dependencies]
-fframes_skia_renderer = { workspace = true, features = ["metal", "cli"] }
-
-[target.'cfg(not(any(target_os = "macos", target_arch = "wasm32")))'.dependencies]
-fframes_skia_renderer = { workspace = true, features = ["vulkan", "cli"] }
-
-# FFmpeg codecs, portable so cached source builds work across CI runner CPUs. Windows
-# links a prebuilt FFmpeg instead (see README).
-[target.'cfg(not(any(target_arch = "wasm32", windows)))'.dependencies]
-fframes = { workspace = true, features = ["h264", "libav-agree-gpl", "build-portable"] }
-
-[features]
-default = ["renderer"]
-renderer = ["fframes/compile-time-svgtree", "fframes/cli"]
-
-[lib]
-crate-type = ["cdylib", "rlib"]
-name = "motion_graphics_example"
-path = "src/lib.rs"
-doctest = false
-
-[[bin]]
-name = "motion_graphics_example_bin"
-path = "src/main.rs"
-required-features = ["renderer"]
-
-[[bin]]
-name = "quote"
-path = "src/bin/quote.rs"
-required-features = ["renderer"]
-
-[[bin]]
-name = "install_scene"
-path = "src/bin/install_scene.rs"
-required-features = ["renderer"]
-
-[lints]
-workspace = true
diff --git a/examples/motion-graphics/editor/.rsw.json b/examples/motion-graphics/editor/.rsw.json
deleted file mode 100644
index afe5bb70..00000000
--- a/examples/motion-graphics/editor/.rsw.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "crates": ["editor-bridge"]
-}
diff --git a/examples/motion-graphics/editor/editor-bridge/Cargo.toml b/examples/motion-graphics/editor/editor-bridge/Cargo.toml
deleted file mode 100644
index 9860478a..00000000
--- a/examples/motion-graphics/editor/editor-bridge/Cargo.toml
+++ /dev/null
@@ -1,16 +0,0 @@
-[package]
-name = "motion-graphics-editor-bridge-example"
-version = "1.3.0"
-edition = "2024"
-
-[lib]
-crate-type = ["cdylib", "rlib"]
-path = "./lib.rs"
-
-[dependencies]
-wasm-bindgen = "0.2.100"
-fframes-editor-controller = { path = "../../../../fframes-editor-controller" }
-motion-graphics-example = { path = "../../", default-features = false }
-
-[lints]
-workspace = true
diff --git a/examples/motion-graphics/editor/editor-bridge/lib.rs b/examples/motion-graphics/editor/editor-bridge/lib.rs
deleted file mode 100644
index a8dede9c..00000000
--- a/examples/motion-graphics/editor/editor-bridge/lib.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-#![cfg(target_arch = "wasm32")]
-
-use fframes_editor_controller::{
- impl_wasm_bridge_for,
- prelude::{lazy_static, *},
-};
-use motion_graphics_example::{MotionGraphicsMedia, QuoteCardVideo};
-
-impl_wasm_bridge_for!(QuoteCardVideo<'static>, MotionGraphicsMedia);
-
-lazy_static! {
- static ref MEDIA: MotionGraphicsMedia = MotionGraphicsMedia::prepare().unwrap();
-}
-
-#[wasm_bindgen]
-pub fn create_wasm_bridge() -> WasmBridge {
- console_error_panic_hook::set_once();
-
- WasmBridge::new(QuoteCardVideo::new(&MEDIA, "PERFORMANCE"), &MEDIA)
-}
diff --git a/examples/motion-graphics/editor/index.html b/examples/motion-graphics/editor/index.html
deleted file mode 100644
index ed1e4d7a..00000000
--- a/examples/motion-graphics/editor/index.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" class="dark" style="color-scheme: dark">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- </head>
- <body>
- <div id="root"></div>
- <script type="module" src="./main.tsx"></script>
- </body>
-</html>
diff --git a/examples/motion-graphics/editor/main.tsx b/examples/motion-graphics/editor/main.tsx
deleted file mode 100644
index ba1ac082..00000000
--- a/examples/motion-graphics/editor/main.tsx
+++ /dev/null
@@ -1,8 +0,0 @@
-import initWasm, { create_wasm_bridge } from "./editor-bridge/pkg";
-import { renderEditor } from "@fframes/editor";
-import "@fframes/editor/dist/fframes-editor.css";
-
-await initWasm();
-const bridge = create_wasm_bridge();
-
-renderEditor(bridge, {});
diff --git a/examples/motion-graphics/editor/package.json b/examples/motion-graphics/editor/package.json
deleted file mode 100644
index a644ac83..00000000
--- a/examples/motion-graphics/editor/package.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "motion-graphics-example",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite"
- },
- "type": "module",
- "dependencies": {
- "@fframes/editor": "workspace:*"
- },
- "devDependencies": {
- "@vitejs/plugin-react": "^4.3.1",
- "typescript": "^4.3.2",
- "vite": "^5.4.2"
- }
-}
diff --git a/examples/motion-graphics/editor/tsconfig.json b/examples/motion-graphics/editor/tsconfig.json
deleted file mode 100644
index ad6b6ad1..00000000
--- a/examples/motion-graphics/editor/tsconfig.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "compilerOptions": {
- "target": "ESNext",
- "lib": ["DOM", "DOM.Iterable", "ESNext"],
- "allowJs": false,
- "skipLibCheck": false,
- "esModuleInterop": false,
- "allowSyntheticDefaultImports": true,
- "strict": true,
- "forceConsistentCasingInFileNames": true,
- "module": "ESNext",
- "moduleResolution": "Node",
- "resolveJsonModule": true,
- "isolatedModules": true,
- "noEmit": true,
- "jsx": "react",
- "types": ["vite/client"]
- },
- "include": ["main.tsx", "editor-bridge/main.tsx"]
-}
diff --git a/examples/motion-graphics/editor/vite.config.ts b/examples/motion-graphics/editor/vite.config.ts
deleted file mode 100644
index fba855bf..00000000
--- a/examples/motion-graphics/editor/vite.config.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import reactRefresh from "@vitejs/plugin-react";
-import { defineConfig } from "vite";
-
-export default defineConfig({
- assetsInclude: ["./media/*", "fframes-editor/*.wasm"],
- server: {
- fs: {
- strict: false,
- },
- },
- optimizeDeps: {
- entries: ["./main.tsx"],
- },
- plugins: [reactRefresh()],
-});
diff --git a/examples/motion-graphics/media/BebasNeue-Regular.ttf b/examples/motion-graphics/media/BebasNeue-Regular.ttf
deleted file mode 100644
index c328c6e0..00000000
Binary files a/examples/motion-graphics/media/BebasNeue-Regular.ttf and /dev/null differ
diff --git a/examples/motion-graphics/media/Inter_24pt-Bold.ttf b/examples/motion-graphics/media/Inter_24pt-Bold.ttf
deleted file mode 100644
index 46b3583c..00000000
Binary files a/examples/motion-graphics/media/Inter_24pt-Bold.ttf and /dev/null differ
diff --git a/examples/motion-graphics/media/Inter_24pt-Regular.ttf b/examples/motion-graphics/media/Inter_24pt-Regular.ttf
deleted file mode 100644
index 6b088a71..00000000
Binary files a/examples/motion-graphics/media/Inter_24pt-Regular.ttf and /dev/null differ
diff --git a/examples/motion-graphics/media/JetBrainsMono-Regular.ttf b/examples/motion-graphics/media/JetBrainsMono-Regular.ttf
deleted file mode 100644
index 711830ed..00000000
Binary files a/examples/motion-graphics/media/JetBrainsMono-Regular.ttf and /dev/null differ
diff --git a/examples/motion-graphics/src/bin/install_scene.rs b/examples/motion-graphics/src/bin/install_scene.rs
deleted file mode 100644
index 04386218..00000000
--- a/examples/motion-graphics/src/bin/install_scene.rs
+++ /dev/null
@@ -1,30 +0,0 @@
-use fframes::StaticMediaProvider;
-use fframes::cli::{self, clap};
-use motion_graphics_example::{InstallSceneVideo, MotionGraphicsMedia, render_options};
-use std::process::ExitCode;
-
-/// Render the install fff scene.
-#[derive(Debug, clap::Args)]
-struct Args {
- #[arg(long, default_value = "libx264", global = true)]
- video_codec: String,
-}
-
-fn main() -> ExitCode {
- let args = cli::parse::<Args>();
- let media = MotionGraphicsMedia::prepare().unwrap();
- let video_codec = args.app.video_codec.clone();
-
- cli::new(
- &InstallSceneVideo::new(&media),
- render_options(&media, Some(&video_codec), false),
- )
- .args(args)
- .backend(fframes::cpu::CpuRenderingBackend {
- concurrency: 1,
- cache_capacity: 10,
- ..Default::default()
- })
- .default_output("install_fff.mp4")
- .run()
-}
diff --git a/examples/motion-graphics/src/bin/quote.rs b/examples/motion-graphics/src/bin/quote.rs
deleted file mode 100644
index fb348a7a..00000000
--- a/examples/motion-graphics/src/bin/quote.rs
+++ /dev/null
@@ -1,43 +0,0 @@
-use fframes::StaticMediaProvider;
-use fframes::cli::{self, clap};
-use motion_graphics_example::{MotionGraphicsMedia, QuoteCardVideo, render_options};
-use std::process::ExitCode;
-
-/// A quote card video with auto-sized text.
-#[derive(Debug, clap::Args)]
-struct Args {
- /// The text, e.g. "PERFORMANCE" or "SPEED\n!=\nFAST" for several lines.
- #[arg(long, default_value = "PERFORMANCE", global = true)]
- text: String,
- #[arg(long, default_value = "libx264", global = true)]
- video_codec: String,
- #[arg(short, long, global = true)]
- concurrency: Option<usize>,
-}
-
-fn main() -> ExitCode {
- let args = cli::parse::<Args>();
- let media = MotionGraphicsMedia::prepare().unwrap();
-
- // A literal \n in the shell argument is a line break.
- let text = args.app.text.replace("\\n", "\n");
- let video_codec = args.app.video_codec.clone();
- let concurrency = args.app.concurrency.unwrap_or(1);
- let output = format!(
- "quote_{}.mp4",
- text.to_lowercase().replace(['\n', ' '], "_")
- );
-
- cli::new(
- &QuoteCardVideo::new(&media, &text),
- render_options(&media, Some(&video_codec), false),
- )
- .args(args)
- .default_output(output)
- .backend(fframes::cpu::CpuRenderingBackend {
- concurrency,
- cache_capacity: 10,
- ..Default::default()
- })
- .run()
-}
diff --git a/examples/motion-graphics/src/install_scene.rs b/examples/motion-graphics/src/install_scene.rs
deleted file mode 100644
index 6c036b24..00000000
--- a/examples/motion-graphics/src/install_scene.rs
+++ /dev/null
@@ -1,299 +0,0 @@
-use fframes::{
- AudioMap, Color, FFramesContext, FontQuery, Frame, Svgr, Transform, animation::Easing,
-};
-use std::sync::OnceLock;
-
-use crate::{MotionGraphicsMedia, SPRING_SNAPPY};
-
-const SHELL_CMD: &str = "curl -L https://dmtrkovalenko.dev/install-fff-mcp.sh | bash";
-const GITHUB_URL: &str = "https://github.com/dmtrKovalenko/fff.nvim";
-
-/// Scene showing "install fff" title with a terminal box and GitHub link.
-pub struct InstallSceneVideo<'a> {
- pub media: &'a MotionGraphicsMedia,
- resolved_cmd_font_size: OnceLock<usize>,
-}
-
-impl std::fmt::Debug for InstallSceneVideo<'_> {
- fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
- f.debug_struct("InstallSceneVideo").finish()
- }
-}
-
-impl<'a> InstallSceneVideo<'a> {
- pub fn new(media: &'a MotionGraphicsMedia) -> Self {
- Self {
- media,
- resolved_cmd_font_size: OnceLock::new(),
- }
- }
-}
-
-const MAX_CMD_FONT_SIZE: usize = 42;
-const MIN_CMD_FONT_SIZE: usize = 16;
-
-/// Largest monospace font size (down to [`MIN_CMD_FONT_SIZE`]) at which
-/// `text` fits into `max_width`. `None` when the font can not be measured
-/// yet (fonts are resolved lazily in the editor), so the caller must not
-/// cache the result.
-fn resolve_monospace_font_size<'a>(
- frame: &mut Frame,
- ctx: &FFramesContext<'a, '_>,
- text: &'a str,
- max_width: usize,
-) -> Option<usize> {
- let mut size = MAX_CMD_FONT_SIZE;
- loop {
- let query = FontQuery {
- family: "JetBrains Mono",
- size,
- weight: 400,
- ..Default::default()
- };
- match frame.text_width(ctx, query, text)? {
- w if w <= max_width => break Some(size),
- _ if size <= MIN_CMD_FONT_SIZE => break Some(MIN_CMD_FONT_SIZE),
- _ => size -= 2,
- }
- }
-}
-
-impl fframes::Video for InstallSceneVideo<'_> {
- const FPS: usize = 60;
- const WIDTH: usize = 1920;
- const HEIGHT: usize = 1080;
- const BACKGROUND_COLOR: Color = Color::BLACK;
-
- fn duration(&self) -> fframes::Duration<'_> {
- fframes::Duration::Seconds(10.0)
- }
-
- fn audio(&self) -> AudioMap<'_> {
- AudioMap::none()
- }
-
- fn render_frame<'a>(&'a self, mut frame: Frame, ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
- // Terminal box has ~80px padding on each side inside 1520px wide box.
- // The size is only cached once the font could actually be measured.
- let cmd_font_size = match self.resolved_cmd_font_size.get() {
- Some(size) => *size,
- None => match resolve_monospace_font_size(&mut frame, ctx, SHELL_CMD, 1360) {
- Some(size) => *self.resolved_cmd_font_size.get_or_init(|| size),
- None => MIN_CMD_FONT_SIZE,
- },
- };
-
- // === Title "INSTALL FFF" ===
- // Scale punch
- let title_scale = frame.animate(&fframes::timeline!(
- at 0.0 => 0.6, animate 1.5_f32 => 1.0, SPRING_SNAPPY,
- ));
- let title_opacity = frame.animate(&fframes::timeline!(
- at 0.0 => 0.3, animate 0.0_f32 => 1.0, Easing::EaseOut,
- ));
- // Title moves up to make room
- let title_y = frame.animate(&fframes::timeline!(
- at 0.0 => 0.5, animate 440.0_f32 => 440.0, Easing::Linear,
- at 0.5 => 1.0, animate 440.0_f32 => 260.0, Easing::EaseInOut,
- ));
-
- // === Terminal box ===
- let box_opacity = frame.animate(&fframes::timeline!(
- at 0.7 => 1.2, animate 0.0_f32 => 1.0, Easing::EaseOut,
- ));
- let box_slide_y = frame.animate(&fframes::timeline!(
- at 0.7 => 1.3, animate 40.0_f32 => 0.0, SPRING_SNAPPY,
- ));
-
- // Terminal box dimensions
- let box_w: f32 = 1520.0;
- let box_h: f32 = 160.0;
- let box_x: f32 = (1920.0 - box_w) / 2.0;
- let box_y: f32 = 420.0;
- let box_r: f32 = 16.0;
-
- // Prompt "$ " prefix
- let prompt_x = box_x + 50.0;
- let text_y = box_y + box_h / 2.0 + 6.0;
-
- // Typing animation: reveal characters over time
- let total_chars = SHELL_CMD.len() as f32;
- let typed_chars = frame.animate(&fframes::timeline!(
- at 1.0 => 2.2, animate 0.0_f32 => total_chars, Easing::Linear,
- ));
- let visible_cmd = &SHELL_CMD[..typed_chars as usize];
-
- // Cursor blink (visible during and after typing)
- let cursor_visible = frame.animate(&fframes::timeline!(
- at 1.0 => 1.1, animate 0.0_f32 => 1.0, Easing::Linear,
- ));
- // Blink cursor after typing is done using frame number
- let blink = if typed_chars >= total_chars {
- if (frame.index / 30).is_multiple_of(2) {
- 1.0_f32
- } else {
- 0.0
- }
- } else {
- cursor_visible
- };
-
- // === GitHub URL ===
- let url_opacity = frame.animate(&fframes::timeline!(
- at 2.5 => 3.0, animate 0.0_f32 => 0.7, Easing::EaseOut,
- ));
- let url_slide_y = frame.animate(&fframes::timeline!(
- at 2.5 => 3.0, animate 30.0_f32 => 0.0, SPRING_SNAPPY,
- ));
-
- // === Accent line below title ===
- let accent_width = frame.animate(&fframes::timeline!(
- at 0.4 => 1.0, animate 0.5_f32 => 600.0, Easing::EaseInOut,
- ));
-
- // === Fade out ===
- let fade_out = frame.animate(&fframes::timeline!(
- at 9.2 => 9.8, animate 1.0_f32 => 0.0, Easing::EaseIn,
- ));
-
- // Cursor x position (after visible text)
- let cursor_query = FontQuery {
- family: "JetBrains Mono",
- size: cmd_font_size,
- weight: 400,
- ..Default::default()
- };
- let prefix_width = frame.text_width(ctx, cursor_query, "$ ").unwrap_or(40) as f32;
- // The typed command starts right after the measured prefix so the
- // cursor below lines up with its end.
- let text_x = prompt_x + prefix_width;
- let typed_width = if visible_cmd.is_empty() {
- 0.0
- } else {
- frame
- .text_width(ctx, cursor_query, visible_cmd)
- .unwrap_or(0) as f32
- };
- let cursor_x = prompt_x + prefix_width + typed_width + 2.0;
-
- fframes::svgr!(
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 1920 1080"
- width={Self::WIDTH}
- height={Self::HEIGHT}
- >
- <rect width={Self::WIDTH} height={Self::HEIGHT} fill="black" />
-
- <g opacity={fade_out}>
- // "INSTALL FFF" title
- <text
- x="960"
- y={title_y}
- opacity={title_opacity}
- font-family="Bebas Neue"
- font-size="200"
- fill="white"
- text-anchor="middle"
- dominant-baseline="central"
- letter-spacing="16"
- transform={Transform {
- translate_x: 960.0 * (1.0 - f64::from(title_scale)),
- translate_y: f64::from(title_y) * (1.0 - f64::from(title_scale)),
- scale: fframes::Scale { x: f64::from(title_scale), y: f64::from(title_scale) },
- ..Default::default()
- }}
- >
- "INSTALL FFF"
- </text>
-
- // Accent line
- <rect
- x={960.0 - accent_width / 2.0}
- y="380"
- width={accent_width}
- height="2"
- fill="#ff8c00"
- opacity="0.6"
- rx="1"
- />
-
- // Terminal box
- <g
- opacity={box_opacity}
- transform={Transform {
- translate_y: f64::from(box_slide_y),
- ..Default::default()
- }}
- >
- // Box background
- <rect
- x={box_x}
- y={box_y}
- width={box_w}
- height={box_h}
- rx={box_r}
- ry={box_r}
- fill="#1a1a2e"
- stroke="#553300"
- stroke-width="1.5"
- />
-
- // Terminal dots
- <circle cx={box_x + 32.0} cy={box_y + 26.0} r="9" fill="#ff5f57" />
- <circle cx={box_x + 58.0} cy={box_y + 26.0} r="9" fill="#febc2e" />
- <circle cx={box_x + 84.0} cy={box_y + 26.0} r="9" fill="#28c840" />
-
- // "$ " prompt
- <text
- x={prompt_x}
- y={text_y}
- font-family="JetBrains Mono"
- font-size={cmd_font_size}
- fill="#ff8c00"
- dominant-baseline="central"
- >
- "$ "
- </text>
-
- // Command text (typed)
- <text
- x={text_x}
- y={text_y}
- font-family="JetBrains Mono"
- font-size={cmd_font_size}
- fill="#e0e0ff"
- dominant-baseline="central"
- >
- {visible_cmd}
- </text>
-
- // Cursor
- <rect
- x={cursor_x}
- y={text_y - cmd_font_size as f32 * 0.45}
- width={cmd_font_size as f32 * 0.55}
- height={cmd_font_size as f32 * 0.9}
- fill="#e0e0ff"
- opacity={blink}
- />
- </g>
-
- // GitHub URL
- <text
- x="960"
- y={680.0 + url_slide_y}
- opacity={url_opacity}
- font-family="JetBrains Mono"
- font-size="32"
- fill="white"
- text-anchor="middle"
- letter-spacing="1"
- >
- {GITHUB_URL}
- </text>
- </g>
- </svg>
- )
- }
-}
diff --git a/examples/motion-graphics/src/lib.rs b/examples/motion-graphics/src/lib.rs
deleted file mode 100644
index 0afbcce3..00000000
--- a/examples/motion-graphics/src/lib.rs
+++ /dev/null
@@ -1,65 +0,0 @@
-pub mod install_scene;
-pub mod motion_graphics;
-pub mod quote_card;
-pub use install_scene::*;
-pub use motion_graphics::*;
-pub use quote_card::*;
-
-use fframes::animation::Easing;
-
-/// The spring every scene in this example uses for its "punch in" motion.
-pub const SPRING_SNAPPY: Easing = Easing::Spring {
- mass: 1.0,
- stiffness: 300.0,
- damping: 26.0,
-};
-
-#[cfg(not(target_arch = "wasm32"))]
-mod render {
- use std::path::PathBuf;
- use std::sync::LazyLock;
-
- use fframes::{EncoderOptions, RenderOptions, fframes_logger::FFramesLoggerVariant};
-
- use crate::MotionGraphicsMedia;
-
- static TMP_FILES_DIRECTORY: LazyLock<PathBuf> = LazyLock::new(|| PathBuf::from("test_render"));
-
- const VIDEO_CODEC_PARAMS: &[(&str, &str)] = &[
- ("crf", "18"),
- ("preset", "slow"),
- ("profile", "high"),
- ("level", "4.2"),
- ("bframes", "0"),
- ("colorprim", "bt709"),
- ("transfer", "bt709"),
- ("colormatrix", "bt709"),
- ];
-
- /// Render options shared by every binary of this example.
- pub fn render_options<'a>(
- media: &'a MotionGraphicsMedia,
- video_codec: Option<&'a str>,
- verbose: bool,
- ) -> RenderOptions<'a, 'a> {
- RenderOptions {
- media: Some(media),
- load_system_fonts: true,
- logger: if verbose {
- FFramesLoggerVariant::Debug
- } else {
- FFramesLoggerVariant::Compact
- },
- tmp_files_directory: Some(&TMP_FILES_DIRECTORY),
- video_encoder_options: EncoderOptions {
- preferred_encoder: video_codec,
- codec_params: Some(VIDEO_CODEC_PARAMS),
- ..Default::default()
- },
- ..Default::default()
- }
- }
-}
-
-#[cfg(not(target_arch = "wasm32"))]
-pub use render::render_options;
diff --git a/examples/motion-graphics/src/main.rs b/examples/motion-graphics/src/main.rs
deleted file mode 100644
index d801bfe6..00000000
--- a/examples/motion-graphics/src/main.rs
+++ /dev/null
@@ -1,30 +0,0 @@
-use fframes::StaticMediaProvider;
-use fframes::cli::{self, clap};
-use fframes_skia_renderer::cli::SkiaRenderers;
-use motion_graphics_example::{MotionGraphicsMedia, MotionGraphicsVideo, render_options};
-use std::process::ExitCode;
-
-#[derive(Debug, clap::Args)]
-struct Args {
- #[arg(long, default_value = "libx264", global = true)]
- video_codec: String,
-}
-
-fn main() -> ExitCode {
- let args = cli::parse::<Args>();
- let media = MotionGraphicsMedia::prepare().unwrap();
- let video_codec = args.app.video_codec.clone();
-
- cli::new(
- &MotionGraphicsVideo { media: &media },
- render_options(&media, Some(&video_codec), false),
- )
- .args(args)
- .backend(fframes::cpu::CpuRenderingBackend {
- concurrency: 1,
- cache_capacity: 10,
- ..Default::default()
- })
- .renderers(SkiaRenderers::default())
- .run()
-}
diff --git a/examples/motion-graphics/src/motion_graphics.rs b/examples/motion-graphics/src/motion_graphics.rs
deleted file mode 100644
index c0e6abf7..00000000
--- a/examples/motion-graphics/src/motion_graphics.rs
+++ /dev/null
@@ -1,144 +0,0 @@
-use fframes::{
- AudioMap, Color, FFramesContext, Frame, Svgr, Transform, animation::Easing, include_media_dir,
-};
-
-use crate::SPRING_SNAPPY;
-
-include_media_dir!(pub struct MotionGraphicsMedia, "examples/motion-graphics/media");
-
-#[derive(Debug)]
-pub struct MotionGraphicsVideo<'a> {
- pub media: &'a MotionGraphicsMedia,
-}
-
-impl fframes::Video for MotionGraphicsVideo<'_> {
- const FPS: usize = 60;
- const WIDTH: usize = 1920;
- const HEIGHT: usize = 1080;
- const BACKGROUND_COLOR: Color = Color::BLACK;
-
- fn duration(&self) -> fframes::Duration<'_> {
- fframes::Duration::Seconds(4.0)
- }
-
- fn audio(&self) -> AudioMap<'_> {
- AudioMap::none()
- }
-
- fn render_frame<'a>(&'a self, frame: Frame, _ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
- // "I FIXED" — punches in with scale, holds, then moves up
- let line1_scale = frame.animate(&fframes::timeline!(
- at 0.2 => 0.6, animate 1.4_f32 => 1.0, SPRING_SNAPPY,
- ));
- let line1_opacity = frame.animate(&fframes::timeline!(
- at 0.2 => 0.5, animate 0.0_f32 => 1.0, Easing::EaseOut,
- ));
- let line1_y = frame.animate(&fframes::timeline!(
- at 0.2 => 0.7, animate 540.0_f32 => 540.0, Easing::Linear,
- at 0.7 => 1.1, animate 540.0_f32 => 280.0, Easing::EaseInOut,
- ));
-
- // "CLAUDE CODE" — smooth glide up from below
- let line2_opacity = frame.animate(&fframes::timeline!(
- at 0.8 => 1.4, animate 0.0_f32 => 1.0, Easing::EaseInOut,
- ));
- let line2_y = frame.animate(&fframes::timeline!(
- at 0.8 => 1.5, animate 720.0_f32 => 620.0, Easing::EaseInOut,
- ));
-
- // Accent line expands from center (from a hairline: SVG skips zero-width rects)
- let accent_width = frame.animate(&fframes::timeline!(
- at 1.0 => 1.6, animate 0.5_f32 => 1000.0, Easing::EaseInOut,
- ));
-
- // "(for real)" — slides up from below into a clip box
- let line3_y = frame.animate(&fframes::timeline!(
- at 1.3 => 1.8, animate 890.0_f32 => 810.0, Easing::EaseOut,
- ));
- let line3_opacity = frame.animate(&fframes::timeline!(
- at 1.3 => 1.8, animate 0.0_f32 => 0.6, Easing::EaseOut,
- ));
-
- // Fade out
- let fade_out = frame.animate(&fframes::timeline!(
- at 3.2 => 3.8, animate 1.0_f32 => 0.0, Easing::EaseIn,
- ));
-
- fframes::svgr!(
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 1920 1080"
- width={Self::WIDTH}
- height={Self::HEIGHT}
- >
- <rect width={Self::WIDTH} height={Self::HEIGHT} fill="black" />
-
- <g opacity={fade_out}>
- // "I FIXED" — scale punch in, then spring up
- <text
- x="960"
- y={line1_y}
- opacity={line1_opacity}
- font-family="Inter 24pt"
- font-size="340"
- font-weight="700"
- fill="white"
- text-anchor="middle"
- dominant-baseline="central"
- letter-spacing="20"
- transform={Transform {
- translate_x: 960.0 * (1.0 - f64::from(line1_scale)),
- translate_y: f64::from(line1_y) * (1.0 - f64::from(line1_scale)),
- scale: fframes::Scale { x: f64::from(line1_scale), y: f64::from(line1_scale) },
- ..Default::default()
- }}
- >
- "I FIXED"
- </text>
-
- // "CLAUDE CODE" — springs up from below
- <text
- x="960"
- y={line2_y}
- opacity={line2_opacity}
- font-family="Bebas Neue"
- font-size="280"
- fill="white"
- text-anchor="middle"
- dominant-baseline="central"
- letter-spacing="14"
- >
- "CLAUDE CODE"
- </text>
-
- // Accent line
- <rect
- x={960.0 - accent_width / 2.0}
- y="455"
- width={accent_width}
- height="3"
- fill="white"
- opacity="0.25"
- rx="2"
- />
-
- // "(for real)" — slides up with fade
- <text
- x="960"
- y={line3_y}
- opacity={line3_opacity}
- font-family="Inter 24pt"
- font-size="60"
- font-weight="300"
- font-style="italic"
- fill="white"
- text-anchor="middle"
- letter-spacing="6"
- >
- "(for real)"
- </text>
- </g>
- </svg>
- )
- }
-}
diff --git a/examples/motion-graphics/src/quote_card.rs b/examples/motion-graphics/src/quote_card.rs
deleted file mode 100644
index a3a416d2..00000000
--- a/examples/motion-graphics/src/quote_card.rs
+++ /dev/null
@@ -1,171 +0,0 @@
-use std::sync::OnceLock;
-
-use fframes::{
- AudioMap, Color, FFramesContext, FontQuery, Frame, Svgr, Transform, animation::Easing,
-};
-
-use crate::{MotionGraphicsMedia, SPRING_SNAPPY};
-
-const MAX_FONT_SIZE: usize = 500;
-const MIN_FONT_SIZE: usize = 60;
-const HORIZONTAL_PADDING: usize = 200;
-const TARGET_WIDTH: usize = 1920 - HORIZONTAL_PADDING * 2;
-const LINE_HEIGHT_RATIO: f32 = 0.9;
-
-/// A single giant word/phrase that fills the entire frame.
-/// Supports multiple lines separated by `\n`.
-/// Meant to render behind a speaker as a background emphasis card.
-pub struct QuoteCardVideo<'a> {
- pub media: &'a MotionGraphicsMedia,
- pub text: &'a str,
- resolved_font_sizes: OnceLock<Vec<usize>>,
-}
-
-impl std::fmt::Debug for QuoteCardVideo<'_> {
- fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
- f.debug_struct("QuoteCardVideo")
- .field("text", &self.text)
- .finish()
- }
-}
-
-impl<'a> QuoteCardVideo<'a> {
- pub fn new(media: &'a MotionGraphicsMedia, text: &'a str) -> Self {
- Self {
- media,
- text,
- resolved_font_sizes: OnceLock::new(),
- }
- }
-}
-
-/// Largest font size (down to [`MIN_FONT_SIZE`]) at which `line` fits into
-/// [`TARGET_WIDTH`]. `None` when the font can not be measured yet (fonts are
-/// resolved lazily in the editor), so the caller must not cache the result.
-fn resolve_font_size<'a>(
- frame: &mut Frame,
- ctx: &FFramesContext<'a, '_>,
- line: &'a str,
-) -> Option<usize> {
- let mut size = MAX_FONT_SIZE;
- loop {
- let query = FontQuery {
- family: "Bebas Neue",
- size,
- weight: 400,
- ..Default::default()
- };
- match frame.text_width(ctx, query, line)? {
- w if w <= TARGET_WIDTH => break Some(size),
- _ if size <= MIN_FONT_SIZE => break Some(MIN_FONT_SIZE),
- _ => size -= 10,
- }
- }
-}
-
-impl fframes::Video for QuoteCardVideo<'_> {
- const FPS: usize = 60;
- const WIDTH: usize = 1920;
- const HEIGHT: usize = 1080;
- const BACKGROUND_COLOR: Color = Color::BLACK;
-
- fn duration(&self) -> fframes::Duration<'_> {
- fframes::Duration::Seconds(3.0)
- }
-
- fn audio(&self) -> AudioMap<'_> {
- AudioMap::none()
- }
-
- fn render_frame<'a>(&'a self, mut frame: Frame, ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
- let lines: Vec<&str> = self.text.lines().collect();
- // Measuring text is only cached once the fonts could actually be
- // measured; until then every line falls back to the minimum size.
- let font_sizes = match self.resolved_font_sizes.get() {
- Some(sizes) => sizes.clone(),
- None => match lines
- .iter()
- .map(|line| resolve_font_size(&mut frame, ctx, line))
- .collect::<Option<Vec<usize>>>()
- {
- Some(sizes) => self.resolved_font_sizes.get_or_init(|| sizes).clone(),
- None => vec![MIN_FONT_SIZE; lines.len()],
- },
- };
-
- // Calculate total block height to center vertically
- let total_height: f32 = font_sizes
- .iter()
- .map(|s| *s as f32 * LINE_HEIGHT_RATIO)
- .sum();
- let start_y = 540.0 - total_height / 2.0;
-
- // Scale punch in (start big, spring down to 1.0)
- let scale = frame.animate(&fframes::timeline!(
- at 0.0 => 0.8, animate 1.6_f32 => 1.0, SPRING_SNAPPY,
- ));
-
- // Slide up from below
- let slide_y = frame.animate(&fframes::timeline!(
- at 0.0 => 0.6, animate 80.0_f32 => 0.0, SPRING_SNAPPY,
- ));
-
- // Fade in
- let opacity = frame.animate(&fframes::timeline!(
- at 0.0 => 0.3, animate 0.0_f32 => 1.0, Easing::EaseOut,
- ));
-
- // Fade out
- let fade_out = frame.animate(&fframes::timeline!(
- at 2.2 => 2.8, animate 1.0_f32 => 0.0, Easing::EaseIn,
- ));
-
- let mut y_offset = start_y;
- let text_elements: Vec<_> = lines
- .iter()
- .zip(font_sizes.iter())
- .map(|(line, &size)| {
- let line_y = y_offset + size as f32 * LINE_HEIGHT_RATIO;
- y_offset = line_y;
- let y = line_y;
-
- fframes::svgr!(
- <text
- x="960"
- y={y}
- font-family="Bebas Neue"
- font-size={size}
- fill="white"
- text-anchor="middle"
- letter-spacing="20"
- >
- {*line}
- </text>
- )
- })
- .collect();
-
- fframes::svgr!(
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 1920 1080"
- width={Self::WIDTH}
- height={Self::HEIGHT}
- >
- <rect width={Self::WIDTH} height={Self::HEIGHT} fill="black" />
-
- <g
- opacity={opacity * fade_out}
- transform={Transform {
- translate_x: 960.0 * (1.0 - f64::from(scale)),
- translate_y: 540.0 * (1.0 - f64::from(scale)) + f64::from(slide_y),
- scale: fframes::Scale { x: f64::from(scale), y: f64::from(scale) },
- ..Default::default()
- }}
- >
- {text_elements}
- </g>
- </svg>
- )
- }
-}
diff --git a/examples/neon-triangle/README.md b/examples/neon-triangle/README.md
new file mode 100644
index 00000000..6f4eb457
--- /dev/null
+++ b/examples/neon-triangle/README.md
@@ -0,0 +1,8 @@
+# neon-triangle
+
+A minimal shader clip built to make banding and motion artifacts easy to spot.
+
+https://github.com/user-attachments/assets/8f15791f-0dc4-4589-bec4-c63e4ec0f912
+
+From the repository root, `just run neon-triangle` opens it in the editor with live reload and
+`just render neon-triangle` writes the full video to a file.
diff --git a/examples/pixel-memory/README.md b/examples/pixel-memory/README.md
new file mode 100644
index 00000000..4caf885b
--- /dev/null
+++ b/examples/pixel-memory/README.md
@@ -0,0 +1,8 @@
+# pixel-memory
+
+My dog's memorial video generator (totally randomized).
+
+https://github.com/user-attachments/assets/fdddfc5e-72f2-4e5f-8ebe-892b9025ee1f
+
+From the repository root, `just run pixel-memory` opens it in the editor with live reload and
+`just render pixel-memory` writes the full video to a file.
diff --git a/examples/podcast/README.md b/examples/podcast/README.md
new file mode 100644
index 00000000..87a8806b
--- /dev/null
+++ b/examples/podcast/README.md
@@ -0,0 +1,8 @@
+# podcast
+
+An audio visualization for a podcast placeholder video.
+
+https://github.com/user-attachments/assets/602f32c6-4c4c-4d07-b5e9-da5e9dfe80ad
+
+From the repository root, `just run podcast` opens it in the editor with live reload and
+`just render podcast` writes the full video to a file.
diff --git a/examples/shader-mode/README.md b/examples/shader-mode/README.md
index 2ecc827f..57800818 100644
--- a/examples/shader-mode/README.md
+++ b/examples/shader-mode/README.md
@@ -4,6 +4,10 @@ A 932-frame, 1920×1080 Skia GPU example with 18 shaders, a 3D panel wall,
native preview footage and an animated fframes wordmark. Preview and rendering
run at 30 fps, using Metal on macOS and Vulkan elsewhere.
+https://github.com/user-attachments/assets/53bed61f-6478-471b-81c1-125a3054ee18
+
+The preview is silent: the soundtrack is not in the repository.
+
## Run
Place the soundtrack at `dynamic_media/reference-audio.wav`. To show the recorded
diff --git a/examples/shaders/README.md b/examples/shaders/README.md
new file mode 100644
index 00000000..87969513
--- /dev/null
+++ b/examples/shaders/README.md
@@ -0,0 +1,8 @@
+# shaders
+
+GPU shader layers composed with SVG: an SkSL background and a Shadertoy raymarcher clipped into a card.
+
+https://github.com/user-attachments/assets/2a97f8d0-abb9-4b24-9149-cde560b1efcb
+
+From the repository root, `just run shaders` opens it in the editor with live reload and
+`just render shaders` writes the full video to a file.
diff --git a/examples/signal-lab/README.md b/examples/signal-lab/README.md
new file mode 100644
index 00000000..c3ca34a2
--- /dev/null
+++ b/examples/signal-lab/README.md
@@ -0,0 +1,8 @@
+# signal-lab
+
+A 24 second motion study: product UI, data storytelling and a technical explainer.
+
+https://github.com/user-attachments/assets/d03e5fe7-4782-4a67-9571-e435ed367477
+
+From the repository root, `just run signal-lab` opens it in the editor with live reload and
+`just render signal-lab` writes the full video to a file.
diff --git a/examples/svg-in-3d/README.md b/examples/svg-in-3d/README.md
new file mode 100644
index 00000000..5ae87b8d
--- /dev/null
+++ b/examples/svg-in-3d/README.md
@@ -0,0 +1,10 @@
+# svg-in-3d
+
+An svgr UI on the screen of a turning 3D monitor, showing a 3D cube with the svgr logo: four nested levels of SVG and 3D that never leave the GPU.
+
+https://github.com/user-attachments/assets/09432a37-4bd9-42ac-b068-ce92f59695af
+
+```sh
+cargo run --release -p svg-in-3d-example -- render # 3D and Skia on the GPU -> out.mp4
+cargo run --release -p svg-in-3d-example -- --cpu render # everything on the CPU
+```
diff --git a/examples/teej-podcast/README.md b/examples/teej-podcast/README.md
new file mode 100644
index 00000000..3fe0ccda
--- /dev/null
+++ b/examples/teej-podcast/README.md
@@ -0,0 +1,8 @@
+# teej-podcast
+
+Teej's podcast with video and chapters visualization.
+
+https://github.com/user-attachments/assets/fb57ae04-f908-4787-9ef0-bd440d36b1a4
+
+From the repository root, `just run teej-podcast` opens it in the editor with live reload and
+`just render teej-podcast` writes the full video to a file.
diff --git a/examples/teej-podcast/src/main.rs b/examples/teej-podcast/src/main.rs
index 0a95d1eb..4f58f13e 100644
--- a/examples/teej-podcast/src/main.rs
+++ b/examples/teej-podcast/src/main.rs
@@ -40,12 +40,7 @@ fn main() -> ExitCode {
qcompress: 0.6,
max_qdiff: 4,
gop_size: 24,
- codec_params: Some(&[
- ("crf", "23"),
- ("preset", "slow"),
- ("tune", "film"),
- ("bframes", "3"),
- ]),
+ codec_params: Some(&[("crf", "23"), ("preset", "slow"), ("bframes", "3")]),
..Default::default()
},
..Default::default()
diff --git a/examples/tiktok/README.md b/examples/tiktok/README.md
new file mode 100644
index 00000000..97cbe02a
--- /dev/null
+++ b/examples/tiktok/README.md
@@ -0,0 +1,8 @@
+# tiktok
+
+A TikTok-like vertical video.
+
+https://github.com/user-attachments/assets/20dda3c9-8c44-4ea9-9663-860527d635be
+
+From the repository root, `just run tiktok` opens it in the editor with live reload and
+`just render tiktok` writes the full video to a file.
diff --git a/justfile b/justfile
index 675b1428..6bc0fead 100644
--- a/justfile
+++ b/justfile
@@ -85,7 +85,7 @@ check-wasm example:
cd examples/{{example}}/editor/editor-bridge && cargo check --lib --target wasm32-unknown-unknown
check-examples:
- just check-wasm hello-world && just check-wasm podcast && just check-wasm tiktok && just check-wasm beta && just check-wasm low-poly-art && just check-wasm teej-podcast && just check-wasm motion-graphics && just check-wasm shaders && just check-wasm neon-triangle
+ just check-wasm hello-world && just check-wasm podcast && just check-wasm tiktok && just check-wasm beta && just check-wasm low-poly-art && just check-wasm teej-podcast && just check-wasm shaders && just check-wasm neon-triangle
install-ffmpeg version:
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a7fc1483..8a0d11de 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -123,22 +123,6 @@ importers:
specifier: ^5.4.2
- examples/motion-graphics/editor:
- dependencies:
- '@fframes/editor':
- specifier: workspace:*
- version: link:../../../fframes-editor
- devDependencies:
- '@vitejs/plugin-react':
- specifier: ^4.3.1
- typescript:
- specifier: ^4.3.2
- version: 4.9.5
- vite:
- specifier: ^5.4.2
-
examples/neon-triangle/editor:
dependencies:
'@fframes/editor':
diff --git a/render-bench/Cargo.toml b/render-bench/Cargo.toml
index e57faf99..bb76b5c5 100644
--- a/render-bench/Cargo.toml
+++ b/render-bench/Cargo.toml
@@ -22,7 +22,6 @@ conference-splash-screen-example = { path = "../examples/conference-splash-scree
hello-world-example = { path = "../examples/hello-world" }
low-poly-art-example = { path = "../examples/low-poly-art" }
marketing-example = { path = "../examples/marketing" }
-motion-graphics-example = { path = "../examples/motion-graphics" }
pixel-example = { path = "../examples/pixel-memory" }
podcast-example = { path = "../examples/podcast" }
teej_podcast_example = { path = "../examples/teej-podcast" }
diff --git a/render-bench/src/main.rs b/render-bench/src/main.rs
index a3297b04..1cd422af 100644
--- a/render-bench/src/main.rs
+++ b/render-bench/src/main.rs
@@ -657,28 +657,6 @@ fn main() {
bench.run(Spec::new("marketing", 30), &video, &media);
}
- {
- use motion_graphics_example::{
- InstallSceneVideo, MotionGraphicsMedia, MotionGraphicsVideo, QuoteCardVideo,
- };
- let media = MotionGraphicsMedia::prepare().unwrap();
- bench.run(
- Spec::new("motion-graphics", 10),
- &MotionGraphicsVideo { media: &media },
- &media,
- );
- bench.run(
- Spec::new("motion-graphics-install", 10),
- &InstallSceneVideo::new(&media),
- &media,
- );
- bench.run(
- Spec::new("motion-graphics-quote", 10),
- &QuoteCardVideo::new(&media, "SPEED\n!=\nFAST"),
- &media,
- );
- }
-
if bench.wants("podcast") {
let folder = MediaDirectory::read_folder(root.join("examples/podcast/media")).unwrap();
let media = folder.process_media_source().unwrap();
diff --git a/scripts/e2e.mjs b/scripts/e2e.mjs
index 7bf68034..f249fd4d 100644
--- a/scripts/e2e.mjs
+++ b/scripts/e2e.mjs
@@ -42,10 +42,9 @@ const examples = [
{ dir: "hello-world", pkg: "hello-world-example", bin: "hello_world_example_bin", frames: "5s,20s" },
{ dir: "low-poly-art", pkg: "low-poly-art-example", bin: "low_poly_art_example_bin", frames: "Owl@3s,Owl@8s" },
// tiger.json at four points of its loop: crouching, the take-off, in the air, landing
- { dir: "lottie-launch", pkg: "lottie-launch", bin: "lottie-launch", frames: "Code@2s,[email protected],[email protected],[email protected]" },
+ { dir: "lottie", pkg: "lottie", bin: "lottie", frames: "Code@2s,[email protected],[email protected],[email protected]" },
{ dir: "made-of-motion", pkg: "made-of-motion", bin: "made-of-motion", frames: "Portrait@50%,Orbit@50%,Fframes@50%", skia: true },
{ dir: "marketing", pkg: "marketing-example", bin: "marketing-example", frames: "3s,10s,18s" },
- { dir: "motion-graphics", pkg: "motion-graphics-example", bin: "motion_graphics_example_bin", frames: "1s,3s" },
{ dir: "neon-triangle", pkg: "neon-triangle-example", bin: "neon_triangle_example_bin", frames: "2s,4s", skia: true },
{ dir: "pixel-memory", pkg: "pixel-example", bin: "pixel_memory_example_bin", frames: "[email protected],ParallaxGridPhotos[0]@7s,SinglePhotoFloat[0]@50%,SpiralHeapGallery@50%", args: ["--song", "revenge.mp3", "--seed", "48"] },
{ dir: "podcast", pkg: "podcast-example", bin: "podcast_example_bin", frames: "10s,40s" },
diff --git a/skills/fframes-video/references/api.md b/skills/fframes-video/references/api.md
index 08cee905..a39a99f4 100644
--- a/skills/fframes-video/references/api.md
+++ b/skills/fframes-video/references/api.md
@@ -1,7 +1,6 @@
# fframes API cheat sheet
-Examples in the fframes repository worth reading: [motion-graphics](https://github.com/dmtrKovalenko/fframes/tree/main/examples/motion-graphics)
-(springs, text fitting), [beta](https://github.com/dmtrKovalenko/fframes/tree/main/examples/beta) (scenes, images), [audio-announce](https://github.com/dmtrKovalenko/fframes/tree/main/examples/audio-announce)
+Examples in the fframes repository worth reading: [beta](https://github.com/dmtrKovalenko/fframes/tree/main/examples/beta) (scenes, images), [audio-announce](https://github.com/dmtrKovalenko/fframes/tree/main/examples/audio-announce)
(audio visualisation, video sources), [teej-podcast](https://github.com/dmtrKovalenko/fframes/tree/main/examples/teej-podcast) (Skia backend, stereo
media loaded at runtime), [shaders](https://github.com/dmtrKovalenko/fframes/tree/main/examples/shaders) and [neon-triangle](https://github.com/dmtrKovalenko/fframes/tree/main/examples/neon-triangle) (GPU
shaders).
diff --git a/skills/fframes-video/references/design.md b/skills/fframes-video/references/design.md
index 3cac19f3..90952ba2 100644
--- a/skills/fframes-video/references/design.md
+++ b/skills/fframes-video/references/design.md
@@ -51,8 +51,7 @@ problems already looks finished.
- Weights: title 600-800, body 400-500. Letter-spacing: `-1` to `-3` for big titles,
`+2` to `+6` for small caps labels.
- Max ~8 words per line, ~3 lines per card. Measure with `frame.text_width` or wrap with
- `frame.text_break_lines`; shrink to fit with a loop over sizes (as in the
- [motion-graphics quote card](https://github.com/dmtrKovalenko/fframes/tree/main/examples/motion-graphics/src/quote_card.rs)) and memoize the result
+ `frame.text_break_lines`; shrink to fit with a loop over sizes and memoize the result
in a `OnceLock`. Generated projects include a `FittedSizes` helper that does this.
## Color
diff --git a/typos.toml b/typos.toml
index 5ac3d499..6245fb27 100644
--- a/typos.toml
+++ b/typos.toml
@@ -1,7 +1,7 @@
[files]
# Keep the upstream minified player unchanged; its identifiers are not prose.
# The Lottie files are third-party animations: their layer names are not prose either.
-extend-exclude = ["*.snapshot.txt", "sessions.json", "landing/the-why/vendor/hls.min.js", "landing/vendor/hls.min.js", "examples/lottie-launch/media/*.json"]
+extend-exclude = ["*.snapshot.txt", "sessions.json", "landing/the-why/vendor/hls.min.js", "landing/vendor/hls.min.js", "examples/lottie/media/*.json"]
[default.extend-words]
hd = "hd"
# "PNGs" is split into "PN" + "Gs"