Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

llm-video-generatorLLM video 生成器

Agent Skill

用于辅助视频生成、动画合成、脚本化剪辑或 Remotion 等视频项目开发。它适合让 Agent 组织镜头、生成素材说明、维护合成代码或排查渲染问题。使用时需要确认分辨率、时长、素材路径和导出格式;涉及外部素材、人物肖像或商业发布时,应先核对版权授权和内容审核要求。

总安装

9,253

周安装

378

GitHub Stars

公开资料未说明

下载量

2,964
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:llm-video-generator(LLM video 生成器)
来源仓库:https://github.com/baokui/llm-video-generator
安装命令:
openclaw skills install llm-video-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install llm-video-generator

简介

用于辅助视频生成、动画合成及 Remotion 项目开发。

  • 支持文本到视频、图像到视频等多种生成模式。
  • 需确认分辨率、时长、素材路径和导出格式等参数设置。
  • 涉及外部素材或商业发布时应先核对版权授权和内容审核要求。
  • llm-video-generator 属于效率类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
llm-video-generator
description
>

LLM Video Generator

Generate videos via ZhipuAI CogVideoX-3. Each API call produces ~5s of video. For longer videos, chain multiple calls using last-frame continuation, then concatenate.

Scripts

All scripts use /opt/anaconda3/bin/python3. Resolve <skill-dir> to this skill's directory.

ScriptPurpose
scripts/video_gen.pyCore generation (3 modes: text2video, image2video, frames2video)
scripts/extract_last_frame.pyExtract last frame from a video (for continuation)
scripts/concat_videos.pyConcatenate multiple video segments into one

Workflow

Step 1: Assess Request & Clarify

Clear request → proceed to Step 2. A request is clear when:

  • Video content/scene is described with enough detail
  • Style or visual tone is specified or implied
  • Duration is stated (default: 5s if not specified)

Vague request → propose a plan first:

基于你的需求,我拟定了以下视频方案:

📹 **视频内容**: [detailed scene description with key moments]
🎨 **视频风格**: [e.g., 写实/动画/电影感/温馨...]
⏱️ **视频时长**: [Xs, note: will be generated in 5s segments]
🔊 **背景音乐**: 有/无
📐 **分辨率**: 1920x1080
🎞️ **帧率**: 30fps

你觉得这个方案可以吗?需要调整哪些部分?

Iterate with the user until confirmed.

Step 2: Estimate Time & Notify User

Before starting generation, calculate and report the estimated time:

Time estimation formula:

  • Base: 1 minute per second of video (e.g., 20s video ≈ 20 minutes)
  • High-definition (4K or 60fps): add +30% (e.g., 20s 4K video ≈ 26 minutes)
  • Additional overhead: ~2 minutes for frame extraction, concatenation, and compression
  • Segments: ceil(target_duration / 5)

MUST send this message to the user before starting generation:

⏳ **视频生成预估**

📊 分段计划:{N} 段(每段约5秒)
⏱️ 预计总耗时:约 {estimated_minutes} 分钟
📐 分辨率:{resolution}

视频生成是一个耗时过程,请耐心等待。我会在每段完成后实时汇报进度。

Example for a 30s 1080P video:

  • 6 segments, base time = 30 minutes, +2 min overhead → ~32 minutes
  • Message: "预计总耗时:约 32 分钟"

Example for a 20s 4K video:

  • 4 segments, base time = 20 * 1.3 = 26 min, +2 min → ~28 minutes

Step 3: Plan Generation Segments

Each API call produces ~5 seconds. Calculate segments: ceil(target_duration / 5)

For multi-segment videos, plan how the content evolves across segments. Write a prompt for each segment describing what happens in that 5-second window, maintaining visual continuity.

Step 4: Execute Generation with Progress Reports

CRITICAL: After each segment completes, IMMEDIATELY send a progress message to the user before starting the next segment. Do not wait until all segments are done.

Progress message format (send via message tool or inline reply after each segment):

✅ 进度:{completed}/{total} 段完成(第{N}段已生成)
📝 内容:{brief segment description}
⏱️ 本段耗时:{minutes}分钟
📊 预计剩余:约 {remaining_minutes} 分钟

Generation process:

Segment 1 — Text-to-Video:

/opt/anaconda3/bin/python3 <skill-dir>/scripts/video_gen.py text2video \
  --prompt "<segment_1_prompt>" \
  --quality quality --audio true --size 1920x1080 --fps 30 \
  --output-dir <output-dir> --max-wait 900

Send progress message to user

Segments 2+ — Image-to-Video (last-frame continuation):

For each subsequent segment:

  1. Extract last frame from the previous segment's video:
/opt/anaconda3/bin/python3 <skill-dir>/scripts/extract_last_frame.py \
  <previous_video.mp4> --output <output-dir>/frame_segN.png
  1. Generate next segment using the last frame as input:
/opt/anaconda3/bin/python3 <skill-dir>/scripts/video_gen.py image2video \
  --prompt "<segment_N_prompt>" \
  --image-url <output-dir>/frame_segN.png \
  --quality quality --audio true --size 1920x1080 --fps 30 \
  --output-dir <output-dir> --max-wait 900
  1. Send progress message to user

Repeat for all segments.

Alternative — Frames-to-Video mode:

If you have both a starting and ending image for a segment:

/opt/anaconda3/bin/python3 <skill-dir>/scripts/video_gen.py frames2video \
  --prompt "<description>" \
  --first-frame <first.png> --last-frame <last.png> \
  --quality quality --audio true --size 1920x1080 --fps 30 \
  --output-dir <output-dir>

Step 5: Concatenate Segments

After all segments are generated, combine them:

/opt/anaconda3/bin/python3 <skill-dir>/scripts/concat_videos.py \
  --inputs <seg1.mp4> <seg2.mp4> ... \
  --output <output-dir>/final_video.mp4

If the final file exceeds 25MB (Feishu upload limit), compress with ffmpeg:

ffmpeg -i <input> -c:v libx264 -crf 32 -c:a aac -b:a 96k -vf "scale=1280:720" -y <output>

Step 6: Deliver

  • Share the final video file with the user
  • For Feishu delivery: use feishu-send-file skill to send the .mp4 file
  • Final report:
🎬 **视频生成完成!**

⏱️ 总时长:{duration}秒
📦 文件大小:{size}MB
📊 共 {N} 段,总耗时 {total_minutes} 分钟

Prompt Tips

  • Use English prompts for best quality (translate Chinese descriptions)
  • Be specific: scene, camera angle, lighting, motion, atmosphere
  • Include style keywords: cinematic, realistic, cartoon, watercolor, etc.
  • For continuation segments, describe the action progression, not the full scene from scratch
  • Keep each segment prompt concise (1-3 sentences)

Parameters Reference

ParameterFlagDefaultOptions
Prompt--prompt(required)Descriptive text
Quality--qualityqualityquality / speed
Audio--audiotruetrue / false
Resolution--size1920x10801280x720, 1920x1080, 3840x2160
Frame rate--fps3030 / 60
Output dir--output-dir.Any writable path
Poll interval--poll-interval10Seconds
Max wait--max-wait900Seconds (default raised for reliability)

Error Handling

  • Missing ZHIPU_API_KEY: Ask user to set environment variable
  • Missing zai-sdk: pip install zai-sdk (under anaconda)
  • Missing ffmpeg: Required for frame extraction and concatenation
  • Task timeout: Increase --max-wait or retry; check task status manually via API
  • Task failed: Simplify the prompt and retry
  • File too large for Feishu: Compress with ffmpeg (reduce resolution or increase CRF)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.46%
按下载量换算2,326

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills