3Dakar → Paris, on the whiteboard · episode 3 of 10
Our idea: a travel log that writes itself
Those who slept, worked or missed an afternoon arrive with the same questions: where are they? what happened? what is everyone talking about?
Our idea: an automatically written travel log, with one page per day. The goal fits in one sentence: someone who missed a day should understand it in two minutes, without reading a single false statement.
It is the second half of that sentence that gave us the most work.
The need: a viewer who missed a day should understand it in two minutes, without reading a single false statement. The solution: a travel log rebuilt automatically from the livestream, published as a static site and updated every hour.
This episode gives the map of the system: the processing unit, the seven steps, their cadence, how they exchange results, and the role of the language model. The following episodes take the steps one by one; publishing the site is described here.
Independent Veden project, not affiliated with Nico, Ascend or their partners.
Move forward with the arrow → or the Next button. “Discovery / Technical”, at the top, changes the level of the text; “Listen” reads it aloud.
3The travel log
One page per day, from the headline to the details
Each day of the journey has its own page. At the top, a title and a summary: the essentials in a few lines. Below, hundreds of moments, each with its time, what happened, and sometimes what was said, word for word.
Under each moment, up to three clips created by viewers, to see the scene with your own eyes.
A published day contains a title, a summary, a summary for each four-hour block, and between 350 and 490 events. Each event has a start and an end in UTC, a title, a summary, the people present, the place, a category, exact quotes, an importance score from 1 to 5, and up to three linked clips.
The travel log distinguishes what they did from what they talked about: a rumour, a joke or a plan that is merely mentioned must not become fact. It is the hardest rule to get a language model to respect (episode 9).
3The basic unit
Everything is cut into ten-minute slices
You cannot summarise a month of video in one go. So we cut it into small ten-minute pieces, which we process one by one.
Ten minutes is short enough for the artificial intelligence to read the whole piece at once, and long enough for something to happen in it.
The unit of the whole project is the ten-minute slice. The video is recorded in ten-minute segments, named after their UTC start time; each segment is transcribed, analysed, then told as a story.
The size was chosen to suit the most expensive step: the language model has to receive a whole slice at once, with its transcript, the titles of its clips and the moderators' notes. Beyond 14,000 characters of transcript, about ten minutes of dense speech, the end is cut off and flagged as truncated.
3The chain
Seven steps, from video to website
The system is a chain: each step reads what the previous one produced, does one thing, and hands over.
We record the livestream. We set aside the outages and the replays. We recognise who speaks and what is said. We measure the audience's reactions. We have the moments written. We split the days. We publish the site. Almost every one of these steps has its own episode.
A seven-step pipeline, each step testable and rerunnable on its own:
- Capture the video, the chat, the clips and the moderators' timestamped notes (episodes 1 and 5).
- Set aside outages and replays, without AI (episode 5).
- Diarise and transcribe: who speaks, and what is said (episode 6).
- Measure the audience signals: chat peaks, clips, moderators' notes (episodes 7 and 8).
- Write the events of each slice with a language model (episode 9).
- Split the days and summarise them (episode 10).
- Export and republish the static site (this episode).
3The cadence
A full run every hour
The system wakes up every hour during the day, and every twenty minutes at night. On each run, it processes what is new and updates the site.
If it stops halfway, because of an outage or a restart, it does not matter: on the next run, it picks up where it left off, without doing anything twice.
A cron job starts the run at seven minutes past each hour between 05:00 and 20:00, and every 20 minutes at night. flock takes a lock: if the previous run has not finished, the new one gives up instead of working on the same files.
Each step is idempotent: it skips what is already done. Files read by several steps, such as the list of outages or the published timeline, are written atomically: into a temporary file, then renamed. An extra safeguard: if the tests of the summarisation code fail, the run processes nothing, rather than publishing a wrong result.
See the code: a step that can be rerun safely
import json
from pathlib import Path
def lancer_etape(entree: Path, sortie: Path, traiter) -> int:
sortie.mkdir(parents=True, exist_ok=True)
faits = 0
for fichier in sorted(entree.glob("*.json")):
cible = sortie / fichier.name
if cible.exists():
continue # already done: skip it
resultat = traiter(json.loads(fichier.read_text()))
tmp = cible.with_suffix(".tmp")
tmp.write_text(json.dumps(resultat, ensure_ascii=False))
tmp.replace(cible) # atomic write
faits += 1
return faits
# crontab : 7 * * * * flock -n /tmp/passage.lock bash passage.sh
3Files
Files rather than a database
Each step stores its results in plain files, one per ten-minute slice. It is rudimentary, and that is deliberate.
You can open any file to understand an error, redo a single slice by deleting its file, or keep a copy to test a fix without touching the site.
Each step writes one JSON file per slice. Three advantages turned out to be decisive:
- inspect any step by opening a file;
- redo a single slice by deleting its output;
- freeze a copy of the data to prove a fix before deploying it (episode 9).
The price: guaranteeing atomic writes and the lock ourselves. For a single-user system with a few thousand files, it is a good compromise.
3The writing
A language model to tell the story
To turn ten minutes of speech, messages and clips into a few well-told moments, we use an artificial intelligence that writes: Claude, from Anthropic.
We impose a precise format on it, and we check what it produces. A machine that writes well can also be confidently wrong: the whole series is about that.
The writing step calls Claude Opus with output constrained by a schema: a list of events, each with its mandatory fields. The model receives the attributed transcript of the slice, the state of the picture (livestream, outage or replay), the clip titles and the moderators' notes. The chat is not sent to it: it is used to spot the high points.
The cost, estimated at API prices, comes to around $0.40 per hour of livestream. An open model served locally was also tested: free to use, but clearly less reliable on the hard cases (episodes 4 and 9).
estimated cost, at API prices
≈ $0.40
per hour of livestream, for the language model part.
3The pitfalls
When everything looks like it works
Putting these steps together was not the hardest part. The most instructive were the times when everything seemed to work while the travel log was wrong.
Whole hours vanished without an error message. The same moment had two different times on a single page. Clips appeared under the wrong moment. People were mixed up. Each of these problems has its own episode, with the measurement before and after.
The symptoms that shaped the rest of the series:
- 5 hours 20 minutes of livestream were missing from the travel log, with no error at all (episode 9);
- a moment dated 13:24 in the text and 15:24 in the list (episode 10);
- 68% of moments showed the clip of a neighbouring moment (episode 8);
- voices and people mixed up (episodes 6 and 9).
Each time: the symptom, the cause, the fix, then the measurement before and after on the real data.
3Summary
What to remember
- The travel log has one page per day, written automatically.
- The livestream is cut into ten-minute slices, processed one by one.
- Seven steps run in sequence every hour, and pick up again safely after a failure.
- An artificial intelligence writes, but we check everything it produces.
- A processing unit chosen according to the most expensive step: ten minutes.
- Idempotent steps, a lock, shared files written atomically and tests that block the run.
- One JSON file per slice: inspect, redo, freeze.
- A structured-output language model, at about $0.40 per hour of livestream at API prices.
Do you want to analyse your videos, calls or meetings?
The same building blocks can summarise hours of recordings in a company. Write to me: we will look together at what is feasible.
Let's talk about your project