Communitygithub.com

JantonioFC/skillsbank

静态图像转视频指南:模型选择、运动提示和镜头运动。涵盖 Wan 2.5 i2v、Seedance、Fabric、Grok Video,并说明何时使用。适用于:动画图像、从静态图像创建视频、添加运动、产品动画。触发词:image to video(图像转视频)、i2v(图像到视频)、animate(动画)……

skillsbank 是什么?

此技能提供了一个全面的指南,用于使用 `inference.sh` CLI 工具将静态图像转换为动画视频。它涵盖了关键领域,包括根据所需运动风格(例如,用于逼真场景的 Wan 2.5 i2v,用于织物物理的 Fabric 1.0)选择合适的模型、编写运动提示(包括镜头和主体运动)以及坚持“微妙胜于戏剧性”的原则以实现高质量输出。该技能详细介绍了提示结构、常见错误和完整的端到端工作流程,从生成源图像到添加背景音频。它特别强调了生成 2-5 秒片段以保持最高质量的持续时间准则,并提供了有关拼贴片段以延长视频长度的建议。该指南专为与 `inference.sh` 平台配合使用而设计,由一系列 CLI 命令和可通过 `npx skills add` 安装的相关技能组件提供支持。

兼容平台~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": "夕阳下宁静的山间湖泊,雪峰倒映在平静的湖面上,黄金时刻的光线,风景摄影",
  "width": 1248,
  "height": 832
}'

# 将其动画化
infsh app run falai/wan-2-5-i2v --input '{
  "prompt": "湖面泛起轻柔的涟漪,云彩缓慢飘移,温暖的光线变化,远处有鸟飞翔",
  "image": "path/to/lake-image.png"
}'

模型选择

模型应用 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.

相关技能