Community程式設計與開發github.com

展示影片

為遊戲模組錄製並剪輯一段短展示影片,或製作剪輯合輯,準備發布到 X/YouTube。僅錄製遊戲視窗與遊戲本身的音訊。

展示影片 是什麼?

「展示影片」技能(showcase-video)旨在幫助開發者輕鬆製作遊戲模組的 30 秒展示短片,並可直接發佈到社群平台。它提供一套完整的工具鏈:使用 `um win record` 錄製僅含遊戲視窗與遊戲音訊的片段,`um video contact` 生成時間戳截圖網格以便挑選精彩時刻,`um video compile` 搭配編輯決策表(EDL)進行精確剪輯。支援 NVENC / AMF / QSV 硬體編碼、WASAPI 程序回環錄音、多種轉場特效、背景音樂生成與節奏對齊、以及浮水印與片尾卡片等功能。適用於任何可執行遊戲的 Windows 環境,可與 Claude Code / Cursor 等 AI 代理協作,自動化重複拍攝與剪輯流程,確保每次展示效果穩定且專業。

相容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/rehan-remade/universal-modder/tree/main/skills/showcase-video

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

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

說明文件

展示影片 是做什麼的?

一個模組在你能用 30 秒展示它之前都不算完成。工具鏈是 um win record(錄製)、um video contact(檢視)、um video compile(編輯),全都基於 ffmpeg + Pillow。

1. 讓拍攝可重複

  • 編寫動作腳本。 使用模組端的時間軸或指令序列(生成敵人、開火、觸發 Boss)、含觸發器與鏡頭移動的場景,或 WinDrive 指令清單。第一個乾淨的鏡頭必須能精確重現,這樣你在修正後才能重拍。
  • 每次拍攝前還原世界。 爆炸會破壞地形、單位會死亡。用 um backup 保留一份原始副本,並在每次拍攝前還原。
  • 乾淨的畫面。 隱藏除錯文字、固定鏡頭縮放(Terraria 展示使用了 1.5 倍,讓 1080p 畫面看起來像 720p 剪輯)、未聚焦時以全速運行、隱藏游標(錄製使用 capture_cursor=0)。

2. 錄製視窗 + 遊戲本身的音訊

um win record --exe Game.exe --out C:\caps\take1 --seconds 40      # -> take1.mkv, take1.audio.raw, take1.json
um video first-frame C:/caps/take1.mkv                              # 找出遊戲實際開始的位置(跳過加載畫面)
um video mux C:/caps/take1.mkv C:/caps/take1.audio.raw C:/caps/take1.json take1.mp4 [--offset 0.25]
  • 影片: ffmpeg 只捕捉該視窗的 GPU 畫面(不包含桌面)。可用 NVENC、AMF 或 QSV 編碼。NVENC H.264 最大寬度為 4096 像素,超出時錄製器會自動縮放;對於 32:9 螢幕,可用 --crop 裁切出中央 16:9 區域。
  • 音訊: WASAPI 程序回環捕捉遊戲 PID 的音訊(um/ps1/ProcLoopback.ps1)。只錄製遊戲音效,不會錄到 Spotify 或通知。音訊帶有時間戳,檔案位置即為牆鐘時間。混流時使用錄製的偏移量。可透過視覺/音訊同步事件(例如閃光與爆炸聲)微調偏移,並傳入 --offset。
  • 從模組內部錄製(選用): 由模組開始和停止錄製以達到影格精準。停止 ffmpeg 時絕不能阻塞遊戲主執行緒:發送 q 後在非主執行緒等待。輸出 .mkv 格式,即使錄製器被強制終止也能留下可播放的檔案(詳見 examples/terraria-tmodloader/reference/InModRecorder.cs)。

3. 剪輯前先檢視

um video probe clip.mp4
um video contact clip.mp4 sheet.png --every 1.5 --cols 6     # 生成帶時間戳的截圖網格;閱讀後挑選進出點
um video contact clip.mp4 zoom.png --start 20 --end 30 --every 0.5

挑選最精彩的瞬間:爆炸、Boss 登場、單位陣型。將進出點時間寫入編輯決策表(EDL)。

4. 用編輯決策表(EDL)剪輯

um video compile edl.json out.mp4(加上 --preview 可以半尺寸快速預覽)。完整格式請見 um video --help。

{
  "size": [1920, 1080], "fps": 30,
  "theme": {"accent": "#B6FF3B"},
  "transition": {"type": "fade", "duration": 0.3},
  "clip_volume": 0.8,
  "music": {"path": "music.mp3", "volume": 0.5},
  "watermark": {"path": "logo.png", "height": 54, "corner": "br"},
  "segments": [
    {"clip": "take1.mp4", "in": 9.0, "dur": 3.0, "hook": "Terraria,但是有了戰術核彈。"},
    {"clip": "take1.mp4", "in": 24.2, "dur": 4.5, "title": "戰術核彈", "transition": {"type": "pixelize"}},
    {"clip": "take2.mp4", "in": 3.0, "dur": 5.0, "title": "無人機母艦 Boss"},
    {"card": {"title": "Fal Arsenal", "sub": "一個 Terraria 模組"}, "dur": 2.5}
  ]
}
  • 轉場: 任何 ffmpeg xfade 類型(fade、pixelize、slideleft、smoothleft、circleopen、zoomin、radial...)或 cut。
  • 填充: 對於非 16:9 的片段,可使用 fill: blur(模糊背景)、crop 或 pad。
  • 每個片段: speed 和 volume、zoom 放大以避開 UI、crop [x, y, w, h] 重新構圖。
  • 音樂: um fal music "..." --seconds 60 會生成背景音樂。設定 bpm 並使用 beats 代替 dur 以對齊節奏;um video beats music.mp3 可估計節奏與第一拍。

有效的風格(來自真實回饋)

  • 標題: 一行文字說明畫面內容(「Wonder:泛美金字塔」、「機器人計程車與送貨無人機」)。不要放小字說明影片製作過程;那些放在貼文內容中。
  • 節奏: 2-3 秒內進入遊戲畫面;選單和設定畫面控制在 3 秒內。每個片段長 3-5 秒。最後以模組名稱或網址結束並淡出。
  • 音效: 保留遊戲音訊。它能強化衝擊感。合輯中加入背景音樂,片段音量設為 0.5-0.8。
  • 他人片段的合輯: 在畫面上標註每位創作者(credit: "@handle"),並在貼文中提及;若為宣傳用途需先取得許可。不要暗示他們的片段是用你的工具製作的。僅下載公開貼文,且只下載你將使用的內容。
  • 最後一步: 在分享完成影片前,先查看其接觸截圖網格。

Individual skills in this repo

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

asset-pipeline

Turn generated or hand-made art into exactly what a game engine loads. Covers sprite cutout, trim and nearest-neighbour fitting to frame sizes, pixelation to a palette, sprite sheets and strips, player/team-colour masks, seamless textures, and rendering a 3D model into sprite frames from the game

fal-assets

Generate game assets with fal (fal.ai) through the fal MCP server, the `um fal` CLI (REST) or `fal api`. Covers sprites and icons with transparent backgrounds, consistent variants and animation frames, pixel art, seamless textures, PBR material maps, image-to-3D models, remeshing, auto-rigging, sound effects, music, voice lines, and trailer or cutscene video. Use whenever a mod needs new art, audio or 3D models, or the user mentions fal, generating sprites, textures, models, SFX or music for a game.

game-automation

Launch, see and drive a real game so an agent can test its own mods. Covers launching via Steam or the exe, windowed mode at a fixed size, screenshots of the game window (GPU-safe capture), clicking and typing into menus, holding keys, relative mouse, crash-reporter cleanup, killing by PID, reading logs, scripted test scenes, and an in-game JSON bridge that lets an agent observe and act. Windows-first (also from WSL), with notes for Linux and macOS. Use when a mod must be verified in game, when navigating menus automatically, or when building a repeatable test or demo scene.

game-recon

Figure out how a specific installed game can be modded, before writing any mod code. Covers where it

game-research-websearch

Research a game, engine or modding technique on the open web with archive-aware, rate-limit-safe searches — Wayback Machine/archive.today for dead forums (XeNTaX, Zenhax, old threads), GitHub code/repo search, Nexus/Steam Workshop/Thunderstore APIs, Reddit JSON, YouTube transcripts, plus archive snapshots as evidence. Use when starting work on a game (

mashup-mods

Build cross-game mashups and total conversions, the

mod-any-game

Mod a PC game the user owns, taking an idea to working in the real game and recorded. It covers new items, weapons, enemies, bosses, units, civilizations, mechanics, art, sound, VR and cross-game mashups. Use when the user wants to mod, extend, hack on, reverse engineer or mash up a game (

port-a-mod

Port an existing mod to a newer game version or another mod loader while keeping its behaviour, values and quirks. Typical cases are an old Forge 1.7.10 or 1.12 Minecraft mod moving to modern Fabric or NeoForge, a Skyrim LE plugin moving to SE/AE, or a tModLoader 1.3 mod moving to 1.4. It covers pinning one source version, a private decompiled reference, an adaptation matrix, extracting the mod

publish-mod

Package and release a finished game mod. Covers the pre-release lint (no game files, decompiled code or leaked keys), README and install steps, credits and AI disclosure, versioning, where to upload (Nexus Mods, Steam Workshop, Thunderstore, mod.io, GitHub releases), and the post with a video. Use when the user wants to ship, share, upload, release or post a mod.

reverse-engineering

Read how a game actually works so a mod can hook it. Decompile .NET/Mono (ILSpy), IL2CPP (Cpp2IL, Il2CppDumper), Java (Vineflower) and native code (Ghidra, IDA, via MCP servers); dump data and asset formats; reverse-engineer a binary file format and prove it with a round trip; read live memory (Cheat Engine, Frida, x64dbg); find render passes (RenderDoc). Use when a mod needs game internals, e.g.

share-field-notes

Search and contribute to the shared AI-modding knowledge base, where field notes record how specific games were modded, decompiled or reverse-engineered (exact versions, route, engine facts, verification, gotchas). Use before starting work on a game (

相關技能