Communitygithub.com

video-jumpcut-polish

An end-to-end automated video editor and pre-publish packaging pipeline that transforms raw footage—solo talking-head, video podcast, or product unboxing/review—into a complete, ready-to-publish bundle. It automatically adapts pacing, neural voice isolation, loudness, zoom framing, subtitles, and subject-faithful, high-CTR covers to the detected video genre.

What is video-jumpcut-polish?

This skill, known as 'video-jumpcut-polish,' is a comprehensive, fully automated video editing and publishing pipeline designed for content creators. It processes raw video files—such as solo talking-head segments (口播/知识分享), video podcasts (个人播客/视频播客/访谈), or product unboxing/reviews (开箱/测评)—and outputs a complete, ready-to-upload delivery package. The skill is supported primarily as a terminal-based workflow (e.g., for integration with AI agents like Claude Code) and requires dependencies like ffmpeg and Python. It works by first classifying the video genre and applying genre-specific defaults for pacing, voice isolation, loudness targets (e.g., -15 LUFS), zoom framing, and subtitle style. A key feature is its 'Dual-Insurance Subject Fidelity' for generating high-CTR covers using Google Flow MCP, ensuring the subject's face or product is accurately represented. The process includes analysis, intelligent cut detection (removing pauses, stutters, and verbal tics while preserving rhetorical beats), neural denoising via Apple Neural Engine, visual privacy blurring, HDR-to-SDR tone mapping, and generation of platform-specific assets like cover images, subtitles, and publishing copy. Non-destructive editing is guaranteed; the original file is never overwritten.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/zh30/video-jumpcut-polish/tree/HEAD/skills/video-jumpcut-polish

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Video Jump-Cut Polish & Publish Kit

Drop in a raw camera video and deliver a complete, ready-to-publish folder (<input_stem>_成品发布包/ beside the input file; original never overwritten):

<视频名>_成品发布包/
├── <视频名>_精剪成片.mp4        # Polished video (0.0ms A/V sync)
├── <视频名>_精剪成片.srt        # Standard sidecar subtitles (Bilibili/YouTube)
├── 封面_小红书_3x4.jpg          # 1080×1440 (3:4 waterfall safe zone)
├── 封面_抖音视频号_9x16.jpg     # 1080×1920 (clears right icons & bottom 22%)
├── 封面_B站YouTube_16x9.jpg    # 1920×1080 (clears bottom-right duration badge)
└── 发布文案与自查清单.md         # Compliance scan + platform titles/copy/tags/chapters/pinned comments

Auto Content-Type Adaptation (Detect in Step 2)

After listening to audio_full.mp3 and inspecting contact_sheet.jpg, classify the video into one of 3 genres and automatically apply its tailored defaults (never force an unboxing template onto a podcast or talking-head video!):

GenrePacing & Cut StyleVoice & LoudnessFraming / ZoomSubtitlesCover Strategy (Dual-Insurance Subject Fidelity)
1. Solo Talking-Head (单人口播 / 观点 / 干货)Crisp & punchy: 0.12–0.22s clause gaps, 0.28–0.38s topic breaks; cut all 嗯/呃/然后 & stutters--isolate 90 (ultra-clean studio vocal), --lufs -15"zoom": 1.12, "zoom_y": 0.35 (head-safe upper anchor so punch-in never clips speaker's head!)Full Retina PingFang SC highlighted burn-in + .srt + chapter badgesPortrait Fidelity: pick sharpest expressive non-blinking frame (eyes open, natural smile/emphasis); Track A (nano-pro studio relight preserving exact face likeness, or @Character if saved in Flow) / Track B (Apple Vision real portrait cutout + AI studio backdrop & bold thesis headline)
2. Video Podcast / Monologue (个人播客 / 视频播客 / 深度访谈)Relaxed, human breathing room: keep natural 0.22–0.35s clause pauses & 0.45–0.65s thoughtful beats; cut only dead air (>0.8s), major stumbles, and distracting tics; keep natural laughs/emotion--isolate 88, --lufs -16 (Apple Podcasts / Bilibili long-form comfort standard, zero listener fatigue)Subtle "zoom": 1.06, "zoom_y": 0.35 on major chapter shifts only (avoid jumpy cuts)Default .srt sidecar + subtle chapter badges (or highlight quotes only; avoid dense Douyin-style full-screen text unless requested)Podcast Editorial Look: sharpest authentic speaker frame (or guest split) + warm mic/study bokeh lighting + clean magazine-style EP tag & core provocative question; never alter speaker's face
3. Product Unboxing / Review (开箱 / 实物测评)Tight speech + preserve tactile unboxing reveals & case clicks; trim idle waiting / arms crossing lens--isolate 78 (tames room hum while preserving crisp tactile clicks), --lufs -15"zoom": 1.12, "zoom_y": 0.50 on key specs/verdictsFull Retina PingFang SC highlighted burn-in + .srt + chapter badgesHardware Fidelity: sharpest 70%-fill tight product crop(s) (+ static photo if given); Track A (nano-pro strict industrial-design preservation) / Track B (Apple Vision real product cutout + contact shadow composite)

Feature Matrix: Default ON vs Optional

Default ON (Run Automatically on Every Raw Video)

FeatureImplementation / DefaultNotes
1. Fast 2s media analysisanalyze.py (-skip_frame nokey)Probes specs/HDR/VFR, extracts 48k WAV + compact MP3(s), 10ms pause timeline, keyframe overview sheet
2. Semantic jump-cuts + intentional pause preservationinspect_regions.py + cutlist.jsonMultimodal audio + visual classification: cuts mid-clause stumbles, restarts, fillers (嗯/啊/呃/哎, sentence-initial 然后/就是/那个), and dead air while preserving intentional rhetorical/emotional pauses (0.45–0.70s after punchlines, rhetorical questions, twists, or visual reveals) with 12ms cosine micro-fades
3. Apple Neural Engine denoise + 2-pass broadcast voicerender.py default ON (--isolate 80 --lufs -15)Stage-1 macOS AUSoundIsolation (0ms latency-compensated, FCP-grade ML denoise & dereverb; use 75–85 for unboxing, 90–100 for noisy rooms) + Stage-2 6-band broadcast EQ + optical compressor + 2-pass linear -15 LUFS / -1.5 dBTP loudnorm (--no-voice-enhance to disable)
4. Visual privacy scan & local Gaussian blurInspect contact_sheet.jpg → --blur-region "x,y,w,h"Automatically check for readable computer monitors, courier address labels, phone popups, or QR codes; if spotted, apply normalized --blur-region (e.g. "0,0,1.0,0.22") cleanly in the same render pass
5. Platform-safe SDR color + subtle graderender.py default ON (--color sdr, --grade)Converts iPhone 10-bit HLG/PQ HDR to Apple-matched Rec.709 SDR so Douyin/Xiaohongshu/Bilibili never blow out, plus subtle +4% contrast / +5% saturation / crisp unsharp (use --color keep for native HDR, --no-grade to disable)
6. Semantic punch-in zoom"zoom": 1.12 on key topic-change segmentsApplied on narrative shifts/emphasis points (never on a mechanical timer) to break fixed-camera fatigue
7. Retina PingFang SC subtitles + chapter badges + .srt--captions captions.json (.bin/render_subs)Two-pass solid white PingFang SC + *keyword* gold highlights + top-left chapter pill "badge", UI safe-zone positioned, plus .srt sidecar
8. High-CTR AI Covers via Google Flow MCP (3 ratios)gflow_generate_image (nano2 + real video reference frames); fallback .bin/make_coversPrimary default when gflow-cli MCP is authenticated: extracts 1–2 real product reference frames (publish_kit.py --extract-refs) and generates studio-lit, high-CTR covers in exact platform ratios (3:4 XiaoHongShu, 9:16 Douyin, 16:9 Bilibili/YouTube) while preserving real product likeness. Falls back automatically to instant local .bin/make_covers if offline
9. High-Exposure Copywriting + SEO/CTR Linter + Compliance Kitcopywriting_playbook.md + publish_kit.py → 发布文案与自查清单.mdExtracts 3-tier SEO keywords (core / long_tail / question), drafts 3 distinct title angles per platform (Pain/Contrast, Number/Value, Search-Intent) strictly complementary to the cover, writes tailored copy/Show Notes/Golden Quotes/pinned comments for 小红书、抖音、微信视频号、B站、YouTube, and automatically lints truncation limits, cover-title overlap, SEO coverage, and Advertising Law / 引流 compliance

Optional (Enable When Requested)

FeatureHow to Enable
Custom BGM with auto-duckingPass --bgm <track> --bgm-vol -22 --bgm-delay 0.0 (if the user wants new music and ace-music MCP is connected, generate a custom vocal-free instrumental track first!)
Golden 3-Second Hook reorderingPlace the highlight segment first in cutlist.json (out-of-order segments supported natively with -to early stop)
Subtle global speed-up--speed 1.06 (default 1.0; keeps pitch natural)
Native 10-bit HDR export--color keep (for YouTube HDR / Apple devices)
0-second Final Cut Pro timeline--fcpxml <out.fcpxml> or --fcpxml-only <out.fcpxml> via export_fcpxml.py

Prerequisites

  • ffmpeg and ffprobe on PATH (if missing on macOS: NONINTERACTIVE=1 brew install ffmpeg).
  • Python 3 standard library only (swiftc compiles and caches native helpers once in scripts/.bin/: voice_isolate, render_subs, make_covers).

Standard Automated Workflow

Let $SKILL_DIR be the directory containing this SKILL.md. Keep scratch files inside <artifact_dir>/scratch/edit_<basename>. Create the delivery folder <input_dir>/<input_stem>_成品发布包/.

Step 1: Analyze Video (~2–3s)

python3 "$SKILL_DIR/scripts/analyze.py" \
  "<INPUT_VIDEO>" --work-dir "$WORK_DIR"

Step 2: Listen, Privacy-Check & Plan

Call read_file in parallel on $WORK_DIR/audio_full.mp3 (or parts), $WORK_DIR/contact_sheet.jpg, and $WORK_DIR/timeline.txt.

  1. Privacy check: Examine contact_sheet.jpg for readable monitors, address labels, chat windows, or QR codes. If present, record normalized --blur-region "x,y,w,h" boxes (e.g., "0,0,1.0,0.22" for top monitors).
  2. Speech cleanup & intentional pause preservation (never cut blindly by volume!):
    • Cut (accidental dead air / stumbles): mid-clause hesitations, trailing word drags (就是——), fillers (嗯/啊/呃/哎, sentence-initial 然后), false starts/restarts, heavy breaths, or pauses where the speaker glances away at notes/teleprompter.
    • Preserve & sculpt (intentional pauses / beats): pauses occurring after a complete sentence — especially rhetorical questions, punchlines, plot twists, or emotional takeaways — where prosody ends decisively (rising question or firm drop, no filler) and/or visual frames show direct eye contact, expressive reaction (smile, brow raise, shrug), or meaningful physical action (unboxing clicks, product reveals). Keep 0.45–0.70s of breathing room rather than crushing them to 0.15s (only gently trim extreme > 1.5s gaps).
  3. Hero frame & structure: Pick the cleanest hero timestamp (edited timeline) for covers, topic-shift segments for "zoom": 1.12, and logical chapters.

Step 3: Pinpoint Tight Splices (< 1s)

python3 "$SKILL_DIR/scripts/inspect_regions.py" \
  "$WORK_DIR" "intro:10.0-18.5,stutter:75.8-78.6" --sheet "102-141"

Listen to sliced .mp3 clips via read_file alongside the 50ms ASCII waveforms to lock exact boundaries.

Step 4: Write cutlist.json & Audit Audio Preview (~4s)

Write $WORK_DIR/cutlist.json (include "zoom": 1.12 on 3–6 narrative shift segments; sculpt pause lengths by intent rather than flat-cutting: 0.10–0.16s mid-sentence, 0.18–0.28s clause, 0.30–0.42s topic break, 0.45–0.70s intentional rhetorical/dramatic pause, >= 0.25s tail safety after final syllable):

python3 "$SKILL_DIR/scripts/render.py" \
  "$WORK_DIR" "$WORK_DIR/cutlist.json" --preview

(--voice-enhance, --isolate 80, --lufs -15 are ON by default.) Mandatory audit: Call read_file on $WORK_DIR/preview.mp3 to verify every splice, vocal quality, and the final word before rendering video.

Step 5: Write captions.json & Render Final Video

Using the exact edited timestamps printed by --preview, write $WORK_DIR/captions.json (wrap core numbers/selling points in *...* for gold highlight; add "badge" on chapter starts), then run one single hardware render:

python3 "$SKILL_DIR/scripts/render.py" \
  "$WORK_DIR" "$WORK_DIR/cutlist.json" \
  --render "$DELIVERY_DIR/<STEM>_精剪成片.mp4" \
  --captions "$WORK_DIR/captions.json" \
  [--blur-region "0,0,1.0,0.22"] [--bgm "<BGM_PATH>"]

Step 6: Dual-Insurance High-CTR Covers (Subject-Fidelity Guaranteed) & Publishing Kit

Whether the hero subject is the speaker's own face (talking-head / podcast) or a real physical product (unboxing / review), never let AI hallucinate an unrecognizable face or wrong hardware details. Run the Dual-Insurance Subject Fidelity pipeline when gflow-cli MCP is authenticated:

6.1 Extract Sharpest Tight Subject Crop(s) + Apple Vision Cutout (~1s)

Run publish_kit.py --extract-refs (samples 7 frames around each timestamp, auto-selects the sharpest zero-blur frame, tight-crops the subject, and generates transparent Apple Vision PNG cutouts via .bin/product_tools):

  • Talking-head / Video podcast: pick a timestamp where the speaker's eyes are open, expression is engaged/natural, and hands aren't blocking the face; omit the crop box (uses automatic Vision subject crop) or crop tightly around head & shoulders (--make-cutout cleanly lifts the real person!).
  • Product unboxing / review: pass tight crop box(es) around the product so it fills ~70% of the reference image (or use a static product photo if supplied).
python3 "$SKILL_DIR/scripts/publish_kit.py" \
  "<INPUT_VIDEO>" "" "$WORK_DIR/refs" \
  --work-dir "$WORK_DIR" \
  --extract-refs "12.5" \
  --make-cutout

6.2 Generate High-CTR Covers (Insurance Track A + Track B)

Probe gflow_auth_status(profile="default") first, and ALWAYS call gflow_generate_image sequentially (per-profile browser lease — never in parallel!):

  • Insurance Track A — High-Fidelity Studio Relighting (model="nano-pro"):
    • Pass the tight subject crop(s) (ref_01_crop.jpg, …) to gflow_generate_image(model="nano-pro", ...) (for returning solo hosts who saved a Flow character asset, you may also reference @Name). Explicitly instruct the model to preserve exact facial identity / real hardware shape, logo placement, and proportions without distortion.
    • Mandatory Visual Fidelity Audit: Call read_file side-by-side on the generated cover AND ref_01_crop.jpg. Verify zero garbled Chinese glyphs AND authentic facial likeness / hardware accuracy!
  • Insurance Track B — 100% Pixel-Authentic Real Cutout Composite (Zero AI Subject Distortion):
    • Use Track B directly whenever strict pixel-for-pixel face or hardware fidelity is required (or automatically whenever Track A shows drift!).
    • Call gflow_generate_image(model="nano2", ...) to generate ONLY the cinematic backdrop/studio desk/podcast atmosphere and bold high-CTR Chinese typography, leaving an empty clean illuminated zone for the real subject.
    • Composite the 100% real Apple Vision cutout (real person OR real product) onto the AI cover with natural contact/drop shadow:
      "$SKILL_DIR/scripts/.bin/product_tools" composite \
        "<ai_empty_stage.jpg>" "$WORK_DIR/refs/cutout_01.png" \
        "$DELIVERY_DIR/封面_B站YouTube_16x9.jpg" \
        0.74 0.52 0.42 0.80
      
    • *(Typical placement presets: 16

Related Skills