lanshu-create-ai-presenter-video README

项目的 README,来自 github.com/cclank/lanshu-create-ai-presenter-video。合并为一个 markdown 文件:README.md。

lanshu-create-ai-presenter-video

English · 简体中文

Agent Skill Release Validate Skill License: MIT GitHub stars

Turn a topic or script into an explainer video with the coding agent you already use. Give it one authorized portrait for a digital presenter with synced captions and animated keywords, or choose one of twelve styles for an animated explainer.

AI presenter demo

Cover of the original 30-second AI presenter demo

Watch the original 30-second demo · Launch post on X

Two routes · Installation · Quick start · Style gallery · Reference guides

Two routes

Route What you provide What you get Paid generation Format
AI presenter A topic or script and an authorized portrait of one adult A talking presenter with lip-sync, synced captions, and animated keyword graphics Voice and presenter video, depending on the providers you use Default 9:16, with other aspect ratios available
Styled explainer A topic or script, with optional recorded narration Animated scenes timed to the narration in one of twelve styles MiniMax voice generation if used 16:9

The agent can infer the route from the request and show the style gallery when you want to compare options. The styled explainer guide also shows how to feature a presenter in a styled film.

Optional inputs

Requirements

Installation

The repository is the skill. Clone it into your client's skills directory and keep the folder name lanshu-create-ai-presenter-video so it matches the name in SKILL.md.

Client Skills directory Explicit invocation
Claude Code ~/.claude/skills/ or project-level .claude/skills/ /lanshu-create-ai-presenter-video
Codex ~/.codex/skills/ $lanshu-create-ai-presenter-video
Other clients See the Agent Skills client list Client-specific

This command installs the skill for Codex.

git clone https://github.com/cclank/lanshu-create-ai-presenter-video.git \
  "$HOME/.codex/skills/lanshu-create-ai-presenter-video"

Run git pull inside the installed directory to update. For a tagged version or a ready-to-extract skill ZIP, see GitHub Releases and the changelog.

You can also clone the repository anywhere and ask your agent to read and follow /path/to/lanshu-create-ai-presenter-video/SKILL.md.

Quick start

Give your agent a topic or script. Attach a portrait for the presenter route, or name a visual style for the styled route.

AI presenter

Turn this script and authorized portrait into a 30-second 16:9 presenter video with synced captions and animated keywords.

Styled explainer

Make a 16:9 animated explainer on KV cache in the chalkboard style. Show me the script before generating narration.
Run the scripts manually

Set SKILL_DIR to the directory containing SKILL.md.

SKILL_DIR="$HOME/.codex/skills/lanshu-create-ai-presenter-video"

Create a presenter job. Use the confirmation flags after checking the image rights and the presenter's age.

PRESENTER_JOB="$HOME/Videos/my-presenter-video"

python3 "$SKILL_DIR/scripts/init_job.py" \
  --job-dir "$PRESENTER_JOB" \
  --presenter-image "$HOME/Pictures/presenter.png" \
  --topic "Context engineering in one minute" \
  --duration 60 \
  --aspect 9:16 \
  --rights-confirmed \
  --adult-presenter-confirmed

Record the manual review and upload approvals in job.json when obtained. Run preflight to see which inputs and approvals are ready. Use the state checker after recording the artifacts from each stage. Presenter production guide

python3 "$SKILL_DIR/scripts/preflight.py" "$PRESENTER_JOB/job.json"
python3 "$SKILL_DIR/scripts/check_state.py" "$PRESENTER_JOB/job.json" --write

Preview a styled explainer. This example uses the bundled KV cache script. It builds a draft with estimated word timing and no voice generation.

EXPLAINER_DIR="$SKILL_DIR/explainer"
STYLED_JOB="$HOME/Videos/kv-cache-explainer"

python3 "$SKILL_DIR/scripts/init_job.py" \
  --job-dir "$STYLED_JOB" \
  --route styled \
  --explainer-style v8-chalkboard \
  --topic "KV cache"

cd "$STYLED_JOB"
mkdir -p story
cp "$EXPLAINER_DIR/stories/kv-cache/script.md" story/script.md
python3 "$EXPLAINER_DIR/tools/story.py" story --dry
bash "$EXPLAINER_DIR/tools/new_film.sh" v8-chalkboard story film
(cd film && npx --yes [email protected] preview)

For a voiced film, run story.py story with MiniMax or story.py story --audio narration.wav with your own recording. The guide covers writing scenes in film/beats.js, reviewing the storyboard, and running qa.py and render.sh. Styled production guide

Both previews use the same KV cache topic. Each style has a starter, a reusable kit, and an example project. All twelve include word-timed captions, chapter labels, a closing line, and a one-frame recap.

Nine visual styles

Editorial, tech HUD, notebook, paper pop-up, pop comic, 3D one-take, drafting sheet, chalkboard, and clay town. The grid shows the same moment in all nine looks.

The same moment of the KV cache explainer in nine visual styles

Three narrative styles

Derivation builds the explanation on one canvas. Casefile follows the evidence to a cause. Sitcom uses an everyday scene to make the concept concrete.

The KV cache topic told as a derivation, a casefile, and a sitcom

Full style guide · KV cache example projects

How it works

The approved narration sets the timing for lip-sync, captions, graphics, and cuts. check_state.py reads job artifacts to determine which production stage has passed.

Stage Evidence
intake Job manifest
content_locked Passing preflight report, script, and beat sheet
audio_locked Decodable narration and timing evidence
visual_plan_locked Timeline, storyboard, and approved plan
presenter_generated Selected presenter video or performed styled film, plus visual review
composition_checked Composition report
rendered Decodable render with video and audio
verified Master, share copy, and delivery report with passing loudness

On the styled route, audio lock requires narration and a matching story.json with word timing. Both encodes undergo full decode and loudness checks. The delivery report records black or frozen frames in the master, and the delivery includes a contact sheet. The styled workflow also exports SRT subtitles and a cover frame.

Defaults

Setting Default
Format Presenter 9:16 at 1080 × 1920. Styled 16:9 at 1920 × 1080. Both 30 fps.
Duration 45–75 seconds from a topic. A supplied script follows its natural length.
Voice Stock voice or an authorized sample for the presenter route. Styled uses MiniMax Chinese (Mandarin)_Reliable_Executive by default, with speed set per style.
Structure A hook, 2–4 content beats, and a concise close. Music and calls to action are opt-in.
Loudness −16 LUFS ±0.5 LU, with true peak ≤ −1 dBTP. Set PROGRAM_LUFS to change the target.

Cost and privacy

Reference guides

Guide What it covers
Generation Intake, script, narration, provider selection, presenter prompts, billing, and segment planning
Editing Timeline, segment seams, captions and keyword graphics, cover, and export
QA and recovery Acceptance checks and fixes for lip-sync, identity, seams, loudness, and remote tasks
Styled explainer Story pipeline, scene animation, review, render, and adding a presenter to a styled film
Style kits · HyperFrames notes Starter format, tooling, and rendering pitfalls

Main scripts

Script Purpose
init_job.py Initializes a self-contained job directory and copies inputs
preflight.py Checks inputs, manual review, and remote-generation approvals
plan_segments.py Splits narration at suitable pauses when requests have a duration cap
check_state.py Computes the current stage from recorded artifacts
finalize_delivery.sh Builds and checks the master and share copies, contact sheet, and delivery report

The styled tools include story.py for narration and word timing, new_film.sh and new_topic.sh for drafts, docs.py for production documents, qa.py for composition and stillness checks, and render.sh for video and subtitles.

Repository layout

SKILL.md        Skill entry point
agents/         Codex display metadata
assets/         Job manifest template
references/     Production guides
scripts/        Job setup, verification, and delivery
explainer/      HyperFrames runtime, style kits, starters, stories, and examples
tests/          Offline smoke tests and narration timing checks

Testing

Run both smoke tests using synthetic media, without calling generation providers. They require Python 3.9+, FFmpeg, and jq. The styled test also uses Node.js and rsync.

bash tests/smoke.sh
bash tests/explainer_smoke.sh

CI runs metadata, portability, and source checks alongside both smoke tests on pushes and pull requests.

Contributing

Issues and pull requests are welcome, especially compatibility reports and improvements to production or QA. To add a style, review the kit contract and starter brief.

Author

Created and maintained by 岚叔 (Lanshu). @LufzzLiz on X

License

MIT License · Third-party fonts, libraries, and services

lanshu-create-ai-presenter-video (cclank/lanshu-create-ai-presenter-video)

正在搜索数据库…

这是什么?这是一个 Codex 技能,把一个主题或脚本加一张已授权的人物照片变成完整的 AI 出镜人口播视频:它会撰写脚本、生成配音、创建角色、对口型、添加字幕和关键词动画,再进行剪辑、渲染和质量检查。
这是独立应用还是 Codex 的附加组件?它是一个 Codex 技能,不是独立应用:它接入 Codex(或任何兼容的本地 Skill agent),使用该环境里可用的视频、语音和口型同步能力,而不绑定某一家供应商或模型。
怎么让它产出视频?把技能装进你的 Codex skills 文件夹,然后要么在对话里直接告诉 Codex 你的主题或脚本,要么先初始化一个标准任务目录,在 job.json 里填好人工检查项和上传权限,再运行流水线。
运行之前环境需要具备什么?需要一个 Codex(或兼容的本地 Skill)agent 环境、Python 3.9+、FFmpeg 和 ffprobe、Bash/jq/awk/sed,以及该环境里至少一套可调用的视频生成、语音生成和口型同步能力。
如果付费视频生成一直失败会怎样?付费生成连续失败三次后,技能会停下来并总结问题,而不是无休止地重试;中断后它会检查是否已有任务 ID,以避免被重复扣费。
它会存储我上传的图片或 API key 吗?不会。仓库不保留任何 API key、访问 token、签名下载链接或用户素材,任务报告在保存前会清掉凭据、临时 URL 和绝对文件路径。
为什么参考文档要拆成三个独立文件?generation.md、editing.md 和 qa-recovery.md 各覆盖一个阶段(输入/语音/角色、时间线/剪辑和质量检查),Codex 只读取当前阶段对应的文件,从而把上下文占用保持在较低水平。
默认输出的视频是什么样的?竖屏 9:16,1080x1920、30fps,主题类视频通常 45-75 秒,有清晰的开头、2-4 个内容节奏点、简洁的结尾,响度归一化到约 -16 LUFS。
它是怎么让角色口型在整个片段里保持同步的?整条配音轨道被当作整个视频的时间基准,角色素材、字幕、剪辑点和关键词动画都对齐到这条音频,以减少口型漂移和错位的剪辑。
如果我没有出镜人的声音样本怎么办?如果没有提供已授权的声音样本,技能会退回到合适的现成音色,而不是克隆声音。
作者
cclank
大小
1.8 MB
星标
3.1K
时长
3个月
提交 · 90 天