I built a line from a topic to a video package: script, voice, visuals, subtitles, music, cover.
Today
Phase 1 is done: one end-to-end run produced a 218-second 1080p video.
Next
The next phases; for now the line is for my own use.
Problem
In one-person content production the script, voice, visuals, captions and edit are each done by hand, and the chain never ends.
Solution
An end-to-end line from a topic to a video package: a sectioned script, text fit for narration, a three-provider voice chain, stock video or AI images, captions, music and a cover.
Read more
Predecessors: book narration (Sep 2025), documentary voice (Feb 2026), a 1,435-section book video (Feb–Mar 2026).
Result
An experimental MVP: written for my own use and also thought of as a product that could be sold, but it was not sold. A real end-to-end run produced a 218-second 1080p video; only Phase 1 is done.
The big pieces04
01
An end-to-end line
Prototype
From a topic or a finished text: a sectioned script, narration-ready text, scene editing, captions and a cover; one click makes a package.
02
The voice chain
Prototype
Three narration providers are tried in turn; numbers are spelled out and abbreviations expanded.
03
Visuals and editing
Prototype
Stock video or AI images, Ken Burns scenes, music (−14 LUFS) and three cover options.
04
Predecessors
Prototype
Book narration (Sep 2025), documentary voice (Feb 2026), a 1,435-section book video (Feb–Mar 2026).
Annotated drawing
01Topic1
02Script2
03Voice3
04Visuals4
05Assembly and mix
06Package (thumbnail, description)
Each stage is cached by content hash; when a setting changes only the affected stage reruns.
1
Each stage is cached by content hash; when a setting changes only the affected stage reruns.
2
A local model writes the script (≈9.5 min); the sample contained historically invented content, so no quality claim is made.
3
Engines are chosen by blind listening, not by ear: labels are hidden. XTTS is out because its licence forbids commercial use.
4
Without a provider it does not count fake visuals as success: it fails loudly.
Key details06
01 · Pipeline
It does not start over after a break
The nine stages are cached by a hash of their input. If a job stops midway, the queue takes it back and it carries on; if a setting changes, only the affected stage reruns. The script stage took about 9.5 minutes on a local model; in one recorded run it and the voice stage were skipped from cache.
02 · Turkish
Text is made ready to be read aloud
Before narration the text is rewritten: 1923 is spelled out in Turkish words, suffixes on years are kept, and “3. bölüm” is read as an ordinal. The sentence splitter does not end a sentence at M.Ö. or Dr.; in cover titles a capitalised i becomes İ.
03 · Model
The small model’s slips are caught during production
A small local model writes the script, so the line checks its output. In the predecessor the first chapters came out in English; the wrong language is now caught. Leftovers in the reply (leading remarks, thinking notes, a trailing comma) are stripped and overlong text is trimmed to a word budget.
04 · Predecessor
Voice and visuals take turns on a 4 GB card
The predecessor ran on a laptop with 4 GB of video memory. The model reloaded for each piece, and the voice and image models could not share the memory. The fix: voices are made in a batch, the model is unloaded, then visuals follow; finished pieces are skipped on restart.
05 · Licence
Source and licence info goes into the package
The source of stock images and videos is written into the output package as a credits file, and one stock provider’s 24-hour caching rule is built into the code. Music entries carry a licence field, and a track with an unclear licence triggers a warning.
06 · Process
A task is not done until the checks pass
The specification came first: a competitor table, a provider-fallback table, a licence and credit scheme, a six-phase roadmap. The work was split into numbered AI briefs and an assistant wrote the code. The rule: a task is not done until lint and tests pass; acceptance and review are mine.
Decision log03
01
A cloud voice chain instead of a voice clone
Passed over
Carrying the predecessor’s XTTS voice clone into the product.
Why
The XTTS v2 licence forbids commercial use, so it could not go into a product that might be sold. A cloud narration chain was chosen, and an MIT-licensed engine was planned for later but not written. Engines are chosen by blind listening, not by impression: the same text is read by the engines, labels are shuffled, and engine and cost are shown after scoring. The one recorded comparison was between two voices of a single engine.
02
No leaning on a single provider
Passed over
Relying on a single unofficial voice API.
Why
An unofficial voice API broke with a 403 error in October 2026, and an anonymous image API’s quota dropped. The decision: a contract for failure types (unreachable, quota, unusable output), a fallback chain and retries with waiting. If one engine runs out of quota the line moves to the next and warns that the voice came from more than one provider.
03
An explicit error instead of fake output
Passed over
Counting a video as a success with placeholder visuals when a provider is missing.
Why
The predecessor line had a placeholder-image problem, and a script was written to find and repair the affected chapters. The new line fails with an error when a provider is missing and disallows placeholder images. The rule: fake media is not reported as a success.
Stack
Python
FastAPI
Vue
ffmpeg
SQLite
pytest
Ollama
ruff
Backstage08
Untied view: raw records from the evidence table, not a live log.
predecessor filesPredecessor 1: book narration in a clone of my own voice (XTTS); scripts that turn a book into text and the text into 2-hour audio chunks.
predecessor filesPredecessor 2: Turkish documentary narration from English text; a term glossary, placeholders swapped in before translation, and continuity from the previous section’s summary.
output folder · logsPredecessor 3: 1,435 chapter videos from one book (target 1,450) on a laptop with 4 GB of video memory, with a restartable pipeline; a production count, with quality and publishing outcomes unmeasured.
specificationSpecification approved: a competitor table, a provider-fallback table, a licence/credit scheme, a six-phase roadmap, an 11-task Phase 1 list; the XTTS licence and a voice API that broke in October shaped the voice choice.
ffprobe output · job recordA real end-to-end run: a 218-second 1080p video (3 sections, 6 AI scenes); in the record the script and voice stages were skipped from cache.
file timestampsPhase 1 code and tests were written: a three-provider voice chain, stock or AI visuals, editing, queue and interface; Phases 2–5, a licence server and an installer were not written, and nothing was sold.
git history · audit documentFirst commit and audit; Ollama model choice, API Host/Origin protection.