Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ python3 scripts/utils.py

如果缺少依赖,提示用户安装:
- **ffmpeg**: `brew install ffmpeg`(macOS)或 `apt install ffmpeg`(Linux/WSL)或下载 Windows 版本
- **whisper**: `pip install faster-whisper`(推荐,速度快 4 倍)或 `pip install openai-whisper`
- **中国用户**加速安装:`pip install faster-whisper -i https://pypi.tuna.tsinghua.edu.cn/simple`
- **whisper**:
- **Apple Silicon (M1/M2/M3/M4)**: `pip install mlx-whisper`(推荐,Metal 加速最快)
- **NVIDIA / CPU**: `pip install faster-whisper`(推荐,速度快 4 倍)或 `pip install openai-whisper`
- **中国用户**加速安装(Apple Silicon):`pip install mlx-whisper -i https://pypi.tuna.tsinghua.edu.cn/simple`
其他平台:`pip install faster-whisper -i https://pypi.tuna.tsinghua.edu.cn/simple`

如果项目根目录有 `.venv` 虚拟环境,运行 Python 脚本前先激活:
```bash
Expand All @@ -32,7 +35,8 @@ source .venv/bin/activate # macOS/Linux/WSL

### 平台说明

- **macOS (Apple Silicon)**: 自动使用 VideoToolbox 硬件编码加速,Whisper 推荐 large-v3-turbo 模型
- **macOS (Apple Silicon)**: 自动使用 VideoToolbox 硬件编码加速;Whisper 引擎自动选 `mlx-whisper`(已安装),推荐 large-v3-turbo 模型(走 `mlx-community/whisper-large-v3-turbo`)
- **字幕字体(短视频)**: 默认优先选 Heavy / Medium 字重的中文字体:用户库的 `Source Han Sans SC Heavy` / `Smiley Sans` > 系统 `STHeiti Medium` > `PingFang SC Semibold`。如果都没有,会自动从 [adobe-fonts/source-han-sans](https://github.com/adobe-fonts/source-han-sans) 下载 Heavy 字重缓存到 `~/.cache/video-editing/fonts/`。绝不再默认使用 Hiragino W3 这类细字
- **macOS (Intel)**: 使用 VideoToolbox 编码,Whisper 使用 CPU 模式
- **Linux**: 自动检测 NVIDIA GPU (NVENC)、Intel QSV、AMD AMF
- **WSL**: 支持,自动检测 Windows 字体路径 (`/mnt/c/Windows/Fonts/`)
Expand Down
Loading