video-pipeline
Skill2 starsChanged 39 days agoMITView on GitHub
House pattern for producing videos with code, from a brief to a file ready to post: beats, script, voice with word timings, word-level captions, picture as a deterministic HTML page (window.__seek) rendered frame by frame or as ffmpeg segments, music with license and credit, ducking and loudness master, contact-sheet review, and a preflight gate that blocks the post. Covers vertical Shorts (1080x1920, under 60 s), clips cut from long streams and long-form videos with chapters. Use whenever building or changing a video pipeline (Python + ffmpeg + headless Chrome, Remotion, HyperFrames), adding captions, music or voice to a video, cutting clips from a live, or when a rendered video has sync, loudness, caption-timing or "looks generic" problems.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- notivn/AIEVv2their own version, first seen Nov 8, 2026
- kingbootoshi/video-alchemytheir own version, first seen Oct 25, 2026
- 439436269-ctrl/video-pipeline-skillstheir own version, first seen Oct 15, 2026
- notivn/AIEVtheir own version, first seen Oct 9, 2026
- Prawal-Bhuyan/claude-skillstheir own version, first seen Oct 8, 2026
- pjh2443391725-crypto/claude-skilltheir own version, first seen Jul 16, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- notivn/AIEVv2★ 136same name
- notivn/AIEV★ 132same name
- kingbootoshi/video-alchemy★ 9same name
- 439436269-ctrl/video-pipeline-skills★ 1same name
- yfge/video-skills-suite★ 1same name
- pjh2443391725-crypto/claude-skill★ 0same name
- Prawal-Bhuyan/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-newsSkill
- arms-agentic-osSkill
- art-directionSkill
- break-uiSkill
- ci-cd-and-automationSkill
- claude-skill-craftingSkill
- clickup-task-breakdownSkill
- client-facing-docsSkill
- codebase-designSkill
- design-auditSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- express-prisma-patternSkill
- frontend-designSkill
- game-assetsSkill
- game-design-docSkill
- grillingSkill
- improve-codebase-architectureSkill
- motion-dictionarySkill
- playwright-cliSkill
- prisma-schema-conventionsSkill
- rag-architectSkill
- rbac-designSkill
- reanimateSkill
- redesign-existing-projectsSkill
- screenshot-to-codeSkill
- secrets-gitleaksSkill
- security-auditSkill
- sentry-setup-ai-monitoringSkill
- tddSkill
- token-efficiencySkill
- web-design-guidelinesSkill
- yt-auditSkill
- yt-chaptersSkill
- yt-commentSkill
- yt-editSkill
- yt-packageSkill
- yt-planSkill
- yt-retentionSkill
- yt-scriptSkill
- yt-seoSkill
- yt-shortsSkill
- yt-viralSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 80
Search only licences that allow commercial use and modification (CC0, PDM, CC BY, CC BY-SA.
- Distinctive: line 101
Every clip needs something the source does not have (context, a verdict, a question, an edit).
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
video-pipeline
A video made by code is a function of a folder: the same inputs render the same file. Every stage writes a
file the next one reads, so any stage can be redone alone (new voice, same picture) and any result can be
checked. Motion vocabulary and taste live in motion-dictionary; this skill is the plumbing.
The stages
brief.json -> script -> voice.wav + words.json -> picture (HTML __seek | ffmpeg segments)
-> captions -> music + sfx -> mix + master -> video.mp4 + cover.jpg -> review -> preflight -> post folder| Stage | Writes | Rule |
| Brief | brief.json | beats with what each one makes the viewer believe; sources with date; permission to use the footage |
| Script | script.txt | ~2.5-3 words/s; one idea per beat; every fact traceable to a primary source |
| Voice | voice.wav, words.json | whole script in one TTS request (one voice, one prosody); keep word timings |
| Picture | frames or segments | pure function of time; no clock, no randomness without a seed |
| Captions | transcript.json / .ass | word-level, grouped with their clip; land 0-2 frames before the word is heard |
| Music | music.*, CREDITO.txt | licence allows commercial use and modification; credit text saved next to it |
| Mix | mix.wav | music ducked under speech; master to the platform target |
| Review | contact.png, notes | look at the frames before calling it done |
| Preflight | exit code | a script, not a promise: fails block the post |
Word timings: the spine of the edit
Store words as [{"w": "texto", "start": 1.234, "end": 1.502}] (seconds, 3 decimals). Cuts, caption pops, sfx
hits and zooms all key off this list, so a better aligner improves every stage at once.
- Transcribe with faster-whisper (
word_timestamps=True, vad_filter=True), or WhisperX (transcription plus wav2vec2 forced alignment) when word edges must be tight (karaoke captions, cuts on a word). WhisperX runs on CPU int8 with no account; only speaker diarization needs a HuggingFace token. - WhisperX pins its own torch: give it a separate venv and call it as a subprocess that writes the JSON, with a fallback to the plain transcriber if it fails.
- Words the aligner cannot place (numbers, acronyms) come back without times: spread them between their neighbours.
- Decode audio with ffmpeg to raw PCM (
-f f32le -ac 1 -ar 16000 -) and pass the array; library decoders break on new container versions.
Picture
HTML page, frame-exact (default for motion graphics). The page defines window.__duration (ms) and
window.__seek(tMs), which draws the exact frame for time t from scratch. A headless Chrome renderer calls
__seek for every frame, screenshots, and pipes to ffmpeg. Because nothing reads a clock, any frame renders alone
and identically, which is what makes a frame checkable. Use motion-dictionary/fx.js or GSAP with a paused
timeline (tl.seek(t)); never CSS animations or requestAnimationFrame loops.
ffmpeg segments (default for footage). One segment per beat (image with a slow pan, a clip, an overlay PNG),
concat, then burn captions with libass. On Windows run ffmpeg with the project root as cwd and pass the .ass path
relative to it: the subtitles= filter breaks on a drive letter.
Remotion. Good when a team already writes React. Check its licence first: free for individuals and companies
up to 3 people, a paid company licence above that. Keep each clip's video and its captions inside the same
<Sequence>, with trimming and playback rate on that shared parent, so moving or trimming a clip moves its captions.
Captions
- Word-level, 1-3 words on screen, the spoken word highlighted (karaoke). Big, high-contrast, inside the safe area (vertical: clear of the bottom ~20 % and the right-side buttons).
- Reaction words or emphasis can pop (scale 0 to 1.15 to 1 in ~8 frames) 2-3 frames after the word, with a sound.
- Fix the transcript before burning: names, brands and numbers are where ASR fails. Keep a per-project fix list.
- A synthetic voice is labelled as synthetic in the caption or description.
Music and sound
- Search only licences that allow commercial use and modification (CC0, PDM, CC BY, CC BY-SA; never NC or ND).
The Openverse API filters this:
https://api.openverse.org/v1/audio/?q=<term>&license_type=commercial,modification. - Save the credit text and licence URL next to the file at download time; CC BY and BY-SA need it in the description.
- Some CC tracks still trigger YouTube Content ID; test on an unlisted upload before an important video.
- Cut to the beat: track beats once (librosa
beat_track,onset_detect), then snap planned cut times to the nearest beat within ~0.3 s. Snap only when it does not cut a word in half. - Duck music to ~0.15-0.2 of its level under speech; 1-3 hand-placed hits, silence before the biggest one.
Master
- Loudness: ~-14 LUFS integrated, true peak <= -1 dBTP (
loudnorm=I=-14:TP=-1:LRA=11, two-pass when time allows). - Shorts: 1080x1920, 30 fps, H.264 + AAC 48 kHz, under 60 s (leave margin: 59.5 s). Long-form: 1920x1080.
- Cover: same aspect as the video, readable as a thumbnail at 10 % size.
Clips from long streams
- Download the VOD once; keep it until every usable moment has been cut.
- Find candidate moments without watching 10 hours: chat-rate peaks when the chat replay exists; otherwise loudness peaks (RMS per second scored against the local median of the surrounding ~10 minutes, peaks at least a few minutes apart). Print what was said around each peak from the transcript.
- Cut a window around the peak, transcribe it at word level, start on the setup (not the punchline) and end on the reaction.
- Every clip needs something the source does not have (context, a verdict, a question, an edit). A raw re-upload is not a video.
Review and preflight
Review: contact sheet (ffmpeg -i v.mp4 -vf "fps=2,scale=360:-1,tile=6x5" contact.png), a phone-size still,
ffprobe for duration and streams, loudnorm print for LUFS. Read motion-dictionary/review.md for promo pieces.
The agent cannot hear: anything only a listener can judge goes in the notes as pending for the human.
Preflight is a script that exits non-zero on: missing file, wrong resolution or duration, title too long, missing disclosure labels (paid promotion, synthetic content, affiliate notice), missing credits or licence text, hashtags out of policy, missing review notes. It runs before every post, and the post step refuses on failure.
Pitfalls
- Re-rendering everything for one change: stages write files so you can redo only the voice, only the picture.
- Batches of near-identical videos from one template read as mass-produced and get demonetised; vary the idea, not only the text.
- Captions from a previous transcript after the cut changed: regenerate words after every trim.
- Music fitted to an early cut ends in digital silence after a trim: refit the music last.
- Facts in the voice-over that are not in the source: the preflight cannot catch them; the script stage must cite them.
Source
Extracted from the owner's working pipelines (news Shorts, stream cuts, product spots, tech explainers), 2026-11
(Path 1). Remotion caption grouping from remotion-dev/skills remotion-captions (read 2026-11-20).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

