Communitygithub.com

ComeOnOliver/skillshub

靜態圖片轉影片轉換指南:模型選擇、動態提示與鏡頭運鏡。涵蓋 Wan 2.5 i2v、Seedance、Fabric、Grok Video 及其適用場景。

skillshub 是什麼?

這項技能提供了一個全面的指南,用於透過 inference.sh CLI 將靜態圖片轉換為動畫影片。它涵蓋了如何選擇合適的 AI 模型(如 Wan 2.5 i2v、Seedance、Fabric 和 Grok Video),並針對不同場景(如風景、人像、產品或布料)提供具體建議。技能中詳細說明了鏡頭運鏡(推拉、平移、環繞等)和主體動作的提示詞撰寫技巧,並強調「微妙勝於劇烈」的金科玉律,以避免生成失真。此外,還包含完整的生產流程範例,從生成高品質來源圖片、製作動畫、放大影片到添加音效,以及創建 cinemagraph(局部動態靜態影像)的實作方法。此技能支援 inference.sh CLI 平台,適合開發者、設計師與內容創作者快速將靜態素材轉為生動影片。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/aiskillstore/marketplace/inference-sh-9/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"
}'

安裝說明:安裝腳本只會偵測您的作業系統/架構,從 dist.inference.sh 下載對應的二進位檔,並驗證其 SHA-256 雜湊值。無需提升權限或背景程序。也提供手動安裝與驗證。

模型選擇

模型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、循環背景、cinemagraph
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"
}'

Cinemagraph 效果

Cinemagraph 是一種靜態照片,僅其中一個元素會動(例如瀑布在靜止場景中流動)。要達到此效果:

  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.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相關技能