I maintain Corvus, an open-source reverse proxy with a
built-in web application firewall. People kept asking for "a quick video", and I had two problems:
I don't want to be on camera, and I don't want a video that's out of date after the next release.

So the video is a build artifact. A handful of scripts start a demo instance, fill it with traffic,
click through the console, read a script with a local AI voice and put it all together with ffmpeg.
Here's the result:

Everything ran on one Windows laptop (RTX 3050 Ti, 4 GB) and cost nothing. Here's how each part
works, and what tripped me up.

1. A demo instance that looks alive

An empty dashboard makes a bad video. I started Corvus with Docker Compose next to three
traefik/whoami containers as fake backends, seeded it through
its HTTP API (five sites, three security rules, an access queue with 50 seats) and then ran a small
Python traffic generator:

  • visitors: browser user agents fetching normal pages,
  • scanners: /.env, /.git/config, /wp-login.php, ../../etc/passwd, SQL injection in the query string, from addresses that change every few requests,
  • a brute-force bot posting to /login,
  • 90 shoppers keeping sessions open on the shop, so the waiting room fills up.

Two details made it believable:

  • Every client has its own IP. The generator sends X-Forwarded-For and the Docker network is configured as a trusted proxy, so the gateway sees hundreds of clients instead of one. I only used the documentation ranges from RFC 5737 (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24), so no real address appears on screen.
  • Let it run first. After ten minutes the charts are full, automatic bans have kicked in and the alerts banner has something to say.

2. Recording through the Chrome DevTools Protocol

No screen recorder and no Playwright: Node 22 has fetch and WebSocket built in, which is enough
to drive headless Chrome over the DevTools Protocol. The useful calls:

await send("Emulation.setDeviceMetricsOverride", { width: 1600, height: 900, deviceScaleFactor: 1.2, mobile: false }); await send("Page.startScreencast", { format: "jpeg", quality: 92, maxWidth: 1920, maxHeight: 1080 }); on("Page.screencastFrame", (p) => { save(p.data, p.metadata.timestamp); // keep the timestamp! send("Page.screencastFrameAck", { sessionId: p.sessionId }); }); 

A 1600×900 viewport at 1.2× scale gives 1920×1080 frames with text a little larger than a normal
desktop, which reads better on a phone.

The "user" is JavaScript injected into the page: find a button by its text, move a fake cursor (a
blue dot with a CSS transition) to it, pulse it, click. Typing sets the input's value one character
at a time through the native setter, so React notices:

const set = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value").set; for (const ch of text) { v += ch; set.call(el, v); el.dispatchEvent(new Event("input", { bubbles: true })); await sleep(50); } 

The intro and outro cards (a terminal full of attack requests, the logo, the links) are plain HTML
pages with CSS animations, recorded the same way.

Things that cost me an hour each

  • Screencast frames only arrive when something changes, so you get a variable frame rate. Keep each frame's timestamp and give it to ffmpeg's concat demuxer as duration, then resample with fps=30. Otherwise static parts are skipped and the clip is too short.
  • Showing other sites through the gateway. I needed the browser to open http://shop.example.com and land on the local gateway. --host-resolver-rules gave me a blank page; what works is --proxy-server=http=127.0.0.1:29080 (HTTP only, so the console on HTTPS is not proxied). And Chrome quietly upgraded the URL to HTTPS until I added --disable-features=HttpsUpgrades,HttpsFirstBalancedModeAutoEnable.
  • Language. The waiting page came out in Korean, because that's my system language. --lang, Emulation.setLocaleOverride and Network.setUserAgentOverride with acceptLanguage fixed it.
  • Freezing a moment. The bot challenge page solves its proof of work in about a second, too fast to show. Fetch.enable with a pattern for the verification request, and never answering the paused request, keeps the "Checking your browser" page on screen as long as the scene needs.

3. A voice that isn't mine

Kokoro is an 82M-parameter open-weight TTS model (Apache-2.0)
that runs comfortably on a small GPU, or on the CPU. I rendered the same three sentences in seven
voices, picked am_michael, and generated one WAV per scene:

from kokoro import KPipeline pipe = KPipeline(lang_code="a") # American English audio = np.concatenate([a for _, _, a in pipe(text, voice="am_michael")]) sf.write(f"audio/{scene}.wav", audio, 24000) 

The narration decides the timing, not the other way round: each scene is recorded for the length of
its voice clip plus half a second before and 0.7 s after. Change a sentence, re-render that scene,
and everything still lines up.

Two small things helped the voice: write numbers and domains the way they should be spoken
("corvus gateway dot org"), and keep sentences short. A ten-word sentence sounds natural; a
thirty-word one sounds like a train announcement.

(I installed it in its own venv. With PyTorch 2.5, a recent transformers silently disables
PyTorch and Kokoro fails with a confusing "requires the PyTorch library" error; pinning
transformers<4.50 fixed it.)

4. Captions and sound with ffmpeg

  • Captions: the scene text, split into sentences, timed in proportion to their length, written as an ASS file with a semi-transparent box, burned in with -vf subtitles=captions.ass. The same cues go into an .srt for YouTube.
  • Sound effects: no music, just a soft whoosh between scenes and a quiet tick on every click. Both are generated with NumPy (filtered noise with an envelope, a decaying 1.8 kHz sine), so there is nothing to license. The recorder logs a console.debug on every click and listens to Runtime.consoleAPICalled, which gives exact click times for the ticks.
  • Mixing is NumPy too: an empty array the length of the video, each clip added at its offset.

What I'd do differently

  • The frame rate. Headless screencast delivered 10–15 frames per second when the page changed, which makes the cursor a little steppy. For the next video I'll try capturing with HeadlessExperimental.beginFrame for a fixed frame rate.
  • A script first, then the demo data. I wrote the narration, then noticed the charts didn't show what it described. Seed the data for the story you want to tell.

The whole thing is about 800 lines of Python, JavaScript and HTML, and a new version of the video is one
command away. If you maintain an open-source project and avoid video because of the editing, try
treating it like a test: a fixture, a script, and an artifact at the end.

Corvus is free and open source: corvusgateway.org ·
GitHub. Questions about the pipeline are welcome in the
comments.