Communitygithub.com

AI 影片剪輯與節奏控制

將 AI 生成的片段剪輯成完成度高的短影片 — 針對真實觀眾測量出的鏡頭長度與節奏規則、根據音樂節拍格進行剪輯、解釋為何不應加快生成素材的播放速度、使用子像素攝影機運鏡取代 ffmpeg zoompan、在調色前先放大原始素材、自然色彩匹配、音量標準化,以及一個能測量任何影片鏡頭長度的腳本。適用於使用 ffmpeg、Python/OpenCV、Remotion、Premiere 或 DaVinci Resolve 組裝 AI 影片片段時、當剪輯感覺過快或過慢時、分析參考影片節奏時,或放大與色彩匹配 AI 片段時。

AI 影片剪輯與節奏控制 是什麼?

此技能提供了一套基於真實觀眾回饋與量化數據的專業影片剪輯與節奏控制規則,專門用於處理 AI 生成的短片素材。它能幫助使用者從每段 4-10 秒的 AI 原始片段中,挑選出最精華的 2-3 秒來組合成節奏流暢的最終影片。技能核心包括:透過實測數據定義的鏡頭長度規則(如中位數 3.54 秒)、精準對齊音樂節拍的剪輯策略、避免常見的加快素材播放速度的錯誤,以及使用子像素精度的攝影機運鏡(如 OpenCV warpAffine)以獲得比 ffmpeg zoompan 更平滑的效果。此外,還涵蓋了完整的後期工作流程:先使用 Topaz 等放大軟體將原始素材提升至 1080p 再進行調色與添加效果,以獲得最佳畫質;自然的色彩匹配與音訊標準化(-14 LUFS);以及針對社群媒體有機曝光的標題、字幕與品牌標示最佳化建議。技能提供的 `shot_stats.py` 腳本可用於分析任何影片的剪輯節奏,支援 ffmpeg、Python/OpenCV、Remotion、Premiere 與 DaVinci Resolve 等平台。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/klakix-ai/ai-video-skills/tree/HEAD/skills/ai-video-editing-and-pacing

在你喜歡的 AI 中提問

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

說明文件

剪輯與節奏控制:AI 影片

AI 片段通常以 4 到 10 秒為單位生成,但其中往往只有 2 到 3 秒是最佳部分。剪輯決定了影片給人的感覺是沉穩且高品質,還是急促且廉價。

節奏規則(實測數據)

  • 鏡頭長度 ≥ ~2.6 秒(大約等於 90 至 100 BPM 音樂的一個小節)。首次剪輯的中位數鏡頭長度為 1.29 秒,被認為「太快了,一切都一閃而過」;重新剪輯後中位數為 3.54 秒(最短 2.54 秒)才獲得認可。
  • 關鍵笑點給予 4 到 5 秒。 讓呈現的時刻得以沉澱與呼吸。
  • 社群平台上的故事/喜劇片總長 30 到 40 秒。 我們測量的爆紅參考影片長度為 18 到 24 秒,每 2.4 到 2.9 秒有一個新笑點;當模仿它們時,請保留其結構,但如果你的觀眾偏好沉穩節奏,則不要複製其速度。
  • 故障/閃爍轉場僅用於 3 到 4 個關鍵時刻,且需對準節拍。其他地方一律使用直接剪輯。
  • 例外情況:當每個剪輯點都精準落在節拍上,且每個鏡頭都承載一個明確的笑點時,快速剪輯是可以接受的(一個獲准的案例中位數約為 ~1.9 秒)。

使用 scripts/shot_stats.py 來測量你的剪輯與任何參考影片:

python scripts/shot_stats.py reference_reel.mp4
python scripts/shot_stats.py my_cut.mp4 --threshold 0.3 --list

切勿加快生成素材的播放速度

將片段加速 1.5 倍至 1.7 倍以「增加能量」的做法,在我們所做的所有調整中,收到了最差的回饋。請以正常速度使用每個片段中最平穩的部分(ai-video-camera-language 有一個腳本可以用來找到它)。慢動作加速是可行的。

選擇片段中的最佳秒數

  1. 每隔 0.5 秒製作一個影格條。
  2. 丟棄:邏輯錯誤、標誌/徽章影格、面部漂移、模型自身的中段剪輯。
  3. 偏好選擇攝影機移動速度最低但仍包含動作重點的時間窗口。
  4. 在動作發生時(轉身、腳步、手勢)或對準節拍進行剪輯;不要在眨眼的中間剪輯。

節拍格

  • 偵測 BPM,然後透過擬合格子來驗證;自動節奏估算通常會偏離幾個 BPM(某個音軌偵測為 129 BPM,實際上是 127)。
  • 找到小節開頭:低頻能量最強的 4 拍週期的相位。
  • 在小節開頭或節拍上進行剪輯;在小節開頭處銜接音樂段落,並使用約 12 毫秒的交叉淡出。
  • 將重點回報放在 Drop 處;讓音樂為某個關鍵時刻停止(寂靜本身也是一種剪輯)。
  • 使用生成或授權音樂。商業歌曲在 Instagram、TikTok 和 YouTube 上會被靜音或面臨版權索賠,且無法用於廣告。

後期添加的攝影機運鏡

優先考慮要求模型直接生成運鏡效果(請參閱 ai-video-camera-language)。如果必須在後期中添加推近、衝擊變焦或無晃動的重構圖,請遵循以下原則:

  • 使用子像素變形(OpenCV warpAffine 搭配立方插值)和緩動曲線來實現。ffmpeg zoompan 會將位置四捨五入到整數像素,因此慢速變焦會產生閃爍。
  • 在已放大的片段上執行,而不是在原始的 480p 版本上。
  • 我們使用的運鏡效果:慢速推近/拉遠、向追蹤點(如手機螢幕)推進、對準節拍的衝擊變焦(在 9 個影格內從 1.08 倍回到 1.0 倍)、一個包含徑向模糊的 4 影格快速變焦、一個 2 影格的色彩分裂效果。

先放大,後調色

  1. 先將原始片段(在添加顆粒、色彩、疊加層之前)使用影片放大模型(Topaz 類別)放大至 1080p。這能大幅提升紋理、眼睛、皮膚和金屬的銳利度,效果遠超單純的縮放。在 2026 年末,一個 5 秒的 1080p 片段成本約為 0.04 美元。
  2. 然後在 1080p 解析度下進行色彩匹配、添加顆粒和疊加層,這樣文字和 UI 才能保持清晰。
  3. 上傳限制:如果你的放大工具限制了每小時的上傳數量,可以將相同尺寸的片段串接起來(在它們之間插入 4 個黑色影格),組成 ≤ 30 秒的組別,一次性放大,然後再根據影格編號分割回來。請確認影格數量保持一致。
  4. 有些放大工具會傳回略微不同的尺寸(例如 4:3 比例可能變為 1452x1080);需要在剪輯中裁切至最終交付尺寸。

色彩

  • 保持模型的自然色彩。以一半的強度將片段彼此匹配。
  • 飽和度 1.0、對比度 ~1.03、柔和的亮部曲線、非常輕微的顆粒和暗角。
  • 不要使用青橙調、不要提高暗部亮度、不要使用擴散/光暈堆疊:這些被稱為「令人窒息」的效果。
  • 在確定使用某個外觀之前,務必與原始影格進行 A/B 比對。

音訊後製

  • 最終整合音量 -14 LUFS,真實峰值 ≤ -1 dBTP(請參閱 ai-video-dialogue-and-voice/scripts/loudness.py)。
  • 在 Drop 處和最後一個節拍添加低超低音(55 至 32 Hz)衝擊,在配戴耳機的手機上聽起來會很有分量,而且成本極低。
  • 保留模型生成的原生環境音作為音樂的背景,以增加真實感。

文字、字幕與品牌

  • 字幕:白色、粗體、每次顯示 1 到 3 個詞,使用一種強調色。在天空背景上添加外框。
  • 為了有機的社群媒體觸及率,一些讓影片看起來像廣告的元素(大型品牌片頭、模特兒/品牌信用標題、長篇黑色結尾卡)在我們的小測試中與較低的觸及率相關(3 部品牌影片停留在初始測試池中,而類似素材的無品牌剪輯則獲得了更多曝光)。建議將品牌標誌縮小至影片結尾的一小部分,或完全省略,並將信用資訊放在貼文描述中。
  • 對於橫向(4:3/16:9)格式的交付,請為該影格重新調整字幕和結尾卡的位置;不要重複使用垂直佈局。

ffmpeg 常見問題

  • xfade 需要匹配的時間基準:在兩個輸入上添加 settb=AVTB。
  • 當從 Python 啟動 ffmpeg 時,請傳入 -nostdin 參數,否則它可能會掛起等待輸入。
  • aecho 的第二個參數是整個信號的輸出增益(0.25 = -12 dB),而不僅僅是回音。
  • RMS 匹配不等於感知音量匹配;請使用 LUFS。
  • Windows 系統:如果腳本將在 Linux 上運行,請使用 LF 行尾編寫腳本。

Individual skills in this repo

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

3d-previs-to-ai-video

Control AI video camera paths and choreography with a 3D blockout (previs) - build a grey-box scene in Blender, three.js or any 3D tool, animate a camera, render a reference video and pass it with character/vehicle/location reference images to Seedance 2.x reference mode (@Video1 + @Image map). Covers blockout rules, one-move-per-shot camera paths, transformations planned inside the blockout, contact-sheet checks, in-vehicle cameras and realism wording. Use for FPV flights, car transformations, complex choreography, exact camera moves, "Seedance with previsualization in Blender", or when text prompts cannot get the camera move right.

ai-video-camera-language

Camera angles, lenses and camera movement for AI video generation (Seedance, Kling, Veo, Sora, MiniMax/Hailuo, Runway, Wan, Luma). A tested library of shot types with copy-paste prompt wording, rules for camera speed, the snap-zoom-and-hold move, what to avoid (whip pans, shake, speed ramps on generated footage), and a script that measures camera speed with optical flow so you can pick the calmest part of a clip. Use when writing camera directions in a video prompt, choosing shot types for a storyboard, when a generated clip feels too fast, shaky or lifeless, or when someone asks about camera angles, camera moves or cinematography for AI video.

ai-video-prompting

Write prompts for AI video models that follow instructions precisely - Seedance 2.0 / 2.5 (text, image, multi-reference with @Image/@Video/@Audio, edit, extend), Kling, Veo, MiniMax/Hailuo, Runway, Wan and Sora. Covers prompt structure, second-by-second timelines, reference maps, negative wording, length limits, when to turn off prompt enhancers, and model-specific quirks we measured. Use when writing or fixing a text-to-video or image-to-video prompt, a Seedance reference prompt, when a model ignores parts of the prompt, or when someone asks how to prompt Seedance, Kling or Veo.

ai-video-realism

Make AI images and AI video look like real footage instead of glossy "AI slop". Device-based realism (describe the phone, GoPro, broadcast camera that shot it and its flaws), what words push models toward CGI, real-photo references for locations and vehicles, key frames with photographic image models, natural colour instead of heavy film looks, and absurd-but-real comedy. Use when output looks fake, plastic, too perfect, too cinematic or like a video game, when someone asks for "hyper-realistic", "photorealistic", "looks like a real video", or when planning key frames for an AI video.

ai-video-shot-planning

Plan a multi-shot AI video (Seedance, Kling, Veo, MiniMax/Hailuo, Runway, Wan) before spending money on generation. Turns an idea into a shot list with per-shot action beats, camera move, scene logic, costume and reference images, key frames, a cheap test plan and a cost estimate. Use when someone asks to make an AI short film, reel, ad, music video, story or "viral video" with more than one shot, asks for a storyboard or shot list, or is about to generate several clips in a row.

viral-ai-video-formats

Proven short-form formats for AI video on Instagram Reels, TikTok and YouTube Shorts, broken down from frame-by-frame analysis of viral AI reels - "history + one modern object", delayed reveal ("is this real?"), macro proof, POV-from-a-bystander-phone, spoken comment-to-DM call to action - with measured hook timing, shot length, duration, aspect ratio, music and AI-label rules. Use when planning an AI reel or short meant for reach, picking a concept, writing hooks and CTAs, or diagnosing why an AI video did not reach Explore / For You.

相關技能