Communitygithub.com

Aadi-110i/PEP-PROJECT

將靜態圖片轉換為影片的指南:模型選擇、動態提示與攝影機運鏡。涵蓋 Wan 2.5 i2v、Seedance、Fabric、Grok Video,並說明各模型的適用時機。適用於:圖像動畫化、從靜態照片生成影片、添加動態、產品動畫。觸發詞:image to video、i2v、animate image、still to video、add motion to image、image animation、photo to video、animate still、wan i2v、image2video、bring image to life、animate photo、motion from image。

PEP-PROJECT 是什麼?

這份技能指南旨在幫助開發者與 AI 代理工具(如 Claude Code、Cursor、Codex 等)透過 [inference.sh](https://inference.sh) 命令列介面將靜態圖片轉換為影片。其核心功能包括:詳細說明如何選擇合適的模型(如 Wan 2.5 i2v、Seedance、Fabric、Grok Video)及其對應的應用場景與動態風格;提供各種動態類型(如攝影機推拉、平移、環繞,以及主體的自然元素、液體、機械動態等)的提示範例;並收錄了提示詞的最佳寫法(強調「細微勝於劇烈」)、常見錯誤與避坑指南、影片時長與品質的權衡,以及從靜態圖片到最終影片的完整處理流程(包含圖片生成、動畫化、畫質提升、添加音效與合併)。支援多個平台上的模型與應用程式,以 `belt` CLI 為主要操作介面,適合製作社交媒體短片、產品展示、循環背景等用途。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Aadi-110i/PEP-PROJECT/tree/HEAD/skills/image-to-video

在你喜歡的 AI 中提問

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

說明文件

圖片轉影片

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

快速開始

需要 inference.sh CLI(belt)。安裝說明

belt login

# 生成一張靜態圖片
belt 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
}'

# 為它添加動畫
belt 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 i2vfalai/wan-2-5-i2v逼真動態、自然動作寫實、細微
WAN-I2V (Pruna)pruna/wan-i2v經濟實惠、快速,480p/720p自然、高效
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"

提示詞結構

[攝影機運鏡] + [主體動態] + [氛圍效果] + [情緒/節奏]

各情境範例

# 風景動畫
belt 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"
}'

# 人像動畫
belt 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"
}'

# 產品展示動畫
belt 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"
}'

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

# 建築視覺化
belt 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 個片段,並逐步增加動態
belt app run falai/wan-2-5-i2v --input '{
  "prompt": "slow pan left, gentle water motion",
  "image": "scene.png"
}' --no-wait

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

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

完整工作流程

靜態圖片到最終影片流程

# 1. 生成來源圖片(最佳品質)
belt 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. 為圖片添加動畫
belt 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. 若需要,提升影片解析度
belt app run falai/topaz-video-upscaler --input '{
  "video": "animated-landscape.mp4"
}'

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

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

動態照片效果

動態照片(Cinemagraph)是一種只有一個元素在動的靜態照片(例如:瀑布流動,而其他場景完全靜止)。要達到此效果:

  1. 生成靜態圖片時,清楚定義要動的元素
  2. 提示詞只針對該特定元素描述動態
  3. 保持 2-4 秒以實現無縫循環
belt 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"
}'

常見錯誤

錯誤問題修正方法
要求過多動態失真、偽影、變形細微 > 劇烈,永遠遵守
對內容類型選錯模型效果不佳使用上方選擇指南
影片片段太長(10s+)品質顯著下降保持 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@p-video
npx skills add inference-sh/skills@video-prompting-guide
npx skills add inference-sh/skills@prompt-engineering

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

Individual skills in this repo

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

Aadi-110i/PEP-PROJECT

Create AI avatar and talking head videos via inference.sh CLI. Recommended: P-Video-Avatar (fastest, cheapest, built-in TTS). Also: OmniHuman, Fabric, PixVerse. Capabilities: audio-driven avatars, text-to-avatar, lipsync videos, talking head generation, virtual presenters. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human

Aadi-110i/PEP-PROJECT

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 awareness. Triggers: marketing video, ad video, promo video, commercial, brand video, product video, explainer video, ad creative, video ad, facebook ad video, youtube ad, instagram ad, tiktok ad, promotional video, launch video

Aadi-110i/PEP-PROJECT

Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse

Aadi-110i/PEP-PROJECT

ElevenLabs text-to-speech with 22+ premium voices, multilingual support, and voice tuning via inference.sh CLI. Models: eleven_multilingual_v2 (highest quality), eleven_turbo_v2_5 (low latency), eleven_flash_v2_5 (ultra-fast). Capabilities: text-to-speech, voice selection, stability/style control, 32 languages. Use for: voiceovers, audiobooks, video narration, podcasts, accessibility, IVR. Triggers: elevenlabs, eleven labs, elevenlabs tts, premium tts, professional voice, ai voice, high quality tts, multilingual tts, eleven labs voice, voice generation, natural speech, realistic voice, voice over, speech synthesis

Aadi-110i/PEP-PROJECT

Explainer video production guide: scripting, voiceover, visuals, and assembly. Covers script formulas, pacing rules, scene planning, and multi-tool pipelines. Use for: product demos, how-it-works videos, onboarding videos, social explainers. Triggers: explainer video, how to make explainer, product video, demo video, video production, video script, animated explainer, product demo video, tutorial video, onboarding video, walkthrough video, video pipeline

Aadi-110i/PEP-PROJECT

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

Aadi-110i/PEP-PROJECT

Generate talking head avatar videos with Pruna P-Video-Avatar via inference.sh CLI. Turn a portrait image into a realistic speaking video with built-in TTS. 18x faster and 6x cheaper than competitors. Models: P-Video-Avatar, P-Image (for portrait generation). Capabilities: text-to-avatar, audio-driven avatars, 30 voices, 10 languages, 720p/1080p, built-in TTS, dynamic backgrounds, full-body control. Use for: AI presenters, product demos, explainer videos, virtual influencers, marketing, education, multilingual content, UGC, gaming avatars. Triggers: avatar video, talking head, ai avatar, p-video-avatar, pruna avatar, video avatar, ai presenter, digital human, virtual presenter, lipsync, talking avatar, ai spokesperson, heygen alternative, synthesia alternative, veed alternative, fabric alternative, omnihuman alternative

Aadi-110i/PEP-PROJECT

Generate videos with Pruna P-Video and WAN models via inference.sh CLI. Models: P-Video, WAN-T2V, WAN-I2V. Capabilities: text-to-video, image-to-video, audio support, 720p/1080p, fast inference. Pruna optimizes models for speed without quality loss. Triggers: pruna video, p-video, pruna ai video, fast video generation, optimized video, wan t2v, wan i2v, economic video generation, cheap video generation, pruna text to video, pruna image to video

Aadi-110i/PEP-PROJECT

Render videos from React/Remotion component code via inference.sh. Pass TSX code, get MP4. Supports all Remotion APIs: useCurrentFrame, useVideoConfig, spring, interpolate, AbsoluteFill, Sequence. Configurable resolution, FPS, duration, codec. Use for: programmatic video generation, animated graphics, motion design, data-driven videos, React animations to video. Triggers: remotion, render video from code, tsx to video, react video, programmatic video, remotion render, code to video, animated video, motion graphics code, react animation video

Aadi-110i/PEP-PROJECT

Three.js animation - keyframe animation, skeletal animation, morph targets, animation mixing. Use when animating objects, playing GLTF animations, creating procedural motion, or blending animations.

Aadi-110i/PEP-PROJECT

Video ad creation with exact platform-specific specs for TikTok, Instagram, YouTube, Facebook, LinkedIn. Covers dimensions, duration limits, AIDA framework, and caption requirements. Use for: video ads, social media ads, paid media creative, video marketing, ad production. Triggers: video ad, social media ad, tiktok ad, instagram ad, youtube ad, facebook ad, linkedin ad, video creative, ad specs, paid media, video marketing, ad production, reels ad, stories ad, pre roll, bumper ad

Aadi-110i/PEP-PROJECT

Best practices and techniques for writing effective AI video generation prompts. Covers: Veo, Seedance, Wan, Grok, Kling, Runway, Pika, Sora prompting strategies. Learn: shot types, camera movements, lighting, pacing, style keywords, negative prompts. Use for: improving video quality, getting consistent results, professional video prompts. Triggers: video prompt, how to prompt video, veo prompts, video generation tips, better ai video, video prompt engineering, video prompt guide, video prompt template, ai video tips, video prompt best practices, video prompt examples, cinematography prompts

Aadi-110i/PEP-PROJECT

YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A/B testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image

相關技能