Communitygithub.com

JantonioFC/skillsbank

靜態圖像轉影片指南:模型選擇、動態提示與鏡頭運動。涵蓋 Wan 2.5 i2v、Seedance、Fabric、Grok Video 與各自適用情境。適用於:將圖片動畫化、從靜態圖片建立影片、添加動態效果、商品動畫。觸發詞:影像轉影片、i2v、動畫……

skillsbank 是什麼?

此技能針對開發者與 AI 代理提供一個完整的靜態圖像轉影片工作流程,涵蓋從模型選擇、動態提示撰寫到鏡頭運動的進階技巧。它詳細比較了 Wan 2.5 i2v、Seedance(1.0 Pro/1.5 Pro)、Fabric 1.0 與 Grok Imagine Video 等主流模型的特性,並根據使用場景(如風景、人像、商品、布料動畫)給出最佳模型推薦。技能的核心原則為「細微優於劇烈」,透過系統化的提示結構(鏡頭運動 + 主體動態 + 大氣效果 + 情緒/節奏)與實例示範,確保生成流暢自然的動畫。此外,技能還提供完整的端到端管道:從生成高品質來源圖像、動畫化、影片放大、環境音效添加,到最終影音合併,並支援創建「動態照片」效果。所有操作均透過 inference.sh CLI 執行,支援多種平台,並提供常見錯誤的解決方案與持續時間指南,協助使用者產出專業級的作品。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/JantonioFC/skillsbank/tree/HEAD/skills/image-to-video

在你喜歡的 AI 中提問

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

說明文件

影像轉影片

使用時機

將此技能作為您自動化工作流程的一部分,用於執行所述任務。

透過 inference.sh CLI 將靜態圖像轉換為動畫影片。

快速開始

curl -fsSL https://cli.inference.sh | sh && infsh login

# 生成一張靜態圖像
infsh app run falai/flux-dev-lora --input '{
  "prompt": "serene mountain lake at sunset, snow-capped peaks reflected in still water, golden hour light, landscape photography",
  "width": 1248,
  "height": 832
}'

# 將它動畫化
infsh app run falai/wan-2-5-i2v --input '{
  "prompt": "gentle ripples on the lake surface, clouds slowly drifting, warm light shifting, birds flying in the distance",
  "image": "path/to/lake-image.png"
}'

模型選擇

模型App ID最佳用途動態風格
Wan 2.5 i2vfalai/wan-2-5-i2v真實感動態、自然動作寫實、細膩
Seedance 1.5 Probytedance/seedance-1-5-pro風格化、創意、動畫感藝術性、表現力強
Seedance 1.0 Probytedance/seedance-1-0-pro通用用途、品質優良平衡
Fabric 1.0falai/fabric-1-0布料、織物、液體、流動材質基於物理的流動
Grok Imagine Videoxai/grok-imagine-video一般動畫、文字引導通用

各模型適用情境

場景最佳模型原因
有水面/雲朵的風景Wan 2.5 i2v最擅長自然、真實的動態
帶細膩表情的人像Wan 2.5 i2v能保持臉部細節
含布料/織物的商品Fabric 1.0專精於材質物理
旗幟飄揚、窗簾飄動Fabric 1.0布料模擬
插畫/藝術風格圖像Seedance符合風格化內容
一般「賦予生命」需求Seedance 1.5 Pro良好的全能型
快速測試/疊代Seedance 1.0 Lite最快,720p

動態類型

鏡頭運動

動作提示關鍵字效果
推近 / 向前推軌"slow dolly forward", "camera pushes in"增加親密感/焦點
拉遠 / 向後推軌"camera pulls back", "slow zoom out"揭露場景、提供脈絡
左右平移"camera pans slowly to the right"掃視、跟隨
上下傾斜"camera tilts upward"展現高度
環繞"camera orbits around the subject"3D 探索
升降"camera rises upward"宏大視角
靜止(不加入鏡頭運動提示)僅有主體動態

主體動態

類型提示範例
自然元素"water rippling", "clouds drifting", "leaves rustling in breeze"
頭髮/衣物"hair blowing gently in wind", "dress fabric flowing"
大氣效果"fog slowly rolling", "dust particles floating in light beams"
角色動作"person slowly turns to camera", "subtle breathing motion"
機械動作"gears turning", "clock hands moving"
液體"coffee steam rising", "paint dripping", "water pouring"

提示詞撰寫最佳實踐

黃金法則:細微 > 劇烈

AI 影片模型在處理溫和、細微的動態時效果遠比劇烈動作更好。要求太多動作會導致變形和偽影。

❌ "person running and jumping over obstacles while the camera spins"
✅ "person slowly walking forward, gentle breeze, camera follows alongside"

❌ "explosion with debris flying everywhere"
✅ "candle flame flickering gently, warm ambient light shifting"

❌ "fast zoom into the eyes with dramatic camera shake"
✅ "slow dolly forward toward the subject, subtle focus shift"

提示結構

[鏡頭運動] + [主體動態] + [大氣效果] + [情緒/節奏]

各場景範例

# 風景動畫
infsh app run falai/wan-2-5-i2v --input '{
  "prompt": "gentle camera pan right, water reflecting moving clouds, trees swaying slightly in breeze, warm golden light, peaceful and slow",
  "image": "landscape.png"
}'

# 人像動畫
infsh app run falai/wan-2-5-i2v --input '{
  "prompt": "subtle breathing motion, slight head turn, natural eye blink, hair moving gently, soft ambient lighting shifts",
  "image": "portrait.png"
}'

# 商品展示動畫
infsh app run bytedance/seedance-1-5-pro --input '{
  "prompt": "slow 360 degree orbit around the product, gentle spotlight movement, subtle reflections shifting, premium product showcase, smooth motion",
  "image": "product.png"
}'

# 布料/織物動畫
infsh app run falai/fabric-1-0 --input '{
  "prompt": "fabric flowing and rippling in gentle wind, natural cloth physics, soft movement",
  "image": "fabric-scene.png"
}'

# 建築視覺化
infsh app run falai/wan-2-5-i2v --input '{
  "prompt": "slow dolly forward through the entrance, slight camera tilt upward, ambient light filtering through windows, dust particles in light beams",
  "image": "building-interior.png"
}'

持續時間指南

時長品質用途
2-3 秒最佳品質GIF、循環背景、動態照片
4-5 秒高品質社群媒體貼文、商品展示
6-8 秒良好品質短片、轉場
10+ 秒品質下降避免使用,除非拼接較短片

延長時長

對於更長的影片,請生成多個短片然後拼接:

# 從同一張圖像生成 3 個片段,並帶有漸進式動態
infsh app run falai/wan-2-5-i2v --input '{
  "prompt": "slow pan left, gentle water motion",
  "image": "scene.png"
}' --no-wait

infsh app run falai/wan-2-5-i2v --input '{
  "prompt": "continuing pan, clouds shifting, light changing",
  "image": "scene.png"
}' --no-wait

# 拼接在一起
infsh app run infsh/media-merger --input '{
  "media": ["clip1.mp4", "clip2.mp4"]
}'

完整工作流程

從靜態到最終影片的管道

# 1. 生成來源圖像(最佳品質)
infsh app run bytedance/seedream-4-5 --input '{
  "prompt": "cinematic landscape, misty mountains at dawn, lake in foreground, dramatic clouds, golden hour, 4K quality, professional photography",
  "size": "2K"
}'

# 2. 將圖像動畫化
infsh app run falai/wan-2-5-i2v --input '{
  "prompt": "gentle mist rolling through the valley, lake surface rippling, clouds slowly moving, birds in distance, warm light shifting",
  "image": "landscape.png"
}'

# 3. 如有需要,放大影片
infsh app run falai/topaz-video-upscaler --input '{
  "video": "animated-landscape.mp4"
}'

# 4. 添加環境音效
infsh app run infsh/hunyuanvideo-foley --input '{
  "video": "animated-landscape.mp4",
  "prompt": "gentle nature ambience, distant birds, soft wind, water lapping"
}'

# 5. 合併影片與音訊
infsh app run infsh/video-audio-merger --input '{
  "video": "upscaled-landscape.mp4",
  "audio": "ambient-audio.mp3"
}'

動態照片效果

動態照片是一張靜止的照片,其中只有一個元素在移動(例如,瀑布在靜止場景中流動)。要達到此效果:

  1. 生成靜態圖像時,明確設定運動元素
  2. 僅針對該特定元素提示動態
  3. 保持 2-4 秒以實現無縫循環
infsh app run falai/wan-2-5-i2v --input '{
  "prompt": "only the waterfall is moving, everything else remains perfectly still, water cascading smoothly, rest of scene frozen",
  "image": "waterfall-scene.png"
}'

常見錯誤

錯誤問題修正方法
要求太多動態變形、偽影、扭曲細微 > 劇烈,永遠記得
模型與內容類型不匹配結果不佳使用上方的選擇指南
片段太長(10 秒以上)品質明顯下降保持 3-5 秒,如有需要再拼接
未指定鏡頭運動動態隨機/無法預測務必指定鏡頭行為
動態方向互相衝突混亂、不自然選擇一個主要動態方向
來源圖像解析度低輸出影片解析度低從最高品質的來源開始
複雜的動作場景模型無法處理保持動態簡單自然

相關技能

npx skills add inference-sh/skills@ai-video-generation
npx skills add inference-sh/skills@ai-image-generation
npx skills add inference-sh/skills@video-prompting-guide
npx skills add inference-sh/skills@prompt-engineering

瀏覽所有應用程式:infsh app list

Individual skills in this repo

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

JantonioFC/skillsbank

AI-powered image editing with style transfer and object removal

JantonioFC/skillsbank

Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support.

JantonioFC/skillsbank

Analise e auditoria de editais de leilao judicial e extrajudicial. Riscos ocultos, clausulas perigosas, debitos, ocupante e classificacao da oportunidade.

JantonioFC/skillsbank

Embed Photopea in web apps using photopea.js. Covers embedding, file I/O, scripting, exporting, layers, text, filters, and the full Photoshop-compatible API.

JantonioFC/skillsbank

Best practices for Remotion - Video creation in React

JantonioFC/skillsbank

Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays

JantonioFC/skillsbank

Seek and analyze video content using Memories.ai Large Visual Memory Model for persistent video intelligence

JantonioFC/skillsbank

Writes complete, structured landing pages optimized for SEO ranking, AEO citation, and visitor conversion. Activate when the user wants to write or generate a landing page for a product, service, or offer.

JantonioFC/skillsbank

Video and audio perception, indexing, and editing. Ingest files/URLs/live streams, build visual/spoken indexes, search with timestamps, edit timelines, add overlays/subtitles, generate media, and create real-time alerts.

JantonioFC/skillsbank

Upload, stream, search, edit, transcribe, and generate AI video and audio using the VideoDB SDK.

JantonioFC/skillsbank

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

JantonioFC/skillsbank

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

JantonioFC/skillsbank

Tool lifecycle UI components for React/Next.js from ui.inference.sh. Display tool calls: pending, progress, approval required, results. Capabilities: tool status, progress indicators, approval flows, results display. Use for: showing agent tool calls, human-in-the-loop approvals, tool output. Triggers: tool ui, tool calls, tool status, tool approval, tool results, agent tools, mcp tools ui, function calling ui, tool lifecycle, tool pending

JantonioFC/skillsbank

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

JantonioFC/skillsbank

When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms. Also use when the user mentions 'PPC,' 'paid media,' 'ROAS,' 'CPA,' 'ad campaign,' 'retargeting,' 'audience targeting,' 'Google Ads,' 'Facebook ads,'...

JantonioFC/skillsbank

Create AI avatar and talking head videos with OmniHuman, Fabric, PixVerse via inference.sh CLI. Models: OmniHuman 1.5, OmniHuman 1.0, Fabric 1.0, PixVerse Lipsync. Capabilities: audio-driven avatars, lipsync videos, talking head generation, virtual presenters. Use for: AI presenters, expla...

JantonioFC/skillsbank

Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for visuals, Kokoro for voiceover. Types: product demos, testimonials, explainers, social ads, brand videos. Use for: Facebook ads, YouTube ads, product launches, brand awarene...

JantonioFC/skillsbank

Generate AI videos with Google Veo, Seedance, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 1.5 Pro, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, lipsync, avatar animation, video upscaling, fole...

JantonioFC/skillsbank

Production-ready CI/CD configurations for Playwright — GitHub Actions, GitLab CI, CircleCI, Azure DevOps, Jenkins, Docker, parallel sharding, reporting, code coverage, and global setup/teardown.

JantonioFC/skillsbank

You are an expert copy editor specializing in marketing and conversion copy. Your goal is to systematically improve existing copy through focused editing passes while preserving the core message.

相關技能