Skip to content

The swiss army knife of lossless video/audio editing

Document feature media recording in AGENTS.md

Claude9d89bcdcb874
diff --git a/AGENTS.md b/AGENTS.md
index 4a3ecf88..dc2302b7 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -23,3 +23,16 @@ Only the bundled FFmpeg version (`script/downloadFfmpeg.ts`) is supported. Don't
When helping with a release, follow [RELEASING.md](./RELEASING.md), including the sections written for agents (store release notes, release announcement).
Never submit to a store, publish a release or post an announcement without the user's approval of the exact text first.
+
+## Feature media
+
+`script/featureMedia.ts` records screenshots and a short video of a feature demo, for social media posts and the website. Each demo is a scenario in `script/featureMedia/scenarios.ts` that drives the app through the HTTP API. It runs on Linux under Xvfb (e.g. in a cloud session):
+
+```bash
+yarn build && yarn download-ffmpeg-linux-x64
+xvfb-run -a -s "-screen 0 1280x800x24" node script/featureMedia.ts cut-segments
+```
+
+The clips come from `dist/feature-media-clips`, or are downloaded from `FEATURE_MEDIA_CLIPS_URL`. The results go to `dist/feature-media`. Look at the screenshots to check that the demo did what it should. Never commit clips or results.
+
+When a user-visible feature lands on master, suggest adding a scenario for it and recording it.
diff --git a/script/featureMedia.ts b/script/featureMedia.ts
index f16b7aea..509921fe 100644
--- a/script/featureMedia.ts
+++ b/script/featureMedia.ts
@@ -1,4 +1,4 @@
-// Records screenshots and a video of a feature demo (see script/featureMedia/scenarios.ts and RELEASING.md "Feature media").
+// Records screenshots and a video of a feature demo (see script/featureMedia/scenarios.ts and AGENTS.md "Feature media").
// Linux only (captures the X display), e.g. in a cloud session. Run `yarn build` and `yarn download-ffmpeg-linux-x64` first, then:
// xvfb-run -a -s "-screen 0 1280x800x24" node script/featureMedia.ts <scenario> [--clips dir]
import assert from 'node:assert';
diff --git a/script/featureMedia/scenarios.ts b/script/featureMedia/scenarios.ts
index 2d5b65ad..99ea20a9 100644
--- a/script/featureMedia/scenarios.ts
+++ b/script/featureMedia/scenarios.ts
@@ -1,6 +1,6 @@
// Feature demo scenarios for script/featureMedia.ts. Each one drives the app through the HTTP API (see docs/api.md):
// `action` runs a keyboard action by name, `shot` saves a screenshot and `wait` pauses so the video shows each step.
-// Keep each scenario short (10-30 s of video) and about one feature from docs/features.md.
+// Keep each scenario short (10-30 s of video) and about one feature.
import type { Scenario } from './types.ts';
const scenarios: Record<string, Scenario> = {