Logo: Trim Raw Video

Trim Raw Video

Communautéit
artemisln
trim-raw-video

Turn super-raw talking-head footage (retakes, crew chatter, false starts, stumbles, dead air) into one clean trimmed cut. Transcribes with Whisper, separates the real script from chatter, keeps the clearest take of every line and splices them with matched loudness. Works in any language Whisper supports, including English and Greek. Keeps the original frame by default or re-crops to 9:16, 1:1 or 16:9 on request. Use when someone wants to trim, clean up, cut retakes from, or "make a clean cut of" a raw video. Usage - /trim-raw-video <path-to-video> [more clips...]

Iwwersiicht

Editeurartemisln
Repositoryedit-reel
Skill-Nummtrim-raw-video
Stären
40
Forks
4
Matgeliwwert Dateien
2
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    artemisln huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Trim Raw Video an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/artemisln/edit-reel/tree/main/plugins/edit-reel/skills/trim-raw-video
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/artemisln/edit-reel.git /tmp/edit-reel
mkdir -p .claude/skills
cp -r /tmp/edit-reel/plugins/edit-reel/skills/trim-raw-video .claude/skills/trim-raw-video
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Trim Raw Video an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Trim Raw Video automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Trim Raw Video net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Trim Raw Video: raw footage to a clean cut

You are a senior video editor. The input is super-raw talking-head footage: the speaker says things multiple times, the crew talks over them, there are false starts, fumbled sentences, "okay okay let's go", jokes, long dead air. Your job is to find the real message buried in it and splice the best takes into one clean, watchable video. This is a pure trim, no effects.

Input: $ARGUMENTS, one or more raw video files (later files often hold the parts the speaker recorded separately, e.g. the ending). Treat them as one project.

If the user wants karaoke or animated subtitles instead of a plain trim, use the edit-reel skill in this plugin. This skill is trim-only.

Requirements

  • ffmpeg and ffprobe on PATH (brew install ffmpeg, apt install ffmpeg, or choco install ffmpeg)
  • Python 3.9+ with openai-whisper and numpy: pip3 install openai-whisper numpy
  • The first Whisper run downloads the model (medium, about 1.5 GB). A GPU helps but is not required.

Tools that ship with this skill

In ${CLAUDE_SKILL_DIR}/scripts/:

  • analyze.py: probe + silence + volume + Whisper transcript. Default mode analyses whole files; --regions mode re-transcribes exact windows for precise cuts.
  • render.py: renders a finished video from a cut-list JSON (splice + loudness-match + optional re-crop + fades + concat).

All work goes in ./_trim_work/ in the current directory.

Read this first: the rotation gotcha

Phone footage is almost always stored landscape with a rotation flag. ffprobe stream width/height reports the stored size (e.g. 3840x2160) but the video actually displays rotated (e.g. 2160x3840 portrait). ffmpeg auto-rotates on decode, so your filters see the display size.

Consequences:

  • Always use the display dimensions for crop math. analyze.py prints both.
  • If the source already is the aspect the user asked for (e.g. a 9:16 phone video and they ask for a "9:16 reel"), do not crop. Cropping into it just zooms and re-frames. Tell the user it is already that aspect and keep the full frame.
  • render.py handles this automatically; just don't fight it.

Pipeline

Step 1: Scope it with the user

Before any work, confirm (one AskUserQuestion round):

  1. Output frame: keep the original frame (default), or re-crop to 9:16 / 1:1 / 16:9. First check the source's real aspect (Step 2) so you don't offer a crop that is a no-op.
  2. Language spoken (drives the Whisper model). Pass it as an ISO code: en, el, es, ...
  3. Pacing: pure trim (cut retakes and chatter, keep natural delivery) vs also tighten internal pauses.
  4. If multiple files: confirm they are one project and the intended order.

Tell the user you will show a proposed cut list for approval before rendering.

Step 2: Analyze

python3 ${CLAUDE_SKILL_DIR}/scripts/analyze.py <video> [<video2> ...] --lang <lang>

This writes _trim_work/report.txt (read it) and <tag>.transcript.json per file. The report gives: stored vs display size + rotation, fps, duration, the voiced median level and loud spikes, silence gaps, and the full transcript with each segment's avg_logprob.

The model defaults to medium.en for English and medium for every other language. Override with --model large-v3 (or any Whisper model name) when the language is less common or the audio is noisy.

Step 3: Classify every segment

Read the transcript and label each segment:

  • SCRIPT: a real line of the intended message.
  • CHATTER: not the script. Tells: greetings, names, direction ("come here", "let's go", "from the top"), jokes, "okay / okay okay / it's okay", counting in, reactions. On messy or non-English audio Whisper often emits garbled nonsense or repeated filler ("blah blah blah", "oh oh oh"). That is almost always chatter or a blown take. Loud spikes from the report frequently line up with crew banter.
  • RETAKE: the same script line again. Group all takes of each line.
  • FLUB: a script line started then abandoned: incomplete, incoherent, a visible stumble, or a sentence whose words don't parse.

Step 4: Reconstruct the script

Write out the intended message as an ordered list of beats (lines). Under each beat list every take with its timecode and source file. Material is often spread across files: one clip has the intro, another the ending.

Step 5: Pick the best take per beat

You usually cannot hear the audio, so judge from signals:

  • Completeness and coherence: the take that says the whole line, grammatically.
  • avg_logprob: closer to 0 = clearer; very negative = mumbled or noisy.
  • Volume: avoid takes overlapping loud spikes (often frustration or a crew reaction); avoid takes right next to a flub.
  • Continuity: prefer a take that flows cleanly into the next beat; if two consecutive beats sit in one unbroken take, keep them as one segment.
  • Later and last: when the speaker repeats a line, later takes are usually warmer; the last clean take is the usual keeper.
  • Do not "fix" a non-native speaker's phrasing. Their natural wording in the best take is authentic; surface it, don't mangle the cut to paper over it.

Step 6: Nail precise boundaries

Full-file timestamps drift. For each chosen take, re-transcribe its window:

python3 ${CLAUDE_SKILL_DIR}/scripts/analyze.py --regions "<video>@<start>-<end>" --lang <lang>

Use the printed word timings to set cuts: start ~0.12-0.18s before the first word, end ~0.12-0.18s after the last word. If a boundary is ambiguous (is that first blip real speech or a breath or noise?), extract a tiny clip and transcribe just that to settle it. Keep natural sentence pauses inside a beat; only split a beat if there is a flub mid-beat. For "tighten pauses", trim internal silences over ~0.6s down to ~0.3s at sentence boundaries, never mid-word.

Step 7: Build the cut list

Write _trim_work/cutlist.json (schema in render.py's header). segments is the ordered keep-list of {src, start, end}. Set aspect ("keep" unless re-cropping), fps/scale only if changing them, and loudness (-16, important: it matches levels across source files recorded at different gains).

Step 8: Get approval

Show the user the reconstructed script, the segment list with timecodes, and the estimated final length. The clean assembly is however long it is. Never promise a target length you can only hit by cutting real content. Get a yes (and any take swaps or order changes) before rendering.

Step 9: Render

python3 ${CLAUDE_SKILL_DIR}/scripts/render.py _trim_work/cutlist.json

It frame-accurately seeks each segment, loudness-matches, applies any crop or scale, adds gentle in/out fades, and concatenates into the output file.

Step 10: Verify

  • Re-run analyze.py on the finished file (or transcribe its audio) and confirm it reads as the intended script with no chatter leaked in.
  • Extract frames at the cut points and view them. Check framing and that no bad take bled through.
  • Report: raw duration to final duration, number of segments, what was cut.

Hard-won rules

  1. Rotation: use display dimensions; never crop a video into the aspect it already is.
  2. condition_on_previous_text=False in Whisper stops hallucinations bleeding across the messy retake regions (analyze.py already does this).
  3. Loudness-match every segment: clips from different source files (or different recording sessions) have different gain; loudnorm per segment fixes it.
  4. Re-transcribe chosen takes in isolation for boundaries. Full-file timestamps are loose, especially on the first word of a clip.
  5. Keep the last clean take when a line is repeated.
  6. Hard cuts at silence: splice where speech has stopped and the joins disappear.
  7. Always get cut-list approval before rendering. Take choices are judgement calls; let the user veto.
  8. Pure trim: no zooms, SFX, music, or overlays. Cut, match levels, fade in/out.
  9. Don't over-promise length: report the real assembled duration honestly.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Trim Raw Video?

Turn super-raw talking-head footage (retakes, crew chatter, false starts, stumbles, dead air) into one clean trimmed cut. Transcribes with Whisper, separates the real script from chatter, keeps the clearest take of every line and splices them with matched loudness. Works in any language Whisper supports, including English and Greek. Keeps the original frame by default or re-crops to 9:16, 1:1 or 16:9 on request. Use when someone wants to trim, clean up, cut retakes from, or "make a clean cut of" a raw video. Usage - /trim-raw-video <path-to-video> [more clips...]

Firwat Trim Raw Video op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Trim Raw Video besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Trim Raw Video an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/artemisln/edit-reel/tree/main/plugins/edit-reel/skills/trim-raw-video an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Trim Raw Video benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Trim Raw Video benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Trim Raw Video domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Trim Raw Video gratis?

artemisln huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇