/vibe-editing:horizontal-to-verticalfrom Vibe Editing
Reframes horizontal 16:9 clips to vertical 9:16 with face-tracking presets for talking-head, stage, podcast, and split-screen. Uses Y-lock (fixed eyeline) + face-box X tracking for stable output.
Ships in Vibe Editing. 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.
Locked 2026-06-08, updated 2026-06-10. One tool for face-tracking. One tool for split-screen stacking. Five locked presets. That's it.
The locked house style: Y is FIXED at the clip's median eyeline (no Y bob), X tracks the face-BOX center (not the nose tip — steadier on a moving subject). Per-frame X keyframes follow the subject so the face stays pinned at one output X coordinate while Y never moves. This is what makes the AC clips look the way they do, and what every prior attempt was missing.
The locked presets above assume a STABLE camera (Y-LOCK to median can't cancel a shaking camera) and
a SINGLE clear face. For handheld testimonial-ad footage (camera shakes, background attendees in frame),
qa_reframe_v2 locks onto the wrong/background face and the Y-lock leaves the vertical shake in. Use
_shared/testimonial_reframe.py instead: per-frame LARGEST-face detection (= foreground guest), crop
follows the face on X AND Y every frame → guest pinned dead-centre, shake cancelled. 🛑 NEVER vidstab
these (it rubber-bands/"swims" the frame). Verify by extracting CONSECUTIVE frames — the face must hold
the same screen position. (NOTE: YuNet's detector threshold is --score, not --face-conf.) Full SOP:
edit/references/testimonial_ads.md.
For assembly cuts (multi-segment clips built from separate sources), ALWAYS reframe each segment individually FIRST, then concatenate the reframed segments. Never concatenate raw segments into one file and then try to reframe the whole thing.
Why: Each segment may come from a different camera, a different angle, a different speaker. The face tracker needs to lock onto the correct face in each segment independently — with its own Y-LOCK median, its own X smoothing window, its own zoom. If you reframe after merging:
The correct order for assembly cuts:
1. Extract each segment as its own horizontal clip (from 4K source)
2. Reframe EACH segment individually:
qa_reframe_v2.py seg_00.mp4 seg_00_vert.mp4 --preset <per-camera> --no-scene-split --smooth 30
3. Concatenate the reframed vertical segments
4. Mux with audio
This is different from the scene-split mode below (which handles camera switches within ONE source file in a single pass). Assembly cuts = separate source files = reframe each, then merge.
The single biggest improvement to the entire clip pipeline. For ANY multi-angle footage within a single source file (podcasts, interviews, Q&A with camera switches), the architecture is:
Why this matters: Without this, camera switches cause:
Why single-pass, not split-concat: The v1 approach (detect → split into N files → reframe each → concat) had THREE encodes per clip (source → split segments → reframe each → concat final). This produced:
The v2 single-pass approach has ONE encode. The tracker state (last detected face position) resets to None at boundary frames — that's it. Everything else (per-segment Y-lock, per-segment X smoothing, per-segment interpolation) is just array math on the tracking data, partitioned by a segment-ID array.
🛑
--global-yis REQUIRED for same-angle assembled cuts (2026-06-12). Per-segment Y-lock is for TRUE multicam (each angle has its own eyeline). On a SINGLE locked camera with content seams (--cut-framesfrom an assembled cut), per-segment Y medians differ by a few px per segment, so EVERY cut visibly bumps the subject up/down — "the cuts are super jumpy... he moves up when he shouldn't" (caught by the user across a full 22-clip batch).--global-ykeeps ONE clip-wide eyeline median (the original Y-LOCK doctrine) while X still resets per cut. The render stage (render/stages/reframe.pyv2.2.0) passes it automatically forsingle/listiclepipelines; multicam (qa/podcast) keeps per-segment Y. Override per clip: manifeststages.reframe.y_scope: "clip" | "segment".
This same boundary-detection → per-segment-independent-processing → single-pass-render pattern applies to ANY per-segment operation:
The pattern: scene_boundaries[] → segment_ids[] → process each segment independently → render once.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/horizontal-to-vertical/scripts/qa_reframe_v2.py INPUT OUTPUT \
--preset {talking-head | stage | split-top | guest | podcast} [--res 1080|4k]
--preset | Use for | zoom | eye-y | ROI |
|---|---|---|---|---|
talking-head | Speaker talking-head from a desk (4K master source). PROVED 2026-06-08 on StayInAGreatMood batch. | 1.6 | 0.25 | 0.20 0.05 0.80 0.70 |
stage | Speaker on Q&A stage with audience in foreground. Tight upper-left ROI excludes audience. Used by qa_assembly.py for Speaker's cam (C2092). | 1.6 | 0.18 | 0.05 0.05 0.82 0.55 |
split-top | Speaker in the TOP half of a split-screen stack. Slightly looser. | 1.4 | 0.22 | 0.05 0.05 0.82 0.55 |
guest | Guest cam, single-face full-frame (NOT the static split-bottom crop). | 1.4 | 0.24 | 0.25 0.15 0.58 0.48 |
podcast | YouTube/podcast source already tightly framed (chest-up). No zoom — subjects already fill the frame, any zoom crops too aggressively. Auto-enables --scene-split. PROVED 2026-06-10 on George Guest x the creator (PeaceOrPower). | 1.0 | 0.28 | 0.10 0.05 0.80 0.70 |
All presets bake --lock-y --xcenter box. Smoothing window 41. Explicit --zoom / --eye-y / --roi / --lock-y / --xcenter override individual preset values.
--lock-x (added 2026-06-12, Speaker PeaceOrPower) — lock X per segment like Y. By default X is the
SMOOTHED face-box center (follows the speaker). On a seated talking-head who shifts/gestures, that
following reads as an unwanted slow horizontal pan within a single shot. --lock-x pins X to the
per-segment MEDIAN (static frame per camera angle), mirroring the Y-lock — pair it with --scene-split
so each angle still gets its own locked X. Use it for podcast/talking-head clips where the frame should
hold still; leave it off when the subject genuinely moves and you want the camera to follow.
Multi-angle source footage (podcasts, interviews, any video with camera switches between speakers) must not be reframed as one continuous piece. When the camera hard-cuts from speaker A to speaker B, the face tracker would smoothly keyframe the X position across — producing a sliding pan instead of a clean cut.
--scene-split (auto-enabled for --preset podcast) fixes this via single-pass scene-aware tracking (no splitting/concat):
--scene-threshold 0.20) → frame numbers stored in _scene_frames: set[int]if n in _scene_frames: last = None to reset the face tracker state at each boundary. The detector picks up the new speaker fresh instead of following from the previous one.seg_ids[frame] maps every frame to its segment index (0, 1, 2...). This array drives ALL per-segment operations.np.median(y_values_in_that_segment) as its locked Y. Different speakers sit at different heights; a single global median would be wrong for at least one of them.y_lock_per_seg[seg_ids[i]] to get the correct Y for each frame. One ffmpeg pipe, one encode pass, zero quality loss.If no scene changes are detected, falls through to the normal single-piece reframe (segment count = 1, all arrays are whole-clip).
# Auto for podcast preset:
python3 qa_reframe_v2.py input.mp4 output.mp4 --preset podcast --res 1080
# Explicit on any preset:
python3 qa_reframe_v2.py input.mp4 output.mp4 --preset guest --scene-split --res 1080
# Disable for podcast if source is genuinely single-angle:
python3 qa_reframe_v2.py input.mp4 output.mp4 --preset podcast --no-scene-split --res 1080
PROVED 2026-06-10: 6/15 clips from PeaceOrPower had camera switches (3–5 segments each). Without scene-split, the X tracker slid between speakers on every cut. With scene-split, each segment locks independently = clean hard cuts between angles. Architecture note: v1 split-then-concat (triple encode) produced glitch frames at boundaries; v2 single-pass (reset tracker at boundary frames) eliminated them.
A MISSED camera cut is the #1 reframe defect: two angles end up in ONE segment, so the X-track
interpolates between the two speakers' face positions → a visible horizontal pan/slide across what
should be a hard cut. Operator flagged exactly this ("it keyframes across horizontally instead of
individual camera angles"). The default --scene-threshold can be too high for a subtle angle change
(same set, similar framing, small head-position delta). So, every multi-angle reframe:
scene-split: N segments, cuts at frames [...] and sanity-check N against the
number of camera cuts you can see in the source (contact-sheet or eyeball).--scene-threshold (try 12 → 8) and/or --min-seg, and re-run. Never ship X interpolating between
two camera angles.YuNet DNN face detect → ROI gate (rejects audience / off-camera people) → NEAREST-to-previous selection (locks onto the speaker across frames) → track the face BOX center for X, median Y across the whole clip → median pre-filter + box-car smoothing window 41 → 9:16 crop where X follows the smoothed nose-x and Y is FIXED at clip median. Velocity-continuous, no Y bob, no keyframe jerk.
Graceful fallback: if no face found in ROI for the whole clip, holds a static crop centered on the ROI midpoint. Keeps the build robust across guests/source quality.
For ANY 2-person split-screen (podcast, interview, debate, reaction — anything that isn't a Q&A workshop stage):
python3 ${CLAUDE_PLUGIN_ROOT}/skills/horizontal-to-vertical/scripts/split_facetracked.py \
--top host.mp4 --bottom guest.mp4 --out split.mp4
That's it. The wrapper reframes each angle with the locked talking-head template, bakes asymmetric eye-y values (top=0.15 face-high, bottom=0.65 face-low) so the face lands at the upper-third of EACH 960-tall tile, then stacks via make_splitscreen.py with the gaussian seam shadow. Symmetric, clean.
Override knobs (when defaults don't match the footage):
--top-preset / --bottom-preset — swap presets per side (e.g. stage for a wide stage cam)--top-eye-y / --bottom-eye-y — re-tune the face position in each tile--start / --end — clip the stack to a sub-rangeqa_assembly.py insteadFor the full Q&A pipeline (per-segment fast-seek cuts, per-cam reframe with asymmetric ROIs for stage-with-audience geometry, 4-mic audio mix, transcribe, SPICE captions, house grade, HW H.264), use edit/scripts/qa_assembly.py directly — it calls into THIS skill's tools and adds the workflow chrome. split_facetracked.py is for SIMPLE two-cam stacks where each cam has a centered subject; qa_assembly.py is for the full Q&A multicam build.
edit --type podcastFor lav-mic podcasts with sync, diarization, jumpcut, and dual-color captions, the edit skill's podcast path (edit/scripts/multicut.py) runs the full build — by default it uses STATIC crop per speaker (because podcast subjects don't usually move enough to need tracking, and static is jitter-free). If you want face-tracking instead of static crop on a podcast, the per-side step inside multicut.py would be the swap target — small change, do it when you have podcast footage to verify against.
All in THIS folder (${CLAUDE_PLUGIN_ROOT}/skills/horizontal-to-vertical/) as of 2026-06-08:
scripts/qa_reframe_v2.py (the only single-face tool you should call)scripts/make_splitscreen.pyscripts/yunet.onnxassets/seam_shadow.png_shared/fast_encode.py (VideoToolbox, ~4× libx264)All callers (edit/scripts/qa_assembly.py, edit/scripts/qa_build.py, per-guest wrappers in brand job folders) point directly to THIS folder — no symlinks needed.
A 720p source CANNOT produce a sharp 1080p vertical no matter what tool/zoom you use — the crop region is too few pixels, upscale is too aggressive. Always reframe from the highest-resolution master available (4K HEVC if recorded that way). If the input is a downscaled "horizontal" deliverable from a prior listicle/short pipeline, find the 4K original in <project>/00_SOURCE/ and reframe from THAT using the same cut_spec.json timestamps. The proxy and master share a timeline.
| What | Where | Why |
|---|---|---|
vertical-reframer | _archive/2026-06-08_facetracking_consolidation/ | Step-function crop, snaps every 1–4s. Deprecated 2026-06-04. |
qa_reframe_stage.py | (in scripts/, deprecation note added — its callers still work via the symlink) | Earlier "canonical" mistake. No Y-lock, nose-only tracking. Produces visible micro-jitter on stationary subjects. qa_reframe_v2.py supersedes it. |
Old Haar reframe.sh + detect_face_dense.py + reframe_h2v.py + reframe_yunet.py | (in scripts/, legacy fallback) | All predate the Y-lock + xcenter-box discovery. qa_reframe_v2 is strictly better. |
Always pull a contact sheet on a render before declaring it good. The sf-audit centering check has weak detection and false-negatives on hats/beards/mics. EYEBALL it. Stat output from qa_reframe_v2 (hits 100% | x 0.50-0.52 | y [email protected]) confirms the tracker found the face every frame and Y is genuinely locked — but you still need to watch the playback.
assets/seam_shadow.png (opens in a new tab)scripts/detect_face_dense.py (opens in a new tab)scripts/guest_panel_render.py (opens in a new tab)scripts/make_splitscreen.py (opens in a new tab)scripts/qa_reframe_v2.py (opens in a new tab)scripts/reframe.sh (opens in a new tab)scripts/reframe_h2v.py (opens in a new tab)scripts/reframe_yunet.py (opens in a new tab)scripts/split_facetracked.py (opens in a new tab)scripts/yunet.onnx (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub maddexritter-rgb/vibe-editing --plugin vibe-editing19 skills in this plugin
/audit-audioDedicated audio auditor. Receives a rendered clip and checks ONLY audio quality: word clipping, pops/clicks at splice points, level consistency, buzz/hum, music bed balance, clean open/close. Runs in fresh context — audio only, no video. Returns structured pass/fail per check with timestamps for failures. Part of the post-render audit fan-out at edit step 9.
/audit-captionsDedicated caption auditor. Receives a rendered clip and checks ONLY caption quality: accuracy vs spoken audio, speaker color attribution, timing sync, formatting, emphasis, and positioning. Runs in fresh context with NO knowledge of how the clip was made. Returns structured pass/fail per check with specific timestamps for failures. Part of the post-render audit fan-out at edit step 9.
/audit-scriptDedicated editorial/script auditor. Receives ONLY the transcript text of a rendered clip (no video, no audio). Checks logical flow, context-before-payoff, cold viewer comprehension, one-arc structure, hook quality, brand safety, and SOP compliance. Uses all editorial SOPs (post bible, scorecard, Q&A SOP, hooks taxonomy). Runs in fresh context with NO knowledge of how the clip was made or what footage it came from. Returns structured pass/fail per check with specific line references. Part of the post-render audit fan-out at edit step 9.
/audit-visualDedicated visual auditor. Receives a rendered clip with audio STRIPPED and checks ONLY visual quality: face tracking stability, framing consistency, jump cuts, frozen frames, black frames, rendering artifacts. Cannot see captions (they're burnt in — use audit-captions for that). Runs in fresh context with NO editing knowledge. Returns structured pass/fail per check with frame numbers for failures. Part of the post-render audit fan-out at edit step 9.
/caption-clipsTHE single caption skill. There is ONE caption style for ALL footage — "spice" (the locked the reference editor look). Burns it onto any short-form clip via ONE engine. Default and only style. Use whenever the user says "caption this", "add captions", "pro/speaker/spice/montserrat captions", "caption these clips", "split this reel and caption each one", or "/glow" (glow is retired → produces spice). Trigger keywords caption this clip, add captions, pro captions, spice captions, speaker captions, montserrat captions, caption these, reel captions, subtitle, burnt-in captions, word-by-word captions, glow./editOrchestrate raw footage into short-form clips: ingest, source inspection, moment selection, cutting, reframing, captions, music, rendering and checks. Use for make clips, make shorts, cut clips, mine clips, podcast clips, Q&A clips, hotline clips or multicamera edits. Connect the current editing providers through onboarding before first production use.
Other plugins' skills for the same job