Communitygithub.com

DomCamillo2/VideoEditting

將直式照片或影片適配至橫式版面,或重新構圖混合長寬比的素材。使用模糊的相同媒體副本來避免黑邊和裁切到臉部或身體;不適用於隱私模糊或銳利化模糊主體。

VideoEditting 是什麼?

此技能專為影片編輯與後製設計,提供一套詳細的工作流程,用於處理不同長寬比的照片或影片素材,使其在目標橫式版面中能夠安全地呈現主體,同時避免出現黑邊、裁切人物或破壞構圖。它適用於 Claude Code、Cursor、Codex 等 AI 輔助編輯工具,尤其適合需要批次處理或精確控制畫面佈局的場景。技能的核心是將原始素材複製一份作為背景,透過 `cover` 填滿畫布並施加模糊,再將前景以 `contain` 模式置中,確保主體不被拉伸。此外,它強調逐個鏡頭進行審查,根據臉部、手勢、足部等保護區域動態調整前景大小,並可選擇加入 103–107% 的微幅運動,但需確保安全邊距。對於影片,需保持前景與背景的時間同步,並關閉背景音訊。最後,技能要求輸出每組鏡頭的構圖參數、保護區域註記、關鍵影格靜態圖與檢驗後的動態範圍,確保最終編碼無剪裁、閃爍或拉伸問題。

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

在你喜歡的 AI 中提問

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

說明文件

保留主體,柔化未使用的畫布

先讀取目標長寬比與受保護內容。在計算尺寸前修正來源旋轉。逐個素材進行審查;一個全局裁切無法保護所有團體照。

  1. 放置一份相同來源的副本作為背景,使用 cover 填滿畫布。放大至足夠讓模糊取樣與攝影機運動無法暴露透明/暗色邊緣。強烈模糊並可選擇輕微變暗/去飽和,使清晰前景保持主導。同時檢查亮色與暗色邊緣。
  2. 放置前景並保留其原始長寬比。從 contain 開始:對於畫布 W,H 與定向來源 w,h,縮放比例為 min(W/w, H/h)。背景的 cover 縮放比例為 max(W/w, H/h)。切勿拉伸填滿。
  3. 標記保護區域:相關的臉部、頭部、手勢、全身體動作時的重要足部以及背景物體。僅在這些區域在整個鏡頭中始終位於畫布內時,才增加前景尺寸。僅在視覺驗證後使用主體感知定位;不要自動將人物推離中心。
  4. 如果無法在不損失人物的情況下放大整個肖像群,則接受可見的模糊側邊區域。不要為了滿足「小邊框」需求而秘密裁切頭部。故意採用雙照片佈局等替代方案需要有編輯理由與連貫的時機。
  5. 可選的溫和運動:僅在擁有足夠安全邊距時,相對於所選基礎構圖調整約 103–107%。緊湊的肖像可以保持靜止。檢查最大縮放比例與所有平移極限;並非每張照片都需要運動。
  6. 對於影片,保持前景與背景位於相同的來源時間、修剪、速度映射與方向。背景音訊必須靜音;僅使用一條預期的音軌。避免模糊副本明顯滯後於主體。
  7. 將字幕、地點名稱與效果放置在保護區域與目的地 UI 覆蓋層之外。以實際觀看尺寸進行檢查。不要故意使用模糊填充來隱藏無法使用的前景焦點。

在基於影格的渲染器中,應從當前影格推導運動。在 Remotion 中,應使用帶有渲染同步的媒體元件;CSS 模糊可以是靜態的,但基於時鐘的 CSS 動畫不適合用作可靠的影片時鐘。

輸出每個鏡頭的構圖值、保護區域/註記、開始/中間/結束靜態圖以及審查後的運動範圍。檢查最終編碼是否出現裁剪、黑色/透明邊緣、背景閃爍、影格不匹配與拉伸。僅靠自動黑邊檢測無法證明人物安全地框在畫面內。

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

Cut photos or video on audible musical beats, downbeats and phrase changes, or diagnose an edit that feels off beat. Use for music-led timing and transitions; do not equate waveform peaks or automatic markers with verified musical accents.

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

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.

相關技能