PTENES
TRACK 2

⚙️ The skill under the hood

Open the engine’s hood. Here you can see the 5 phases that turn the raw footage into the reel—from deterministic cutting to the reviewer loop—and the gates, scripts, and determinism rules that ensure each step comes out clean and repeatable.

2
Modules
13
Topics
~80min
Duration
Intermediate
Level
Track progress0% · 0 of 0
PHASE 1 Cut deterministic PHASE 1.5 Read + plan beat sheet PHASES 2/3 Motion + B-roll cold open · ≤4s PHASE 4 SFX + render Automatic QC PHASE 5 Reviewer PASS / FAIL if FAIL → fix and repeat until PASS

The five blue boxes are the phases, in order. The dashed cyan arrow looping back is the quality loop: the reviewer (Phase 5) rejects it, the engine fixes it and runs it again until it passes.

Track map

Detailed content

2.1~45 min · 7 topics

⚙️ The engine’s 5 phases

The path the engine takes from raw footage to reel—five phases, each with its own quality gate.

What it is:

The engine detects speech segments using audio energy (silencedetect) and removes silences, pauses, repetitions, and mistakes, keeping only the final take of each sentence.

Why learn:

It’s the foundation: a predictable cut that’s always the same for the same input—no timing guesswork.

Key concepts:

silencedetect, voice island, last take, determinism.

What it is:

The engine looks at the frames (via /watch), understands the content, and suggests the opening, B-roll type, and pacing—putting together an editing plan (beat sheet).

Why learn:

It’s what makes the treatment adapt to THE video, instead of always applying the same template.

Key concepts:

/watch, treatment, beat sheet, opening.

What it is:

Hyperframes builds the animations, and Firecrawl captures real websites/repos. The cold open is mandatory, and no segment goes more than 4s without a visual hit.

Why learn:

These are the phases that give it a "pro level": rhythm, credibility from real footage, and a hook right at the start.

Key concepts:

Hyperframes, Firecrawl, cold open, 4-second rule.

What it is:

Subtle sound effects (whoosh, ching) play under the voice—no music by default. The file is rendered, and an automatic QC check looks for gaps and overlaps, regenerating anything that fails.

Why learn:

Well-placed SFX "creates" the cut; QC prevents you from delivering a render with a sync gap.

Key concepts:

SFX, render, QC, regeneration.

What it is:

A clean subagent watches the render (via /watch) and gives a PASS or FAIL verdict. If it fails, the engine fixes it and repeats the cycle until it passes.

Why learn:

It’s the last gate before delivery—nothing goes out without independent approval.

Key concepts:

Reviewer, subagent, PASS/FAIL, loop.

What it is:

The reviewer is a subagent that didn’t see how the video was assembled. It judges only the result, without the bias of the person who built it.

Why learn:

The person who assembles it tends to "not see" their own mistakes; a fresh pair of eyes catches what the main agent missed.

Key concepts:

Clean context, author bias, independent verification.

What it is:

Three ideas that tie the track together: the hard gate (blocking verification), the beat sheet (rhythm plan), and the quality loop (repeat until it passes).

Why learn:

With this vocabulary, you understand why the engine is reliable, not just “smart.”

Key concepts:

Hard gate, beat sheet, quality loop.

View Full
2.2~35 min · 6 topics

🔧 Gates, Scripts, and Determinism

The scripts and rules that make each phase deterministic: same input, same output, every time.

What it is:

The cut uses the exact silence boundaries in the audio, not Whisper’s timestamps (which have ±0.2–0.3s of jitter). The islands.py script finds the speech islands.

Why learn:

Cutting with Whisper leaves bits of silence and half-words; cutting based on energy is precise.

Key concepts:

silencedetect, jitter, island, islands.py.

What it is:

islands.py proposes what to keep (KEEP/DROP), cut.py assembles the cut, and verify-cut.py checks that it’s clean — exiting with exit 0 when it passes.

Why learn:

It’s a chain with a check at the end: you don’t animate anything before the cut passes.

Key concepts:

KEEP/DROP, exit 0, hard gate.

What it is:

A static lint for the Hyperframes timeline: if there are more than 4s without a visual beat, it reports an error and prevents rendering.

Why learn:

The 4s rule stops being an intention and becomes an automatic pacing check.

Key concepts:

Lint, visual beat, --max-gap, pacing gate.

What it is:

Generates 2–3-word caption “beats,” synced to the voice, with a keyword (which you pass in --keywords) highlighted in your accent color.

Why learn:

Short captions with their own visual emphasis avoid the generic “AI look” of plain captions.

Key concepts:

Caption beat, keyword, safe area.

What it is:

make-sfx.sh synthesizes the sound effects palette (whoosh, boom, ding…) without downloading anything; mix-sfx.py overlays each effect at the right time, under the voice, with a limiter.

Why learn:

Synthesized SFX are lightweight, royalty-free, and always the same — they fit the deterministic pipeline.

Key concepts:

SFX palette, events, ducking, limiter.

What it is:

Animations don’t use Math.random() or Date.now(); no infinite repeats (repetitions are finite and calculated); timelines are registered in a paused state.

Why learn:

Only this way will the same project render the same frame every time — a requirement for reliable lint and QC.

Key concepts:

Determinism, finite repeat, paused, reproducibility.

View Full