mobile-demo-film
它能做什么
这个技能把手机应用的录屏剪成一段简短的演示视频。适合正在为手机应用制作上线宣传片或功能演示的人。
适用场景
- ✓当你想把手机应用的屏幕录屏剪成一段简短演示视频的时候。
- ✓当你想在视频片段中加入标题卡、手机边框和结尾卡的时候。
- ✓当你需要用已经拍好的素材剪出上线宣传片的时候。
技能链接
https://github.com/ParadevAI/Paradev/blob/main/.agents/skills/mobile-demo-film/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把这些手机屏幕录屏剪成一段 30 秒的功能演示,加上标题卡和结尾卡。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会根据你的素材规划一个简短的故事,然后按选定的尺寸、帧率和淡入淡出渲染一段无声视频。它需要安装带 Pillow 的 Python 和 ffmpeg。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Mobile demo film
Use this skill to edit a new demo from real app recordings. The bundled renderer produces silent video with configurable dimensions, frame rate, framing, and fades. Defaults are 1080x1920 at 30fps, with a phone frame on a warm paper backdrop. A useful default is one feature in 20 to 40 seconds; adapt the story and pacing to the request.
Prerequisites
Use Python 3.10+, Pillow 10.1+, and ffmpeg (including ffprobe and libx264). Recording with
mobile-demo-record needs macOS; editing existing footage does not. Font discovery tries
macOS system fonts, then Linux DejaVu fonts, then Pillow’s fallback. Specify font files for
consistent typography across machines. Install Pillow in a scratch virtual environment:
python3 -m venv <scratch>/film-venv
<scratch>/film-venv/bin/pip install "Pillow>=10.1"
Use that environment's Python for the commands below. Commands assume the repo root as working directory. Output directories are created automatically. Existing outputs are overwritten; source assets and the composition spec cannot be used as the film output.
Workflow
- Plan one story. Write a short table of on-screen actions and durations. Start with the user's action, show the app responding, and end on the visible result. A tour can start with the finished artifact instead. Verify the feature works before filming it.
- Capture real footage with
mobile-demo-record. Use demo data and a separate take for each beat. If the story needs an agent doing work, use a working host and agent. Capture desktop cutaways withcdp-verificationwhen needed. - Normalize before choosing cuts. Simulator recordings have variable frame rates:
python3 .agents/skills/mobile-demo-film/scripts/film.py normalize raw/01.mov cfr/01.mp4. Choose start/end timestamps from this constant-rate copy. Add--fps 24for a 24fps project (the default is 30). - Compose using a JSON spec beside the recordings:
python3 .agents/skills/mobile-demo-film/scripts/film.py compose <scratch>/film.json. - Review a contact sheet and play the entire film:
python3 .agents/skills/mobile-demo-film/scripts/film.py sheet <scratch>/film.mp4 <scratch>/sheet.jpg. Add--frames 12 --height 480to customize sampling and thumbnail height. By default, the sheet samples eight frames; inspect transitions and typing in playback too. Check for clipped text, unreadable UI, private information, spinners, and unintended clock changes. - Deliver the film and identify the build, environment, staged data, and omitted steps. Draft accompanying post copy only if requested; publishing needs user authorization.
Keep typing and reading at a natural pace. Trim or speed up waiting, and make time jumps clear. Use title cards to explain missing context rather than implying an unrecorded action happened in the app. Framing, masks, and the simulated Dynamic Island are presentation layers; do not fabricate app state inside the recording.
Composition spec
This example combines phone footage, a desktop cutaway, a result, and an end card. Replace its paths, cut points, and text for the feature being demonstrated.
{
"output": "film.mp4",
"backdrop": "#F2F0EB",
"segments": [
{ "type": "phone", "src": "cfr/01.mp4", "start": 1, "end": 7, "label": "Start on your phone" },
{ "type": "card", "eyebrow": "Meanwhile", "title": "The agent works on your Mac.",
"image": "shots/desktop.png", "duration": 4 },
{ "type": "phone", "src": "cfr/02.mp4", "start": 0, "end": 10 },
{ "type": "end", "wordmark": "Paradev", "caption": "Review the result anywhere", "duration": 2.2 }
]
}
Media, output, and optional titleFont/sansFont paths resolve relative to the spec file;
absolute paths also work. Top-level backdrop, bezel, ink, and muted accept #RRGGBB.
Output and framing
Add a render object to the spec. Existing specs without it keep the portrait defaults.
For a landscape demo:
"render": {
"width": 1920,
"height": 1080,
"fps": 24,
"crf": 18,
"fade": 0.2,
"phone_width": 0.45,
"phone_height": 0.8,
"bezel_width": 0.012,
"corner_radius": 0.1
}
For a square clip, use "width": 1080, "height": 1080. Cards and typography scale with the
canvas; the centered phone fits both width and height limits while preserving source aspect
ratio. Use raw for unframed desktop footage.
| Render option | Meaning and default |
|---|
常见问题
我需要什么工具?
你需要 Python 3.10 或更新版本、Pillow 和 ffmpeg。录制需要 Mac,但编辑现有素材不需要。
视频有声音吗?
没有。渲染器生成的是无声视频。
默认的格式是什么?
默认是 1080 × 1920 像素、每秒 30 帧,并带有暖色背景上的手机边框。
详情
作者的原始描述
Turn mobile screen recordings into a configurable demo video with phone footage, title cards, cutaways, and an end card. Use when asked to edit a mobile feature demo or launch clip. Use mobile-demo-record to capture real app footage first.
repo: ParadevAI/Paradev
热度
- GitHub 星标
- 16k
- 排名
- #10821
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …