Agent Skillsopensquilla/opensquilla › video-still-animator

video-still-animator

GitHub

将单张静态图片转换为带有缓慢缩放效果的MP4视频,作为AI视频生成被内容审核拦截时的备用方案。利用ffmpeg实现,确保下游合并流程能继续处理完整片段。

src/opensquilla/skills/bundled/video-still-animator/SKILL.md opensquilla/opensquilla

Trigger Scenarios

上游AI视频生成步骤因内容审核被拒绝时 需要为静态画面添加Ken-Burns效果以维持时间线完整性时

Install

npx skills add opensquilla/opensquilla --skill video-still-animator -g -y
More Options

Non-standard path

npx skills add https://github.com/opensquilla/opensquilla/tree/main/src/opensquilla/skills/bundled/video-still-animator -g -y

Use without installing

npx skills use opensquilla/opensquilla@video-still-animator

指定 Agent (Claude Code)

npx skills add opensquilla/opensquilla --skill video-still-animator -a claude-code -g -y

安装 repo 全部 skill

npx skills add opensquilla/opensquilla --all -g -y

预览 repo 内 skill

npx skills add opensquilla/opensquilla --list

SKILL.md

Frontmatter
{
    "name": "video-still-animator",
    "metadata": {
        "opensquilla": {
            "risk": "medium",
            "requires": {
                "bins": [
                    "ffmpeg"
                ],
                "anyBins": [
                    "python",
                    "python3"
                ]
            },
            "capabilities": [
                "filesystem-write",
                "process-control"
            ]
        }
    },
    "entrypoint": {
        "args": [
            "--input",
            "{{ with.input_image }}",
            "--output",
            "{{ with.output_path }}",
            "--duration",
            "{{ with.duration | default(5) }}",
            "--width",
            "{{ with.width | default(720) }}",
            "--height",
            "{{ with.height | default(1280) }}",
            "--fps",
            "{{ with.fps | default(24) }}",
            "--zoom-rate",
            "{{ with.zoom_rate | default(0.0015) }}"
        ],
        "parse": "text",
        "command": "python {baseDir}\/scripts\/animate.py",
        "timeout": 120
    },
    "provenance": {
        "origin": "opensquilla-original",
        "license": "Apache-2.0"
    },
    "description": "Turn a single still image (PNG\/JPG) into a short MP4 with a slow Ken-Burns zoom and a silent audio track. Pure ffmpeg wrapper. Designed as the on_failure substitute for AI video-gen steps that get blocked by content moderation: when seedance refuses, this skill emits a valid replacement clip from the already-generated still so a downstream merge can still produce a complete deliverable."
}

video-still-animator — Ken-Burns fallback clip from a still

Produces a short MP4 from a single PNG/JPG using ffmpeg's zoompan filter, so a downstream merge step still has a clip for every shot when an upstream AI video generation step gets blocked.

Why this skill exists

seedance-2-prompt (and any platform-moderated video model) can refuse individual requests for reasons that have nothing to do with the prompt's narrative quality:

  • input photo contains a recognisable real person face
  • output audio gets flagged by the safety classifier
  • the moderation model's similarity threshold drifts day to day

In meta-short-drama we always have a fresh PNG on disk before the seedance call runs, so the cheapest "the show must go on" fallback is to turn that PNG into a Ken-Burns clip and feed it to the merger. The clip won't have the camera motion the prompt asked for, but the character, framing, and timing will still match the script.

Inputs (with:)

key required default notes
input_image yes PNG or JPG path.
output_path yes Output .mp4 path. Parent dir created if missing.
duration no 5 Clip length in seconds.
width no 720 Output width. Match the merge step's pipeline.
height no 1280 Output height. 720x1280 = 9:16.
fps no 24 Output frame rate.
zoom_rate no 0.0015 Per-frame zoom delta; 0.0015 over 5s ≈ 1.18× final zoom.

Output specs

  • H.264 video at the requested resolution + fps
  • AAC silent audio track (so merge steps that demux/remux audio do not trip on a missing stream)
  • +faststart MP4 (web playback friendly)

Dependencies

  • ffmpeg ≥ 5.0 on PATH (or pass --ffmpeg-path directly).

On Windows the script also probes the winget Gyan.FFmpeg install path, Scoop, Chocolatey, and C:\Program Files\ffmpeg\bin before giving up.

Use as on_failure substitute

In a meta-skill DAG, hang it off the real video step:

- id: shot1_video
  kind: skill_exec
  skill: seedance-2-prompt
  on_failure: shot1_video_fallback
  with: { ... }

- id: shot1_video_fallback
  kind: skill_exec
  skill: video-still-animator
  with:
    input_image: "{{ inputs.workspace_dir }}/.../1_shot.png"
    output_path: "{{ inputs.workspace_dir }}/.../1_shot.mp4"

The fallback must be a standalone step (no depends_on, no own on_failure) per the meta-skill engine rules. The PNG must already exist on disk by the time the parent step fails — that's true here because the image step always runs before the video step.

Limits

  • Static framing only. The zoom is uniform centre-anchored; no pan, no rotation, no parallax. For richer fallback motion, generate a fresh set of stills and call this multiple times.
  • No real audio. The intent is a placeholder that survives the merge; add a real soundtrack downstream if needed.
  • ffmpeg version drift: very old ffmpeg (<4) may not accept the exact zoompan filter syntax; install ≥ 5.

Version History

  • 7f72a32 Current 2026-07-05 18:40

Same Skill Collection

src/opensquilla/skills/bundled/advanced-dubbing-studio/SKILL.md
src/opensquilla/skills/bundled/ai-video-script/SKILL.md
src/opensquilla/skills/bundled/audio-cog/SKILL.md
src/opensquilla/skills/bundled/awesome-webpage-image-download/SKILL.md
src/opensquilla/skills/bundled/awesome-webpage-research/SKILL.md
src/opensquilla/skills/bundled/AwesomeWebpageMetaSkill/SKILL.md
src/opensquilla/skills/bundled/cron/SKILL.md
src/opensquilla/skills/bundled/docx/SKILL.md
src/opensquilla/skills/bundled/filesystem/SKILL.md
src/opensquilla/skills/bundled/git-diff/SKILL.md
src/opensquilla/skills/bundled/github/SKILL.md
src/opensquilla/skills/bundled/history-explorer/SKILL.md
src/opensquilla/skills/bundled/html-coder/SKILL.md
src/opensquilla/skills/bundled/html-to-pdf/SKILL.md
src/opensquilla/skills/bundled/http-fetch/SKILL.md
src/opensquilla/skills/bundled/latex-compile/SKILL.md
src/opensquilla/skills/bundled/memory/SKILL.md
src/opensquilla/skills/bundled/music-and-singing-studio/SKILL.md
src/opensquilla/skills/bundled/nano-banana-pro-openrouter/SKILL.md
src/opensquilla/skills/bundled/nano-banana-pro/SKILL.md
src/opensquilla/skills/bundled/nano-pdf/SKILL.md
src/opensquilla/skills/bundled/openrouter-video-generator/SKILL.md
src/opensquilla/skills/bundled/paper-abstract-author/SKILL.md
src/opensquilla/skills/bundled/paper-citation-planner/SKILL.md
src/opensquilla/skills/bundled/paper-experiment-stub/SKILL.md
src/opensquilla/skills/bundled/paper-outline-author/SKILL.md
src/opensquilla/skills/bundled/paper-preference-planner/SKILL.md
src/opensquilla/skills/bundled/paper-refbib-stub/SKILL.md
src/opensquilla/skills/bundled/paper-revision-author/SKILL.md
src/opensquilla/skills/bundled/paper-section-author/SKILL.md
src/opensquilla/skills/bundled/paper-source-curator/SKILL.md
src/opensquilla/skills/bundled/pptx/SKILL.md
src/opensquilla/skills/bundled/seedance-2-prompt/SKILL.md
src/opensquilla/skills/bundled/skill-creator-linter/SKILL.md
src/opensquilla/skills/bundled/skill-creator-proposals/SKILL.md
src/opensquilla/skills/bundled/skill-creator-smoke-test/SKILL.md
src/opensquilla/skills/bundled/srt-from-script/SKILL.md
src/opensquilla/skills/bundled/stack-trace-generic-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-go-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-js-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-python-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-rust-probe/SKILL.md
src/opensquilla/skills/bundled/subtitle-burner/SKILL.md
src/opensquilla/skills/bundled/swe-bench/SKILL.md
src/opensquilla/skills/bundled/text-file-read/SKILL.md
src/opensquilla/skills/bundled/title-card-image/SKILL.md
src/opensquilla/skills/bundled/video-merger/SKILL.md
src/opensquilla/skills/bundled/voice-clone-lab/SKILL.md
src/opensquilla/skills/bundled/voice-conversion-studio/SKILL.md
src/opensquilla/skills/bundled/voiceover-studio/SKILL.md
src/opensquilla/skills/bundled/weather/SKILL.md
src/opensquilla/skills/bundled/web-search/SKILL.md
src/opensquilla/skills/bundled/xlsx/SKILL.md
src/opensquilla/skills/exp/meta-arxiv-daily-digest-deck/SKILL.md
src/opensquilla/skills/exp/meta-codereview-current-diff/SKILL.md
src/opensquilla/skills/exp/meta-compliance-audit-bundle/SKILL.md
src/opensquilla/skills/exp/meta-diagram-triangulation/SKILL.md
src/opensquilla/skills/exp/meta-github-pr-watch-digest/SKILL.md
src/opensquilla/skills/exp/meta-issue-to-pr-autopilot/SKILL.md
src/opensquilla/skills/exp/meta-knowledge-base-bootstrap/SKILL.md
src/opensquilla/skills/exp/meta-migration-assistant/SKILL.md
src/opensquilla/skills/exp/meta-multi-format-export-pack/SKILL.md
src/opensquilla/skills/exp/meta-pdf-intelligence/SKILL.md
src/opensquilla/skills/exp/meta-pdf-reformat-pipeline/SKILL.md
src/opensquilla/skills/exp/meta-pre-commit-quality-gate/SKILL.md
src/opensquilla/skills/exp/meta-scheduled-morning-digest/SKILL.md
src/opensquilla/skills/exp/meta-security-review-bundle/SKILL.md
src/opensquilla/skills/exp/meta-spreadsheet-insight/SKILL.md
src/opensquilla/skills/exp/meta-stack-trace-investigator/SKILL.md
src/opensquilla/skills/exp/meta-travel-planner/SKILL.md
src/opensquilla/skills/exp/meta-web-to-pdf-briefing/SKILL.md
tests/_fixtures/meta-paper-write-handwritten.SKILL.md
src/opensquilla/skills/bundled/code-task/SKILL.md
src/opensquilla/skills/bundled/deep-research/SKILL.md
src/opensquilla/skills/bundled/meta-kid-project-planner/SKILL.md
src/opensquilla/skills/bundled/meta-paper-write/SKILL.md
src/opensquilla/skills/bundled/meta-short-drama/SKILL.md
src/opensquilla/skills/bundled/meta-skill-creator/SKILL.md
src/opensquilla/skills/bundled/multi-search-engine/SKILL.md
src/opensquilla/skills/bundled/pdf-toolkit/SKILL.md
src/opensquilla/skills/bundled/skill-creator/SKILL.md
src/opensquilla/skills/bundled/sub-agent/SKILL.md
src/opensquilla/skills/bundled/summarize/SKILL.md
src/opensquilla/skills/bundled/tmux/SKILL.md
src/opensquilla/skills/exp/meta-long-running-build-watchdog/SKILL.md
src/opensquilla/skills/bundled/paper-plot-stub/SKILL.md
src/opensquilla/skills/exp/meta-content-publish-pipeline/SKILL.md
src/opensquilla/skills/exp/meta-home-it-rescue/SKILL.md
src/opensquilla/skills/exp/meta-meeting-to-workflow/SKILL.md
src/opensquilla/skills/exp/meta-research-to-slide-deck/SKILL.md
src/opensquilla/skills/exp/meta-sales-lead-researcher/SKILL.md

Metadata

Files
0
Version
7f72a32
Hash
149febdc
Indexed
2026-07-05 18:40

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-09 05:29
浙ICP备14020137号-1 $Гость$