From Engineering Philosophy to Product Shape: How We Assembled This Pipeline into PPTRunner
A deck lands on the app window. There is no upload bar, no account prompt, no queue position. The first launch already downloaded the model packs; after that the machine is the whole backend. Some minutes later there is
A deck lands on the app window. There is no upload bar, no account prompt, no queue position. The first launch already downloaded the model packs; after that the machine is the whole backend. Some minutes later there is an MP4 that plays on a phone, in a browser, and on a projector.
That is the product we wanted to build, and this is the last article in the โ10% AI, 90% deterministic codeโ series. Parts 1โ5 covered the boundary, the prompt, the runtime, the parser, and the media pipeline. This one covers the unglamorous step that turns an architecture into something a person can double-click: assembly.
The result is PPTRunner, a local desktop tool that converts existing PowerPoint decks into narrated videos. I will describe the architecture that did not survive, the five stages that did, the numbers we measure, and what local-first costs. The product name appears here for the first time because there is no longer any reason to hide it.
The architecture we abandoned
The first design was the obvious one. A web app: upload the .pptx, let a planner agent decompose the job, run tools for parsing, narration, speech, and rendering on a GPU cluster, then return a download link.
The appeal was real. No installer, no model download, no hardware matrix; jobs scaled horizontally, and the agent could โdecideโ batch sizes, retries, and voices.
It died for four reasons, none of them ideological.
The first was that the agent became the scheduler. A scheduler must be idempotent, bounded, and observable; a model choosing tools is none of those. Every retry is another sampling call, the same deck can produce a different plan tomorrow, and when a render fails at slide 61 the system cannot tell whether to re-run one unit or the job, because the decision lives in a context window. We were debugging a distributed system through a transcript.
The second was data. Corporate decks are the least shareable documents in the building: unannounced financials, org charts, roadmaps, an unsigned legal slide. Uploading them so a cloud GPU can read them is not a feature; it is a compliance review. Local-first was the only way some customers could use the product at all.
The third was latency. Rendering is the long pole, but upload and queue are what the user feels first: a 300 MB deck on hotel Wi-Fi, a cold container, a model download, a tool loop. Locally, parsing starts when the file lands.
The fourth was cost shape. A render farm bills idle capacity and egress; a desktop app bills once and the user supplies the compute โ a better fit for bursty use.
The lesson was not โcloud bad, local good.โ It was narrower: if a step can be expressed as a function with a schema, it should not get a model. If it needs judgment over unstructured text, it gets a model, with a closed output and a deterministic caller. That rule is what survived.
Five stages, one process
The shipped architecture is a pipeline of five stages. Each stage reads artifacts, writes artifacts, and returns a typed result. The stages do not call each other through a conversation; they call each other through a manifest.
Ingest. Unzip the OOXML package; resolve presentation.xml, layouts, masters, relationships, notes, and media into a normalized slide model with stable IDs, text runs, geometry, and images. No Office install, no LibreOffice subprocess.
Plan. Decide what each slide needs: which text is narration, which is title-only, where a section break belongs. Deterministic, except one small model call that proposes narration for slides with no notes. The proposal is text, never a control decision.
Narrate. The 10% stage. A local model turns a slide summary into spoken prose, or polishes an existing note. It gets a few hundred tokens of context, returns one string, and is validated against a length and language schema. It cannot choose voices, durations, or transitions.
Synthesize. Normalize pronunciation, synthesize each segment, trim silence, normalize loudness, write a WAV and its duration. The engine is local; the output is a cache entry keyed by text, language, voice, engine version, and normalizer version.
Render and mux. Lay out the slide, apply camera moves, highlights, and captions, stream frames into FFmpeg, encode with a probed hardware encoder or libx264, mux audio, verify with ffprobe.
That is the whole product in one paragraph. The editor, preview, progress bar, and error badges are all views over the same manifest.
The manifest is deliberately boring. A unit is an immutable value, not a mutable row every stage can edit. Each stage returns a new unit with a hash and provenance. If the hash matches, the next stage reuses the artifact without asking the model anything.
@dataclass(frozen=True)
class SlideUnit:
slide_id: str
source_hash: str # OOXML slide + layout + master + media
narration: str | None # only the 10%: text, never control flow
narration_hash: str | None
audio_key: str | None # text + lang + voice + engine + normalizer
audio_path: str | None
duration_s: float | None
render_key: str | None # images + layout + camera + frame range
status: Literal["pending", "ok", "degraded", "failed"]
reason: str | None = None
The contract makes incremental editing possible. Change a non-narrated title: source_hash changes, audio_key does not. Change a spoken sentence: exactly one audio_key changes. Change the camera path: only render_key changes. The UI just asks the manifest what is stale.
The scheduler is a state machine, not an agent
The second design mistake we avoided was letting the model orchestrate the stages. The scheduler is ordinary code: a directed acyclic graph with per-unit retries, cancellation, and a budget.
def run_stage(unit: SlideUnit, stage: Stage, ctx: JobContext) -> SlideUnit:
key = stage.cache_key(unit)
if ctx.cache.has(key):
return ctx.cache.get(key)
for attempt in range(stage.max_attempts): # bounded, not "until it works"
try:
artifact = stage.execute(unit, ctx) # pure function of inputs
ctx.cache.put(key, artifact)
return replace(unit, **artifact.fields, status="ok")
except Retryable as e:
ctx.log.warn("retry", stage=stage.name, slide=unit.slide_id,
attempt=attempt, reason=str(e))
ctx.backoff(attempt)
except Fatal as e:
return replace(unit, status="failed", reason=str(e))
return replace(unit, status="degraded", reason="retry budget exhausted")
Two details matter more than the code.
First, every failure is a value. A slide can be degraded: system voice instead of the chosen voice, a caption instead of narration, silence with a fixed hold. The export finishes and the UI badges that slide. A pipeline that aborts a 96-slide job because one WAV is missing is not a product; it is a demo with a progress bar.
Second, the scheduler never reads the model's prose to decide what happens next. The output is data: validate it against a schema, store it, move on. That is the difference between a local AI operator and an agent loop โ one job, fixed input, fixed output, deterministic caller.
Licensing follows the same rule: an expired or invalid license falls back to the watermarked export path. A watermark is annoying; being locked out of your own file is unacceptable.
What the user feels: editing one slide
The architecture only earns its keep at the moment of an edit.
A 96-slide deck, 18 minutes of narration, 30 fps. The user changes six words on slide 47. The deck is not re-parsed, 95 narrations are not rewritten, 95 audio clips are not re-synthesized, and 95% of the video is not re-encoded.
What does happen: slide 47's source hash changes, one audio key misses, one TTS call runs, the timeline recomputes from that point, and one render unit is rebuilt at a keyframe boundary. The progress bar moves in seconds, not a spinner that promises forty minutes.
The preview is not a separate renderer. It is the same layout code at a lower resolution, which is why what you see is what you export. Captions are generated from the same normalized text that went to the speech engine, so they cannot drift from the audio. The camera path is a list of keyframes, not a prompt.
Local translation belongs here too. A Japanese or Chinese variant is a new language track, not a new project. Slide images and layout are shared; narration, audio, and captions have their own hashes. Editing an English slide does not invalidate the Japanese audio unless the user asks to re-translate it.
The numbers we hold ourselves to
We could publish a single โit takes X minutesโ number. It would be useless: the variables are the deck, the voice, the machine, and the encoder. So we publish the ledger, and the app calibrates an ETA on the machine it is running on.
The arithmetic is not mysterious. Eighteen minutes of narration is 1,080 seconds, or 32,400 frames at 30 fps. At 1920ร1080 RGB24, one frame is 6.22 MB, so a cold export pushes about 201 GB through the frame pipe. The audio is 48 kHz, 16-bit mono: ~96 KB per second, or roughly 104 MB. Those are format facts, not benchmarks.
| Phase | Unit of work | Cache key | What dominates | What we watch |
|---|---|---|---|---|
| Ingest | one deck | package + slide XML + media | zip I/O, XML walk | peak RSS, parse time |
| Narrate | one slide | structured summary + prompt version | model TTFT, tokens out | p50/p95 per slide, schema failures |
| Synthesize | one segment | text + lang + voice + engine + normalizer | phonemization, vocoder | real-time factor, one-key invalidation |
| Render | one render unit | images + layout + camera + frame range | rasterization, encode | frames/s, queue depth |
| Mux/verify | one export | unit list + audio track | container copy | duration drift, stream count |
The budgets are plain. Export must finish on a 16 GB machine with 10 GB free. Peak memory is bounded by the frame queue, not deck length. A one-slide edit re-synthesizes at most one segment. A cold export is interruptible and resumable without corrupting the output. Export must complete with the network cable pulled.
The verification is a command, not a vibe:
ffprobe -v error -show_entries \
format=duration,size:stream=index,codec_type,codec_name,width,height,avg_frame_rate,pix_fmt \
-of json final.mp4
We compare the container duration with the timeline's last boundary, the stream count with the plan, the pixel format with yuv420p, and the frame count with the sum of render units. If any disagree, the export is not โdoneโ; it is a bug with a progress bar.
What local-first costs
Local-first is not free, and the product page says so before the download starts.
- First launch is online. The model packs are about 6.2 GB, downloaded once and checked by SHA-256. Plan for 10 GB free and 16 GB of RAM; a discrete GPU helps, but CPU-only machines work with a longer ETA.
- The platform matrix is narrow. macOS 14 or later on Apple Silicon (M1 or later); no Intel Macs. Windows 10 version 19045 or later, or Windows 11.
- The free tier is watermarked. Free exports are 1080p with a PPTRunner watermark; paid licenses remove it. Planned prices are on the site but not on sale yet, and the Mac App Store version is still coming. Version 1.1 ships the narration editor, sample deck, preview, local translation, local speech, and MP4 export; the full project workflow is planned. None of this is an apology. It is the bill for the architecture. If you need a browser tab and a 2 GB Chromebook, a cloud renderer is the right product. If the deck cannot leave the building, a 6.2 GB download is a bargain. ## The reveal: PPTRunner So here it is. PPTRunner is a desktop app that turns an existing PowerPoint deck into a narrated video, locally. It reads .pptx directly, proposes narration with a local model, lets you edit every line, add camera focus, highlights, and captions, preview slide by slide, and export an MP4 with voice and subtitles in English, Japanese, or Simplified Chinese. Japanese speech runs in-process through VOICEVOX CORE; the rest is ordinary code. The macOS build (Apple Silicon, direct download) is 1.1.0, signed and notarized, with built-in updates. Windows installs from the Microsoft Store and then runs offline. Both are distributed only through the official site; do not install from mirrors. The pitch is not โAI makes your slides better.โ It is narrower: the deck you already have becomes a video you can send, without uploading it, without a render queue, and without re-rendering everything when one sentence changes. That is the product shape the series argued toward. The model is still 10%. The other 90% is the installer, the model download, the cache keys, the state machine, the error badges, the ETA, the license fallback, the updater, and the support inbox. Architecture is a promise. A product is the receipt. ## The last 10% The first article opened with a claim: a local model should be an operator inside a deterministic system, not the brain of the system. Five articles later, the claim has a shape you can download. The temptation at the end of a series is to summarize the philosophy and call it a product. We tried the opposite. The philosophy only matters if it survives a 96-slide deck, a 16 GB laptop, a corporate firewall, and a user who edits one sentence at 11 p.m. and expects the export to be done before the coffee. The model writes the sentence. The rest is engineering. That was true in Part 1, and it is true in the shipped app. --- PPTRunner is a product of amiPro LLC. Download the current build at pptrunner.com. Previously: Part 1, Part 2, Part 3, Part 4, Part 5.
Originally published on Medium.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.