Cleans raw single-speaker recordings by removing silences, retakes, false starts, repeated lines, and background voices. Supports video mode (talking-head/screen recording with lip-sync) and audio-only mode (voiceover only, no video processing). Handles Bangla + English speech.
Ships in raw-cut. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Output:
--mode video): one clean .mp4 where every line is said once, by the best take, with short even pauses (≈0.15–0.3 s by ear), frame-locked lip-sync, and nothing else changed.--mode audio / --audio-only): one clean 48 kHz stereo PCM .wav (and/or .mp3 via --also-mp3) with zero video processing — never encodes master.mov, never builds video contact sheets, and never touches video streams even if the input is an .mp4!Script: scripts/rawcut.py inside this skill folder (skills/raw-cut/scripts/rawcut.py in the full pipeline, or <skill-dir>/scripts/rawcut.py when installed standalone via npx skills add). Requires Python 3 + numpy + ffmpeg 7+ (Pillow needed only in video mode). Always set PYTHONIOENCODING=utf8 on Windows. Run long commands in the background.
Standalone vs. Full Pipeline Paths: Inside the full
agent-video-editorworkspace, write clean outputs tooutputs/audio/clean_cuts/oroutputs/video/clean_cuts/and cache towork/<slug>. When installed standalone as a skill in any other folder, write clean outputs next to the input file (for example<name>_clean.wavor<name>_clean.mp4) and cache in./work/<slug>.
Skill Hygiene Rule: This skill folder contains instructions (
SKILL.md) and scripts (scripts/rawcut.py) ONLY — never store media assets, outputs, or cache files insideskills/raw-cut/.
| User Request | Flag | Behavior | Output Path |
|---|---|---|---|
| "শুধু audio raw cut করো" / "voice clean করো" / faceless video voiceover | --mode audio (or --audio-only) | 0% video work (source_audio.wav only, 5–10× faster, smooth audio crossfades, audio-only verify) | outputs/audio/clean_cuts/<slug>_clean.wav (add --also-mp3 for .mp3 too) |
| "video সহ raw cut করো" / talking-head or screen-record clean cut | --mode video | Constant-30 fps master.mov, video contact sheets, xfade + acrossfade, 0-frame lip-sync verify | outputs/video/clean_cuts/<slug>_clean.mp4 |
| Mode not specified | --mode auto (default) | Audio output ext (.wav/.mp3/.m4a/.flac) OR audio input OR no video stream → audio; otherwise → video | Routed automatically |
$env:PYTHONIOENCODING="utf8"
python skills/raw-cut/scripts/rawcut.py doctor
run calls it automatically. Use doctor --force only when something failed, or when you changed PC, key, or model.Transcription engine order (cheapest reliable option first):
| # | Engine | When | Setup |
|---|---|---|---|
| 1 | Local faster-whisper large-v3 | NVIDIA GPU + faster-whisper installed | pip install faster-whisper |
| 2 | Free API: Google AI Studio Gemini (gemini-flash-latest) | Free key | GEMINI_API_KEY=... (aistudio.google.com) |
| 3 | Router / paid API: OpenAI-compatible audio model | Key set | RAWCUT_BASE_URL+RAWCUT_API_KEY (+RAWCUT_MODEL) |
| – | Local on CPU | Last resort only | Slow (~4× realtime) and weak on Bangla |
Overrides: RAWCUT_ENGINE=local|api, RAWCUT_LOCAL_MODEL, RAWCUT_LANG (default bn). Put keys in env or .env. Never print a key.
A weak model is the #1 cause of missing lines: if speech coverage drops below 88% or any window fails, run prints TRANSCRIPT WEAK and stops safely.
python skills/raw-cut/scripts/rawcut.py run "inputs/raw_audio/<raw>.mp3" "outputs/audio/clean_cuts/<slug>_clean.wav" "work/<slug>" --mode audio --also-mp3
(Works identically even if <raw> is an .mp4 — --mode audio ignores the video track completely. Add --denoise if you want the cut taken from the denoised clean.wav instead of the untouched source_audio.wav.)
python skills/raw-cut/scripts/rawcut.py run "inputs/raw_video/<raw>.mp4" "outputs/video/clean_cuts/<slug>_clean.mp4" "work/<slug>" --mode video
prep → transcribe (24 s overlapping windows, parallel, cached) → takes (group retakes, pick defaults) → cut → verify.work/<slug>.keep.json. Delete keep.json to re-pick defaults, or delete windows/ + phrases.json to re-transcribe.prep, transcribe, takes, cut W out [--denoise] [--also-mp3], verify W out [--quick].work/<slug>/takes.json (text, timing, dB, completeness). Default pick is the last complete, full-length take. Change work/<slug>/keep.json only if an earlier take is clearly cleaner or more complete, then re-run cut + verify.run (start | middle | end per attempt). Change the pick only if the default misses words/stumbles OR has eyes closed, hand over face, or big posture shift (prefer lower move; join breaks ties).Always apply without being asked:
| Check | Audio Mode | Video Mode |
|---|---|---|
| Duration sync | audio … edl … diff ≤ 50 ms | video … audio … diff ≤ 33 ms |
| Lip-sync | (skipped — audio-only) | picture offset in frames: all 0 |
joins inside speech | none | none |
clips < 0.35 s (stutter) | none | none |
pauses > 0.4 s (clear speech) | none (or one borderline) | none (or one borderline) |
Fresh transcript (unless --quick) | Every line once, in order, nothing missing | Every line once, in order, nothing missing |
Report briefly to the user in their language: output path(s), final duration, final clean script, any non-obvious retake drops/choices, and (in video mode) any big head jumps worth hiding with a zoom later.
source_audio.wav), and uses smooth 40 ms triangular acrossfade at silent soft joins so Remotion and DAWs get sample-accurate, click-free audio.prep makes a constant-30 fps master and trims both streams by time (never frame index).STRONG_DB 15) drives pause planning; short onset/tail (TAIL_IN 0.06 / TAIL_OUT 0.12 s) prevents clipped syllables; inner pauses > 0.30 s compress to ≈ 0.13 s.lim_lo/lim_hi).xfade + acrossfade when gap < 3 s, head jump < 12, and both sides silent; hard cut otherwise.What SKILL.md sets; muted values are Claude Code's defaults
/raw-cut:raw-cutfrom raw-cut
npx claudepluginhub rakibhasandeveloper0/agent-video-editor --plugin raw-cut2 plugins ship this exact skill · first indexed Nov 30, 2026
Other plugins' skills for the same job