subtitle-converter — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited subtitle-converter (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
支持 VTT、SRT、ASS、LRC 四种字幕格式的相互转换,以及时间轴偏移和双语字幕合并功能。
| 格式 | 用途 | 特点 |
|---|---|---|
| VTT | 网络视频(YouTube等) | 支持样式、定位 |
| SRT | 通用格式(剪映支持) | 简单、兼容性好 |
| ASS | 高级字幕(动画、卡拉OK) | 完整样式控制 |
| LRC | 歌词同步 | 行级时间戳 |
python scripts/convert.py <输入文件> --format <目标格式>.srt/.vtt 等扩展名 python scripts/convert.py <目录> --batch --format <目标格式> python scripts/convert.py <文件> --shift <秒数> python scripts/convert.py <文件1> <文件2> --merge# 格式转换
python scripts/convert.py input.vtt --format srt
python scripts/convert.py input.vtt --output output.srt
# 批量转换
python scripts/convert.py ./subs --batch --format srt
python scripts/convert.py ./subs --batch --format srt --output ./output
# 时间轴偏移
python scripts/convert.py input.srt --shift 2.5 # 延后2.5秒
python scripts/convert.py input.srt --shift -1.0 # 提前1秒
# 双语字幕合并
python scripts/convert.py zh.srt en.srt --merge
python scripts/convert.py zh.srt en.srt --merge --output bilingual.srtYouTube 自动生成的 VTT 字幕包含滚动显示和逐词时间戳,转换时会自动清理:
python scripts/convert.py video.zh-Hans.vtt --format srtpython scripts/convert.py /path/to/subs --batch --format srt如果字幕整体提前或延后,使用时间轴偏移:
# 字幕提前了3秒,需要延后
python scripts/convert.py subtitle.srt --shift 3
# 字幕延后了2秒,需要提前
python scripts/convert.py subtitle.srt --shift -2python scripts/convert.py chinese.srt english.srt --merge --output bilingual.srt~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.