Communitygithub.com

DomCamillo2/影片編輯

根據音樂節拍、重拍及樂句變化剪輯照片或影片,或診斷感覺節奏不對的剪輯。適用於音樂主導的時間點與轉場;請勿將波形峰值或自動標記等同於已驗證的音樂重音。

影片編輯 是什麼?

此技能專為需要根據音樂節拍進行精確剪輯的影片編輯者設計。它提供了一套系統化的工作流程,從分析音訊的結構(如前奏、主歌、副歌)開始,到建立選定的標記列表,最後量化剪輯邊界。此技能強調區分「框架對齊」、「音樂正確性」和「編輯品質」三個層面,並警告自動偵測器無法取代實際聆聽驗證。支援常見的影片編輯工具(如 Claude Code, Cursor 等),並提供 `beat_report` 等工具協助生成結構化的節拍與剪輯資料表。使用此技能能確保剪輯在音樂上感覺準確,避免常見的錯誤,例如在每個波形峰值上剪輯或忽略樂句變化,從而提升最終影片的節奏感和敘事流暢度。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/DomCamillo2/VideoEditting/tree/HEAD/.agents/skills/video-beatcut

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

在預期的節拍上剪輯

輸入:實際音訊檔案、選定的片段、目標幀率、當前剪輯與所需的能量。如果現有工具無法聽到音訊,則先進行暫定性分析,並明確保留聆聽驗證的開放性。

  1. 辨識前奏、主歌、副歌/高潮、橋段和尾聲。估算節奏和相位,然後檢查開始、中間和結束附近的重擊大鼓/小鼓與重拍。注意半速/雙倍節奏、前起音、切分音及節奏變化。起音偵測器找到的是瞬態,不一定是節拍或小節起始。
  2. 建立一個選定的標記列表,而非在每個峰值上剪輯。記錄來源秒數、時間軸秒數、重音類型、信心水準以及是否實際聆聽過。偏好將樂句變化用於章節/歌曲轉換,並將最強烈的影像用於音樂高峰。
  3. 正確映射修剪後的音訊。常速下:timeline_seconds = audio_start + source_seconds - source_in。使用恆定播放速率 r 時,將來源偏移量除以 r。對於速度斜坡,使用實際時間映射,而不是單一的 BPM。包含來源修剪、重複和歌曲交疊。
  4. 將每個絕對邊界量化一次:對於非負時間,frame = floor(seconds * fps + 0.5)。保留有理數幀率,例如 30000/1001。在可能的情況下,透過四捨五入使用精確的有理數運算,包含半幀平局。鏡頭長度是下一個邊界減去當前邊界;不要重複四捨五入增量節拍長度。儲存 fps 和整數幀邊界。
  5. 根據故事和能量變化保持時間:幾個節拍用於氛圍,較短的樂句用於動作。優先選擇可讀的時刻,而不是機械地在每個節拍上剪輯。將低於 0.5 秒的片段視為應說明的刻意例外,而非預設的蒙太奇策略。
  6. 設定轉場,使其感知影響落在預期的重音上。剪輯、閃光峰值、遮罩揭示或著陸可能具有不同的錨定幀。重疊的轉場會縮短總持續時間;重新計算後續邊界。疊加層本身不會縮短基底軌道。
  7. 預覽實際包含音樂的編碼片段,包含關鍵剪輯前後的幾秒鐘。聆聽相位錯誤、歌曲編輯、速度斜坡和掩蓋重音的效果。在長段落的結尾再次檢查以捕捉漂移。不要將數值對齊視為獨立的聆聽測試。

需提供的證據

儲存包含 song_id、source_seconds、timeline_seconds、target_frame、accent_type、confidence、listening_status 的節拍表;包含 cut_frame、matched_marker、delta_ms、intentional_offset_reason 的剪輯表;以及代表性的審查範圍。

區分框架對齊(最近的幀;理論量化誤差最多半個幀)、音樂正確性(所選的聲音是預期的重音)和編輯品質(鏡頭保持足夠長的時間)。一個標記完美的剪輯仍可能感覺不對。以樂句結尾、有意的尾奏/淡出或合適的真實聲音來結束歌曲。

使用 VideoEditting 檢出後,tools/beat_candidates.py 會根據來源到時間軸的映射,提出局部頻譜起音和節奏假設。將這些視為未經驗證的候選項,選擇可聽到的重音,然後對選定的標記使用 tools/editing.py beat-report。偵測器永遠不會認證重拍。檢出是可選的。

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

DomCamillo2/VideoEditting

Mix music, dialogue, authentic location sound and comedic sound effects for an edit. Use for ducking, song transitions, J/L cuts, intelligibility and clean endings; not as a substitute for beat detection or actual listening.

DomCamillo2/VideoEditting

Establish a film or reel brief, including tone, humor, travel type, route and relevant vehicle details. Use when these choices are missing or the user changes direction; skip for a small revision with an established brief.

DomCamillo2/VideoEditting

Reconstruct capture order, trip chapters and road/ferry map segments from photo/video metadata and visible evidence. Use when travel chronology or route labels matter; do not invent exact dates or transport links from filenames alone.

DomCamillo2/VideoEditting

Add playful video gags such as person cutouts, spins, loading effects, face-zoom transitions or tracked scooter flames. Use when humor is requested in the current brief; do not add unsolicited meme edits to a serious film.

DomCamillo2/VideoEditting

Prepare a reviewable preview, verify the final encoded video and hand off a versioned editing project. Use before export or when diagnosing black borders, crop errors, missing assets, drift, color or audio problems; do not claim creative QA from a successful build alone.

DomCamillo2/VideoEditting

Fit portrait photos or videos into landscape edits, or reframe mixed aspect ratios with a blurred copy of the same media. Use to prevent black borders and cropped faces or bodies; not for privacy anonymization or sharpening a blurry subject.

DomCamillo2/VideoEditting

Cull and rank photos or video excerpts, remove repetitive selections, and compare blurry versus sharp takes. Use for bursts, near-duplicates, contact sheets and best-moment selection; never delete source media or judge focus only from a blurred background.

DomCamillo2/VideoEditting

Onboard a new user to the VideoEditting toolkit by choosing all or selected editing skills, assessing useful MCP integrations and setting up approved tools before the film brief. Use for first-time adoption or setup changes, not every editing revision or repository maintenance task.

相關技能