Communitygithub.com

ComeOnOliver/skillshub

将静态图像转换为动画视频的指南。涵盖模型选择、运动提示和摄像机运动,包括 Wan 2.5 i2v、Seedance、Fabric、Grok Video 等模型,并说明何时使用它们。适用于:图像动画、从静态图像创建视频、添加运动、产品动画等场景。

skillshub 是什么?

This skill provides a comprehensive guide for converting still images into animated videos using the inference.sh CLI. It covers essential topics such as model selection (Wan 2.5 i2v, Seedance, Fabric, Grok Video), motion prompting best practices, and camera movement techniques. The guide emphasizes the importance of subtle over dramatic motion to avoid artifacts and distortion. It supports platforms like inference.sh and provides practical examples for various scenarios including landscape animation, portrait animation, product shots, and fabric/cloth animation. The skill also includes tips for creating cinemagraphs, extending video duration via stitching, and a full pipeline from still image to final video with audio. Common mistakes and troubleshooting advice are provided to help users achieve high-quality results.

兼容平台~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 校验和。无需提升权限或后台进程。也提供手动安装与验证。

模型选择

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

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

相关技能