Index of every page on this site: llms.txt
All skills
brettr7388 avatar

/clipper

@f2b10aa
Run it yourself

Turn a long video into vertical captioned short-form clips. Use when the user says "clipify", "cut clips from this", "make shorts from this", "turn this stream into TikToks", or pastes a video URL/file and wants social-ready vertical cuts.

  • 9 files
  • 43.2 KB
  • Updated 4 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/brettr7388/app-killers/clipper

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

03-caption-craft.md

≈700 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Captions

Burned-in word-by-word captions are not decoration. Most people watch with sound off for the first second, and the caption is what makes them turn sound on. Every clip gets them.

Generate them

python3 scripts/build_ass.py CLIP.json OUT.ass opus

Three styles ship in the script:

Style Look Use for
opus Big bold white, active word gold Default. Works everywhere.
punch ALL CAPS, gold, slight pop on the active word Gaming, rage, hype
clean White, no highlight, smaller Talking head, storytelling, documentary

Burn them:

ffmpeg -y -i CLIP.mp4 -vf "subtitles=OUT.ass" \
  -c:v libx264 -preset fast -crf 20 -pix_fmt yuv420p -c:a copy FINAL.mp4

Subtitles must be burned in a separate pass after the vertical reformat, and the transcript must come from the trimmed clip — Whisper timestamps are relative to whatever file you fed it, so transcribing the source and using those numbers on a clip puts every word in the wrong place.

Fix the transcript before you burn

Whisper tiny.en gets ordinary speech right and proper nouns wrong. Streamer names, game titles, item names, and slang come out mangled. Open the JSON, correct the word fields, re-run build_ass.py. This takes thirty seconds and is the difference between a clip that looks produced and one that looks automated.

Also worth fixing:

  • Numbers written as words when digits read faster ("two hundred" → "200")
  • Filler that adds nothing ("uh", "um") — delete the word entry entirely
  • Profanity, if the account needs to stay advertiser-safe: swap to f*** in the caption while the audio stays as-is

Tuning

Edit the constants at the top of build_ass.py:

  • MAX_WORDS = 4 — words on screen at once. 3 for fast delivery, 5 for slow.
  • MAX_CHARS = 22 — line width. Lower it if long words run off-screen.
  • PAUSE_BREAK = 0.55 — a gap this long starts a new line. Lower for punchier cuts.
  • margin_v in the STYLES table — 420 keeps captions above every platform's UI. Raise it to push captions higher; do not lower it below ~400.

Font notes

The styles ask for Arial Black (macOS) and fall back automatically elsewhere. On Linux/WSL, install a proper heavy font or captions look thin:

sudo apt install -y fonts-dejavu fonts-liberation

Then change the font name in STYLES to DejaVu Sans and set bold to -1.

Check one frame before you burn twenty

ffmpeg -y -ss 2 -i FINAL.mp4 -frames:v 1 check.png

Look at it. You are checking for: text running off either edge, captions overlapping the subject's face, captions sitting low enough that a platform's UI will cover them, and misspelled names. All four are invisible until you look, and all four are fatal.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at f2b10aa. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 4 months ago

README badge

README badge for brettr7388/app-killers/clipper