Video transcription pipeline
A pipeline that turns a YouTube talk into a structured, sourced note, slides included. A local model does the bulk reading on our own GPUs, a paid model writes only the part that needs judgment, and the pipeline stops instead of guessing when a step fails.
A conference talk takes as long to watch as it runs. Its transcript is faster to read, but it is a wall of text, and it misses what is on the screen: the slide, the architecture diagram, the code.
This pipeline takes a YouTube link and writes a structured note: what the video says, what it shows, and how it connects to what I already know and what I am working on. On October 31, 2026, it turned two videos of about 26 minutes each into notes in about 15 minutes. A local model on our own GPUs does the bulk of the reading; a paid model is used for one step, the one that needs judgment. My notes folder holds 147 video notes (counted November 29, 2026).
What a note holds
Each note is a Markdown file with the video’s metadata (channel, publish date, length, link) and a fixed set of sections:
- a summary, the key concepts, and the technical architecture the speaker describes;
- notable quotes, each with a short header naming the idea, the speaker’s exact words, and one line on why it matters;
- my own analysis and possible actions, tied to the projects I am working on now, not generic suggestions;
- references in four directions: core ideas, supporting evidence, contrasting perspectives, and practical applications;
- related notes from my collection;
- the full transcript, collapsed, with descriptions of what was on screen merged in by time.
The skill’s rules forbid invented links: a link must point to a note that exists.
Who built it
Several calls on this page are mine. I named this one of the most important skills I have, and said it must work on demand. I set the rule that it stops at a rate limit, made the version that looks at the video the default, set its acceptance test, and decided to drop a mode and a feature. The rest is the team’s work: “we” is me and a team of AI agents. Coding agents wrote the changes, and an independent AI reviewer checked the two merge requests that rebuilt the pipeline in October and November 2026 before they merged.
Decisions
A local model reads; a paid model writes the part that needs judgment
The first version had a paid model read the whole transcript. That spends paid tokens on the part of the job that needs the least judgment: reading every line.
Instead, the transcript is cut into chunks of about 1,000 tokens. A local model (qwen3.5:9b) reads each chunk and pulls out key points, quotes, and entities. A script combines those into a digest. The paid model reads only the digest, plus context from my memory system, and writes the parts a small model does poorly: how the video connects to my current work, the references, and the actions. It also checks the weak sections the local model wrote and rewrites them.
The bulk of the work costs GPU time instead of paid tokens. The trade-off is that the paid model never sees the raw text, so something the local model misses stays missed. I have not measured the saving, so I do not quote one.
Look at the video, not only listen
A transcript misses slides and diagrams. The current version downloads the video and takes a frame at each scene change, plus one every 30 seconds in quiet stretches. A local vision model describes each frame, and the descriptions are merged into the transcript chunks by time, before the local model reads them. That costs extra minutes per video, and a description can be partial.
I set the acceptance test before it became the default: a public conference talk shows an architecture diagram on a slide, and that diagram must be in the finished note. It was. The frame description missed some branches of the diagram, but its main steps reached the note.
The original captions, never a translation
The pipeline uses YouTube’s original-language captions, with a manually supplied English track as the only fallback. It never uses YouTube’s auto-translated track. That track is rate-limited, and the reviewer found that an earlier fallback could present a translation as the original transcript. The cost: a video with no English captions fails with a clear message instead of producing a note.
Fail loudly
A pipeline that silently drops part of a transcript produces a confident, wrong note. So this one stops instead of guessing:
- On an HTTP 429 or 403 from YouTube, the whole batch stops and reports. The rest of the batch is marked “not started.” No retry loop, and no switching to another tool. This is my rule. It came from watching an AI helper hit a rate limit, keep retrying, and then reach for outside tools instead of the pipeline’s own steps.
- If any chunk has no valid analysis, the video fails. Each analysis is written to a temporary file and then renamed, so a half-written file is never taken for a finished one, and the step that combines them names the bad chunks instead of skipping them. These rules came from design review: the reviewer replayed failures against the real code and showed that a failed chunk could otherwise become a “successful” draft with a section missing.
- A re-run starts over. A resume feature would save time after a failure, but in review it kept finding ways to reuse an analysis that was out of date. I chose to merge the core fixes and park resume with a written constraint: it may come back only if it never trusts a stale analysis.
Drop a mode that did not pay
In May 2026 we tried a mode that skipped the note and sent the results straight to my memory system. After a pilot batch, I judged that it saved little and produced an inferior product next to the full note, so I decided to drop the note-free mode.
How it’s built
- Input: video metadata and captions with yt-dlp; the video itself, capped at 720p, for frames.
- Frames: ffmpeg scene detection plus a frame every 30 seconds in quiet stretches; a local vision model (gemma4:e2b) describes each one.
- Reading: chunks of about 1,000 tokens with the frame descriptions merged in; qwen3.5:9b analyzes each chunk.
- Routing: all local model work goes through a job manager that queues requests across a small set of older GPUs. My notes put the limit at about three videos at once.
- Synthesis: Claude Sonnet reads the digest and my memory context and writes the analysis, references, and actions.
- Output: a note in my Obsidian vault; work files are deleted at the end.
- Discipline: Python run with uv, dependencies pinned to releases at least 30 days old, and sixty-three offline tests, some of which replay the real batch loop with failures.
Where it stands
The version that looks at the video became the default when that change merged on November 17, 2026. On its acceptance talk, the automated part ran in 6.9 minutes. The collection holds 147 video notes, 130 of them dated May 2026, and it keeps growing a few notes a month.
Resume waits in its parked issue until it can be built without that risk. Until then, a re-run is a clean start.