Логотип Trim Raw Video

Trim Raw Video

Сообщество
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...]

Обзор

Издательartemisln
Репозиторийedit-reel
Название навыкаtrim-raw-video
Звёзды
40
Форки
4
Файлы в комплекте
2
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 2

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — artemisln. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Trim Raw Video в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/artemisln/edit-reel/tree/main/plugins/edit-reel/skills/trim-raw-video
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

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
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Trim Raw Video в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Trim Raw Video, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Trim Raw Video не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

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.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ 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...]

Зачем использовать Trim Raw Video в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Trim Raw Video — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Trim Raw Video в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/artemisln/edit-reel/tree/main/plugins/edit-reel/skills/trim-raw-video. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Trim Raw Video?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Trim Raw Video?

С любым количеством. В TypingMind вы можете использовать Trim Raw Video с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Trim Raw Video?

Навык опубликован на GitHub. Издатель — artemisln. Условия лицензии можно найти в репозитории. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇