画像から動画へ
使用タイミング
このスキルは、自動化ワークフローの一部として、以下のタスクに使用します。
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"
}'
モデル選択
| モデル | アプリ ID | 最適な用途 | モーションスタイル |
|---|---|---|---|
| Wan 2.5 i2v | falai/wan-2-5-i2v | リアルな動き、自然な動き | フォトリアリスティック、控えめ |
| Seedance 1.5 Pro | bytedance/seedance-1-5-pro | スタイライズ、クリエイティブ、アニメ的 | 芸術的、表現豊か |
| Seedance 1.0 Pro | bytedance/seedance-1-0-pro | 汎用、高品質 | バランス型 |
| Fabric 1.0 | falai/fabric-1-0 | 布、ファブリック、液体、流動素材 | 物理ベースの流れ |
| Grok Imagine Video | xai/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秒 | 高品質 | SNS投稿、プロダクト公開 |
| 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"
}'
シネマグラフ効果
シネマグラフとは、静止写真の中で一つの要素だけが動く(例:滝だけが動き、他は完全に静止している)技法です。これを実現するには:
- 動かしたい要素が明確に定義された静止画像を生成する
- その特定の要素のみに動きを指示するプロンプトを作成する
- シームレスなループのために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