cli-anything-openscreen
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesecli-anything-openscreen
cli-anything-openscreen
A stateful command-line interface for editing screen recordings. Transform raw
captures into polished demo videos with zoom effects, speed adjustments,
trimming, annotations, and beautiful backgrounds.
一款用于编辑屏幕录制内容的有状态命令行界面。通过缩放效果、速度调整、裁剪、添加注释以及精美背景,将原始录制内容转换为精修的演示视频。
Installation
安装
bash
pip install cli-anything-openscreenPrerequisites:
- Python 3.10+
- ffmpeg must be installed on your system
bash
pip install cli-anything-openscreen前置要求:
- Python 3.10+
- 系统必须安装ffmpeg
Usage
使用方法
Basic Commands
基础命令
bash
cli-anything-openscreen --help
cli-anything-openscreen # REPL mode
cli-anything-openscreen project new -v recording.mp4 -o project.openscreen
cli-anything-openscreen --json project infobash
cli-anything-openscreen --help
cli-anything-openscreen # 进入REPL交互模式
cli-anything-openscreen project new -v recording.mp4 -o project.openscreen
cli-anything-openscreen --json project infoREPL Mode
REPL模式
Run without arguments to enter interactive mode.
Type for available commands, to exit.
cli-anything-openscreenhelpquit不带参数运行即可进入交互模式。输入查看可用命令,输入退出。
cli-anything-openscreenhelpquitCommand Groups
命令组
project
project(项目)
Create, open, save, and configure projects.
| Command | Description |
|---|---|
| Create new project with optional video |
| Open existing .openscreen project |
| Save project to file |
| Show project metadata and region counts |
| Set source video file |
| Set editor setting (padding, wallpaper, etc.) |
创建、打开、保存和配置项目。
| 命令 | 描述 |
|---|---|
| 创建新项目(可指定视频文件) |
| 打开已有的.openscreen项目 |
| 将项目保存到文件 |
| 显示项目元数据和区域数量 |
| 设置源视频文件 |
| 设置编辑器参数(内边距、壁纸等) |
zoom
zoom(缩放)
Manage zoom regions — smooth zoom effects on specific timeline areas.
| Command | Description |
|---|---|
| List all zoom regions |
| Add zoom |
| Remove zoom region |
Zoom depths: 1=1.25x, 2=1.5x, 3=1.8x, 4=2.2x, 5=3.5x, 6=5.0x
管理缩放区域——为时间轴特定区域添加平滑缩放效果。
| 命令 | 描述 |
|---|---|
| 列出所有缩放区域 |
| 添加缩放效果 |
| 删除指定缩放区域 |
缩放倍率:1=1.25x,2=1.5x,3=1.8x,4=2.2x,5=3.5x,6=5.0x
speed
speed(调速)
Manage speed regions — speed up idle time, slow down important moments.
| Command | Description |
|---|---|
| List all speed regions |
| Add speed change |
| Remove speed region |
Valid speeds: 0.25, 0.5, 0.75, 1.25, 1.5, 1.75, 2.0
管理调速区域——加快空闲时段速度,放慢重要时刻速度。
| 命令 | 描述 |
|---|---|
| 列出所有调速区域 |
| 添加调速效果 |
| 删除指定调速区域 |
有效速度值:0.25、0.5、0.75、1.25、1.5、1.75、2.0
trim
trim(裁剪)
Manage trim regions — cut out sections of the recording.
| Command | Description |
|---|---|
| List all trim regions |
| Cut out a section |
| Remove trim region |
管理裁剪区域——移除录制内容中的指定片段。
| 命令 | 描述 |
|---|---|
| 列出所有裁剪区域 |
| 移除指定时间段的片段 |
| 删除指定裁剪区域 |
crop
crop(裁切)
Set the visible area of the recording.
| Command | Description |
|---|---|
| Show current crop region |
| Set crop (normalized) |
设置录制内容的可视区域。
| 命令 | 描述 |
|---|---|
| 显示当前裁切区域 |
| 设置裁切区域(归一化坐标) |
annotation
annotation(注释)
Add text overlays to the recording.
| Command | Description |
|---|---|
| List all annotations |
| Add text |
| Remove annotation |
为录制内容添加文本叠加层。
| 命令 | 描述 |
|---|---|
| 列出所有注释 |
| 添加文本注释 |
| 删除指定注释 |
media
media(媒体)
Inspect and validate media files.
| Command | Description |
|---|---|
| Show video metadata (resolution, duration, codec) |
| Validate a video file |
| Extract a frame |
检查和验证媒体文件。
| 命令 | 描述 |
|---|---|
| 显示视频元数据(分辨率、时长、编码格式) |
| 验证视频文件有效性 |
| 提取视频帧作为缩略图 |
export
export(导出)
Render the final polished video.
| Command | Description |
|---|---|
| List available export presets |
| Render project to video file |
渲染最终精修视频。
| 命令 | 描述 |
|---|---|
| 列出可用的导出预设 |
| 将项目渲染为视频文件 |
session
session(会话)
Manage session state with undo/redo.
| Command | Description |
|---|---|
| Show session info |
| Undo last operation |
| Redo last undone operation |
| Save session state to disk |
| List all saved sessions |
通过撤销/重做管理会话状态。
| 命令 | 描述 |
|---|---|
| 显示会话信息 |
| 撤销上一步操作 |
| 重做上一次撤销的操作 |
| 将会话状态保存到磁盘 |
| 列出所有已保存的会话 |
State Management
状态管理
- Undo/Redo: Up to 50 levels of undo history
- Project persistence: JSON files
.openscreen - Session tracking: auto-tracks modifications
- 撤销/重做: 最多支持50级撤销历史
- 项目持久化: 以JSON格式的.openscreen文件存储
- 会话跟踪: 自动跟踪修改操作
Output Formats
输出格式
- Human-readable (default): Formatted key-value pairs
- Machine-readable (): Structured JSON output
--json
- 人类可读格式(默认): 格式化的键值对
- 机器可读格式(参数): 结构化JSON输出
--json
Editor Settings
编辑器设置
| Setting | Type | Default | Description |
|---|---|---|---|
| string | "16:9" | 16:9, 9:16, 1:1, 4:3, 4:5 |
| string | "gradient_dark" | Background preset |
| int | 50 | 0-100, padding around video |
| int | 12 | Corner radius in pixels |
| float | 0 | 0-1, drop shadow strength |
| float | 0 | 0-1, motion blur during zoom |
| string | "good" | medium, good, source |
| string | "mp4" | mp4, gif |
| 设置项 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| 字符串 | "16:9" | 可选值:16:9、9:16、1:1、4:3、4:5 |
| 字符串 | "gradient_dark" | 背景预设 |
| 整数 | 50 | 0-100,视频周围的内边距 |
| 整数 | 12 | 圆角半径(像素) |
| 浮点数 | 0 | 0-1,投影强度 |
| 浮点数 | 0 | 0-1,缩放时的运动模糊程度 |
| 字符串 | "good" | 可选值:medium、good、source |
| 字符串 | "mp4" | 可选值:mp4、gif |
For AI Agents
针对AI Agent的使用说明
- Always use for parseable output
--json - Check return codes — 0 = success, non-zero = error
- Parse stderr for error messages in non-JSON mode
- Use absolute file paths
- After , verify the output exists and probe it
export render - Times are in milliseconds for all region commands
- Coordinates (focus, crop, position) are normalized 0-1
- 始终使用参数获取可解析的输出
--json - 检查返回码——0表示成功,非0表示错误
- 在非JSON模式下,解析stderr获取错误信息
- 使用绝对文件路径
- 执行后,验证输出文件是否存在并检查其信息
export render - 所有区域命令中的时间单位为毫秒
- 坐标(焦点、裁切、位置)为归一化0-1值
Version
版本
1.0.0
1.0.0