/victor-skills:video-remove-bgfrom victor-skills
Removes the background from a video clip — cut out characters/objects onto transparent (or black), keeping the soundtrack. Local and free (rembg + BirefNet). Trigger: remove/cut out background from a video, transparent video, alpha video, green-screen-less matting.
Ships in victor-skills. 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.
Frame-by-frame matting with rembg -m birefnet-general, re-encoded into formats that
really keep alpha. Everything local, $0.
S="${CLAUDE_PLUGIN_ROOT}/skills/video-remove-bg/scripts"
"$S/rmbg-video.sh" -i in.mp4 -s 0.8 -c auto -o out/minions # first pass: picks the crop
"$S/rmbg-video.sh" -i in.mp4 -s 0.8 -c auto -k 3 -o out/minions # keep object 3 only
# -s/-t segment · -c W:H:X:Y or auto (+ -k bands) · -a song.mp3 -A 24 external soundtrack
Outputs: out.mov (ProRes 4444, alpha — the reference), out_hevc.mov (HEVC+alpha,
~15× smaller), out_black.mp4, out_checker.png. The last step decodes a frame of each
file and prints ✓/✗ for real alpha. First run creates a venv in ~/.cache/video-remove-bg
(needs uv, ffmpeg); model downloads to ~/.u2net once (~1 GB).
Rerunning with the same -o resumes — matted frames are skipped.
align_audio.py clip.mp4 track.mp3 → offset; clip_time = asked_time − offset.
Corr > 0.3 on music ⇒ same recording.-c auto mattes 6 full frames, lists the
horizontal bands it found and writes boxes.png; with several bands it stops (exit 3).
Show boxes.png to the user, rerun with -k. The box is the union over the whole
segment, so a character that falls or jumps later stays in frame.out_checker.png-style: source /
checkerboard / black stacked). ~15–20 s per frame on CPU: 170 frames ≈ 50 min — run it
in the background, and let the user veto the framing while it is cheap..mp4 holds the last frame; the .movs just run the sound on.out_checker.png so they see what's transparent, and say that
QuickTime shows transparency as black — drop the .mov onto a Keynote slide to see it.isnet-anime is for flat 2D art,
wrong for glossy 3D CGI. birefnet-general (salient object, no human prior) works.pix_fmt=yuv420p
with the alpha intact (separate layer / Matroska BlockAdditional). Verify by decoding to
RGBA (verify_alpha.py); for WebM force -c:v libvpx-vp9, the native decoder drops alpha.-auto-alt-ref 0 (otherwise libvpx silently drops it), and some
Homebrew/static ffmpeg builds on macOS write yuv420p anyway. Use ProRes 4444 / HEVC.format=duration points past the last frame and the extraction returns nothing.-vsync → -fps_mode passthrough, or select duplicates/skips
frames and the numbering stops matching.rembg p processes files out of order — don't read progress from the first name.mean|Δalpha| / mean|Δsource| < 1
means the mask follows real motion (a cut, a fall). If one window flickers, pick the
calmest window (mean + max of source motion) instead of switching models.yt-dlp -F for real resolution; a crisp 1080p copy may be a
fan re-creation (read the description) — cleaner, but not the original./bin/bash is 3.2: set -u + an empty "${arr[@]}" aborts the script.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
9 skills in this plugin
/come-back-when-doneClears the terminal, then brings it back with a sound when the turn ends. Only on an explicit request to be summoned: "come back when done", "anunță-mă când e gata", "strigă-mă când termini"./dbBefore recommending or making any database change (index, column, constraint, migration, query rewrite). Triggers: indexing advice, schema changes, "add an index", "optimize this query"./jmeterCreates and runs JMeter load/performance tests. Trigger: JMeter, JMX, load/stress testing.npx claudepluginhub victorrentea/skills --plugin victor-skills