agentleFS
439436269-ctrl439436269-ctrl/video-pipeline-skills/skills/image-to-video/SKILL.md

image-to-video

Skill1 starsChanged 35 days agoMITView on GitHub

图片转视频原子能力:单张图片用 ffmpeg zoompan 生成竖屏 720x1280 运镜镜头 mp4(缓推/缓拉、可调秒数/帧率/变焦幅度),批量由外层循环调用。当需要把关键帧/场景图变成动态镜头、做图片运镜、ken-burns 效果、或成片流水线要出镜头素材时使用。Use when converting a still image into a vertical zoompan video clip with ffmpeg.

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use flux-2-klein, flux-kontext and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • agentspace-soSkill

    flux-2-klein

    Generate images with Flux 2 Klein (Black Forest Labs' distilled fast variant of Flux 2) on RunComfy — bundled with the model's documented prompting patterns so the skill gets sharper output than naive prompting against the same model. Documents Flux 2 Klein's strengths (sub-second latency, multi-reference brand styling, declarative subject-first prompts), the step-count strategy (4–8 for fast iteration, ~25 for polish), the 9B vs 4B variant trade-off, and when to route to Flux 2 Pro / Seedream 5 / GPT Image 2 instead. Calls `runcomfy run blackforestlabs/flux-2-klein/9b/text-to-image` (or `/4b/`) through the local RunComfy CLI. Triggers on "flux 2 klein", "flux-2-klein", "flux klein", "BFL flux 2", or any explicit ask to generate with this model.

    Also in 4 projects that use this

  • agentspace-soSkill

    flux-kontext

    Edit images with Flux 1 Kontext Pro (Black Forest Labs' precise local image-edit model) on RunComfy — bundled with the model's documented prompting patterns so the skill gets sharper output than naive prompting against the same model. Documents Flux Kontext's strengths (single-reference precise local edits, strong prompt control, consistent high-fidelity outputs), the schema (single image + prompt), and when to route to Nano Banana Edit / GPT Image 2 edit / Flux 2 Klein instead. Calls `runcomfy run blackforestlabs/flux-1-kontext/pro/edit` through the local RunComfy CLI. Triggers on "flux kontext", "flux-kontext", "flux 1 kontext", "kontext", "BFL kontext", or any explicit ask to edit with this model.

    Also in 4 projects that use this

  • prime-skillsSkill

    image-inpainting

    Mask-driven image inpainting on RunComfy via the `runcomfy` CLI. Routes to Tongyi MAI Z-Image Turbo Inpainting (the dedicated inpainting endpoint with mask, strength, and control-scale) and to identity-preserving edit models (Nano Banana 2 Edit, GPT Image 2 Edit, FLUX Kontext Pro) when a mask isn't available and the region must be described instead. Use for object removal, watermark removal, region replacement, blemish cleanup, and any controlled local edit where a binary mask defines the target area. Triggers on "inpaint", "inpainting", "image inpaint", "remove from image", "fill region", "mask-driven edit", "remove watermark", "remove object", "patch the photo", "fill the hole", or any explicit ask to edit a specific masked region of a still.

    Also in 4 projects that use this

  • prime-skillsSkill

    ace-step

    Generate, inpaint, and outpaint music with ACE Step on RunComfy via the `runcomfy` CLI. ACE Step is StepFun-AI's open-weights music foundation model — tag-driven composition (genre, mood, instruments), multilingual lyrics with section markers, 5 s to 4 min stereo output, $0.0002–0.0003 per second (≈ 27× cheaper than ElevenLabs Music). Four endpoints: ACE Step text-to-audio (the default), ACE Step 1.5 text-to-audio (50+ language lyrics, refined structured-lyric handling), ACE Step audio-inpaint (regenerate a time range inside an existing track), ACE Step audio-outpaint (extend an existing track before or after). Triggers on "ace step", "ace-step", "acestep", "ACE music", "open music model", "cheap AI music", "inpaint audio", "audio inpaint", "extend music", "audio outpaint", "lengthen track", "music with tags", or any explicit ask to generate or edit music with ACE Step.

    Also in 3 projects that use this

  • +3 more from agentspace-so
  • +5 more from prime-skills

The file

Files
SKILL.md

image-to-video — 图片 → 运镜镜头(原子)

✅ 状态:本机实测通过(2026-09-30,frame-A.png → 2s@25fps 竖屏镜头)

原子边界:一图进、一条 mp4 出。批量/时间轴/成片合成属于编排层(外层 for 循环调用本命令即可);成片合成走 skill video-compose。

用法

python scripts/image2video.py --in scene.png --out shot1.mp4 --seconds 3.5 [--dir in] [--fps 25]
参数默认说明
--in必填输入图片(png/jpg)
--out必填输出 mp4
--seconds必填镜头时长
--dirinin=缓推(1→1.10)、out=缓拉(1.10→1)
--fps25帧率
--zoom0.10总变焦幅度
--width/--height720x1280输出尺寸(竖屏短剧标准)

行为(与唐诗项目 build_read_batch.py 逐参数一致)

  1. 图片放大到 2x(1440x2560)bicubic
  2. zoompan:z=1+0.10*on/N(推)或 1.10-0.10*on/N(拉),x/y 居中,d=N 帧
  3. 缩回 720x1280 lanczos + format=yuv420p,libx264 crf18 无音频
  4. 交替方向由外层传 --dir 控制(题卡推、尾镜拉是项目惯例)

ffmpeg 定位

依次找:环境变量 FFMPEG → PATH → 项目内置 …\<本地密钥目录>\ai\.tools\ffmpeg\ffmpeg.exe。

不做的事

  • 不做多图批量(外层循环);不做拼接/配音/字幕(video-compose);不生成图(ark-agent-plan-image / image_gen);t2v 直出视频用 ark-seedance-video。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.