The "video as a build artifact" framing is what sold me — especially letting the narration set the timing, so re-recording one scene doesn't shift everything else. The CDP details are the useful part: the variable-frame-rate screencast trap and the --proxy-server workaround for shop.example.com are exactly the kind of thing that costs an hour each. Did the 10–15 fps screencast ever make the fake cursor look laggy in the final video, or did the fps=30 resample smooth that out enough?
Thank you so much for reading it this closely, and for the kind words. Honestly, your question points at the part I'm least happy with.
The fps=30 resample doesn't really smooth anything. It only repeats frames to fill the gaps, so the cursor still moves at whatever rate the screencast delivered, and if you watch closely you can see it step a little. What helped a bit was making the cursor's CSS transition fairly slow (about half a second), so each move still gets several frames. I also tried minterpolate, but it smeared the text in the UI, so I went back.
If I make another version, I'd like to try one of these:
HeadlessExperimental.beginFrame, to render at a steady 30 fps instead of taking whatever the screencast sends
leaving the cursor out of the recording and drawing it afterwards with ffmpeg from the logged positions, so only the cursor needs to be smooth
I haven't tried either yet, so I'm not sure which works better in practice. If you've done something similar, I'd really appreciate any tips. Thanks again for the thoughtful question!
Media tools that run 100% in your browser. Convert, trim, denoise, vocal split, subtitles — your files never leave your device. Built with FFmpeg WASM, ONNX & transformers.js.
The "keep the timestamp!" fix is the exact seam where ffmpeg.wasm falls over — buffering 1080p JPEGs hits the wasm32 4 GiB wall fast. We went the other way on captions: local Whisper word timestamps instead of timing by sentence length, which kills the drift on long pauses. Did you measure the end-to-end render time? Curious how much is capture vs assembly.
Thank you so much for reading the post and for taking the time to share your experience, I really appreciate it!
The ffmpeg.wasm limit is a great point, and something I hadn't thought about. I think I just got lucky: everything runs locally with native ffmpeg, and the frames go straight to disk as JPEGs, so nothing has to stay in memory.
Your question made me curious too, so I timed a full rebuild today. For the 1:43 video it took about 4 min 50 s on my laptop (RTX 3050 Ti):
TTS with Kokoro, including model load: 41 s
capture: 157 s (103 s is the video itself in real time, the rest is mostly starting a fresh Chrome for each of the 12 parts)
turning frames into clips: 24 s
final assembly with audio, captions and encoding: 64 s
So capture is a bit over half, and there's clearly room to improve by reusing one browser.
And thank you for the Whisper tip! Word timestamps sound much better than my sentence-length guess. You're right about the drift, too: in a couple of scenes the caption moves on slightly before the voice does. I'd love to try your approach. If you've written about your setup anywhere, I'd be happy to read it.
Media tools that run 100% in your browser. Convert, trim, denoise, vocal split, subtitles — your files never leave your device. Built with FFmpeg WASM, ONNX & transformers.js.
Thanks for timing it — the split is telling. The 103s of "real-time playback" is just your 1:43 runtime playing back, which is the floor for screencast capture; the avoidable part is launching a fresh Chrome for each of the 12 parts. Reusing one browser/context across parts should eat most of that overhead.
On the captions: the drift fix is letting Whisper predict where each phrase actually starts and stops, rather than dividing a sentence's duration by its length — so a long pause doesn't drag everything after it out of sync. Haven't written this one up yet, but it's on our list. And your native-ffmpeg path sidesteps the wasm memory wall entirely since frames go straight to disk — a real perk of not being in a tab.
Thank you, that's a really helpful way to look at it. You're right, the real-time part is just the floor, and the per-part Chrome launches are pure overhead. Reusing one browser across all the parts is going on my list for the next version, it should be an easy win.
And thanks for explaining the Whisper approach. Letting it find where each phrase actually starts makes so much more sense than my "split the sentence by its length" shortcut, especially with pauses. I'd really enjoy reading it if you do write it up someday, please share the link if you do!
I really appreciate you taking the time for these thoughtful comments. It's been a fun conversation, and I learned a lot from it.
DemoVexa is a desktop app that reads your code and turns it into finished product demo videos, with a script, voiceover and your real UI animated. No screen recording.
Running the traffic generator for ten minutes before recording is the step I'd copy first, and sticking to the RFC 5737 ranges means no real address ever lands on screen. On your script first, then the data note, one cheap guard: before each scene records, have the script ask the API for the numbers the narration mentions, like bans or seats in the queue, and fail the build if they don't match. Then a stale fixture can't contradict the voice.
Thank you, this is a really good one, and you made me go and look at my recorder.
The narration deliberately avoids numbers ("addresses that keep attacking are banned", not "42 addresses"), partly so it can't go stale. But your point still applies to what's on screen: the recorder currently does things like if (row) point(row), so if the bans table were empty, it would happily record an empty table while the voice says "banned automatically". Nothing would fail; the video would just quietly be wrong.
So I'll take your guard and adapt it: each scene in scenes.json gets a precondition, checked against the API right before it records. For example, at least a few active bans for the protect scene, blocked events for the monitor scene, and visitors actually waiting for the queue scene. If one doesn't hold, the build stops. It's a few lines and it turns "looks fine to me" into something the script checks.
DemoVexa is a desktop app that reads your code and turns it into finished product demo videos, with a script, voiceover and your real UI animated. No screen recording.
Preconditions per scene in scenes.json is a cleaner version of what I suggested. Checking that the bans table actually has rows before it records catches the case that worries me most, a video that looks fine and is quietly wrong. And since the narration avoids numbers, the check only has to prove the screen isn't empty, so it won't break every time the traffic generator has a slow minute. When a precondition fails, do you plan to have the build wait and recheck for a bit, or stop straight away?
Wait a bit, then stop. The traffic generator keeps running, so a short recheck (say up to 30 seconds) covers a slow minute, and if it's still empty after that something is actually broken. Thanks for thinking it through with me!
DemoVexa is a desktop app that reads your code and turns it into finished product demo videos, with a script, voiceover and your real UI animated. No screen recording.
Thirty seconds and then a hard stop sounds right, since a generator that keeps running should fill the table well inside that window. When a precondition does fail, I'd have the build print which scene it was and what the API actually returned, so the message reads like a failed test rather than a puzzle. Then a month from now you can tell straight away whether the traffic generator died or the screen itself changed.
The inversion that stood out to me is letting the narration set the timing rather than cutting the voice to fit the footage — re-rendering one scene without re-shooting everything is exactly what makes this a build artifact rather than a video project. The detail about giving each client its own IP via X-Forwarded-For is a nice touch too; it is the sort of thing that makes the demo feel real. One question: what happens when a scene's UI interaction takes longer than its narration — do you pad the audio, or slow the interaction down?
Thank you for reading it so carefully, and for the kind words about the X-Forwarded-For trick!
Honestly, neither: in this version the narration wins. Each scene is recorded for exactly the length of its voice clip plus a short lead-in and tail, and the click-through script runs alongside it. If the interaction were slower, the recording would simply stop before it finished.
So I made the interactions fit instead: faster typing (about 50 ms per character), shorter pauses, and when a scene had too much to show, I split it into two parts with separate recordings (the security rules list, then the challenge page). I checked every scene with a contact sheet of one frame per second to catch anything cut off.
A nicer approach would be to let the recorder wait for the interaction to finish and then hold the last frame or add a short silence, so a slow scene stretches instead of getting cut. That's on my list for the next version. Thanks for the great question!
Love this. Scripted product videos have a big advantage people overlook: when the UI changes, you rerun the script instead of re-recording everything. Adding a short pause on each key screen and zooming slightly into the element being explained makes these feel much more like a human-made walkthrough.
The "video as a build artifact" framing is what sold me — especially letting the narration set the timing, so re-recording one scene doesn't shift everything else. The CDP details are the useful part: the variable-frame-rate screencast trap and the --proxy-server workaround for shop.example.com are exactly the kind of thing that costs an hour each. Did the 10–15 fps screencast ever make the fake cursor look laggy in the final video, or did the fps=30 resample smooth that out enough?
Thank you so much for reading it this closely, and for the kind words. Honestly, your question points at the part I'm least happy with.
The
fps=30resample doesn't really smooth anything. It only repeats frames to fill the gaps, so the cursor still moves at whatever rate the screencast delivered, and if you watch closely you can see it step a little. What helped a bit was making the cursor's CSS transition fairly slow (about half a second), so each move still gets several frames. I also triedminterpolate, but it smeared the text in the UI, so I went back.If I make another version, I'd like to try one of these:
HeadlessExperimental.beginFrame, to render at a steady 30 fps instead of taking whatever the screencast sendsI haven't tried either yet, so I'm not sure which works better in practice. If you've done something similar, I'd really appreciate any tips. Thanks again for the thoughtful question!
The "keep the timestamp!" fix is the exact seam where ffmpeg.wasm falls over — buffering 1080p JPEGs hits the wasm32 4 GiB wall fast. We went the other way on captions: local Whisper word timestamps instead of timing by sentence length, which kills the drift on long pauses. Did you measure the end-to-end render time? Curious how much is capture vs assembly.
Thank you so much for reading the post and for taking the time to share your experience, I really appreciate it!
The ffmpeg.wasm limit is a great point, and something I hadn't thought about. I think I just got lucky: everything runs locally with native ffmpeg, and the frames go straight to disk as JPEGs, so nothing has to stay in memory.
Your question made me curious too, so I timed a full rebuild today. For the 1:43 video it took about 4 min 50 s on my laptop (RTX 3050 Ti):
So capture is a bit over half, and there's clearly room to improve by reusing one browser.
And thank you for the Whisper tip! Word timestamps sound much better than my sentence-length guess. You're right about the drift, too: in a couple of scenes the caption moves on slightly before the voice does. I'd love to try your approach. If you've written about your setup anywhere, I'd be happy to read it.
Thanks for timing it — the split is telling. The 103s of "real-time playback" is just your 1:43 runtime playing back, which is the floor for screencast capture; the avoidable part is launching a fresh Chrome for each of the 12 parts. Reusing one browser/context across parts should eat most of that overhead.
On the captions: the drift fix is letting Whisper predict where each phrase actually starts and stops, rather than dividing a sentence's duration by its length — so a long pause doesn't drag everything after it out of sync. Haven't written this one up yet, but it's on our list. And your native-ffmpeg path sidesteps the wasm memory wall entirely since frames go straight to disk — a real perk of not being in a tab.
Thank you, that's a really helpful way to look at it. You're right, the real-time part is just the floor, and the per-part Chrome launches are pure overhead. Reusing one browser across all the parts is going on my list for the next version, it should be an easy win.
And thanks for explaining the Whisper approach. Letting it find where each phrase actually starts makes so much more sense than my "split the sentence by its length" shortcut, especially with pauses. I'd really enjoy reading it if you do write it up someday, please share the link if you do!
I really appreciate you taking the time for these thoughtful comments. It's been a fun conversation, and I learned a lot from it.
Running the traffic generator for ten minutes before recording is the step I'd copy first, and sticking to the RFC 5737 ranges means no real address ever lands on screen. On your script first, then the data note, one cheap guard: before each scene records, have the script ask the API for the numbers the narration mentions, like bans or seats in the queue, and fail the build if they don't match. Then a stale fixture can't contradict the voice.
Thank you, this is a really good one, and you made me go and look at my recorder.
The narration deliberately avoids numbers ("addresses that keep attacking are banned", not "42 addresses"), partly so it can't go stale. But your point still applies to what's on screen: the recorder currently does things like
if (row) point(row), so if the bans table were empty, it would happily record an empty table while the voice says "banned automatically". Nothing would fail; the video would just quietly be wrong.So I'll take your guard and adapt it: each scene in
scenes.jsongets a precondition, checked against the API right before it records. For example, at least a few active bans for the protect scene, blocked events for the monitor scene, and visitors actually waiting for the queue scene. If one doesn't hold, the build stops. It's a few lines and it turns "looks fine to me" into something the script checks.Thanks again for reading it that closely!
Preconditions per scene in scenes.json is a cleaner version of what I suggested. Checking that the bans table actually has rows before it records catches the case that worries me most, a video that looks fine and is quietly wrong. And since the narration avoids numbers, the check only has to prove the screen isn't empty, so it won't break every time the traffic generator has a slow minute. When a precondition fails, do you plan to have the build wait and recheck for a bit, or stop straight away?
Wait a bit, then stop. The traffic generator keeps running, so a short recheck (say up to 30 seconds) covers a slow minute, and if it's still empty after that something is actually broken. Thanks for thinking it through with me!
Thirty seconds and then a hard stop sounds right, since a generator that keeps running should fill the table well inside that window. When a precondition does fail, I'd have the build print which scene it was and what the API actually returned, so the message reads like a failed test rather than a puzzle. Then a month from now you can tell straight away whether the traffic generator died or the screen itself changed.
The inversion that stood out to me is letting the narration set the timing rather than cutting the voice to fit the footage — re-rendering one scene without re-shooting everything is exactly what makes this a build artifact rather than a video project. The detail about giving each client its own IP via X-Forwarded-For is a nice touch too; it is the sort of thing that makes the demo feel real. One question: what happens when a scene's UI interaction takes longer than its narration — do you pad the audio, or slow the interaction down?
Thank you for reading it so carefully, and for the kind words about the X-Forwarded-For trick!
Honestly, neither: in this version the narration wins. Each scene is recorded for exactly the length of its voice clip plus a short lead-in and tail, and the click-through script runs alongside it. If the interaction were slower, the recording would simply stop before it finished.
So I made the interactions fit instead: faster typing (about 50 ms per character), shorter pauses, and when a scene had too much to show, I split it into two parts with separate recordings (the security rules list, then the challenge page). I checked every scene with a contact sheet of one frame per second to catch anything cut off.
A nicer approach would be to let the recorder wait for the interaction to finish and then hold the last frame or add a short silence, so a slow scene stretches instead of getting cut. That's on my list for the next version. Thanks for the great question!
Love this. Scripted product videos have a big advantage people overlook: when the UI changes, you rerun the script instead of re-recording everything. Adding a short pause on each key screen and zooming slightly into the element being explained makes these feel much more like a human-made walkthrough.
Thank you! The zoom idea is a great one, I'll try it on the next render.
a video that rebuilds itself on the next release is the only kind worth making. the traffic generator doing the acting is the detail that sells it.
Thank you! The traffic generator was my favorite part to write, so I'm really glad it came through. Thanks for reading!