eternityspring/reelbench-skills / skills/video-scrub
video-scrub
Verified把一条视频重建成「只有画面和声音」的干净文件——**源片的元数据一概不搬**: GPS、设备型号、账号 ID、创建时间、章节、GoPro 的遥测轨,全部留在原地。 走的是白名单而不是黑名单:不列要删什么,只说带什么过去(画面一条流、声音一条流), 隐私保证来自结构,不来自枚举。 难点不在容器 tag,在**看不见的那几层**:x264 把完整编码参数写成 SEI 塞在码流里、 AAC 把版本号写进 DSE、avc1 的 compressorname 里还有一份——`ffprobe` 一个都看不见。 五个藏身处逐一堵死,每一处都有实测。 默认 `--mode copy`:**画面逐字节照搬**(cmp 验证过),只重编音频,53 秒的片子 1.3 秒跑完; `--mode encode` 完整重编码,多杀掉码流域的东西。 验收不靠声称:把源片所有元数据字符串当「针」,在输出文件里做**字节级扫描**, 扎到一根就红。12 道门全部由脚本确定性检查。 零依赖、零 API key,只要 node 和 ffmpeg。 Use when asked to 清元数据、去元数据、抹掉视频信息、视频隐私、去水印信息、 strip video metadata、remove exif from video、scrub video。
| File | Kind | Size |
|---|---|---|
| README.en.md | markdown | 6.5 KB |
| README.md | markdown | 5.9 KB |
| SKILL.md | skill md | 9.1 KB |
| references/profiles.md | markdown | 3.1 KB |
| references/residue-map.md | markdown | 7.1 KB |
| scripts/selftest.mjs | script | 17.3 KB |
| scripts/video-scrub.mjs | script | 30.6 KB |
references/profiles.md
View on GitHub# profile:擦白之后写回去的那一层
清完之后文件是「无名」的——没有 tag,没有 handler 名,没有时间。
profile 决定往回写什么。
**隐私强度排序:`bare` > 其余三档。** 理由很简单:`bare` 不写任何可被证伪的声明。
其余三档写的是工具类信息(什么软件封装的、什么 handler),**不编造拍摄设备、不编造位置**。
---
## 录屏的元数据长什么样
先说一个事实,它决定了这几档为什么都这么简单:
**录屏的元数据特征九成是「没有」。**
GPS 是拍摄设备的定位服务写进去的——iPhone 相机写 `com.apple.quicktime.location.ISO6709`,
安卓相机写 `location`。录屏抓的是显示缓冲区,QuickTime、ScreenCaptureKit、OBS、
Windows Game Bar、iOS 控制中心录屏,**压根没有定位这条管线,也没有相应权限**。
所以一条录屏文件里不会有:GPS、相机型号、镜头光圈快门、旋转矩阵、拍摄参数。
剩下的只有封装工具的痕迹。
---
## 四档
### `obs`(默认)—— OBS Studio 录制
```
encoder = Lavf<ffmpeg 的真版本号>
handler_name = VideoHandler / SoundHandler
creation_time = <当前时间或 --date>
```
**这档不是伪造。** OBS 本来就是用 ffmpeg 封装输出的,所以它产出的文件带 `Lavf` 版本号、
带标准 handler 名。我们的输出也是 ffmpeg 封的,长相同类。
版本号**不伪造**——做不到(见 `residue-map.md` 第 1 条),也没必要。
这一档靠**不加** `-fflags +bitexact` 来保住 ffmpeg 自己写的版本号。
### `quicktime` —— macOS QuickTime 录屏
```
handler_name = Core Media Video / Core Media Audio
creation_time = <当前时间或 --date>
(无 encoder 字段)
```
`Core Media *` 是 Apple 的 AVFoundation 写的 handler 名,QuickTime 录屏、
iOS 录屏产出的文件都长这样。
### `screencapture` —— macOS ScreenCaptureKit
和 `quicktime` 同款。分成两档是因为语义不同(一个是 App 录的,一个是系统 API 录的),
元数据层面当前不做区分。
### `bare` —— 什么都不写
```
handler_name = "(单空格)"
(无 encoder、无 creation_time)
```
**隐私强度最高的一档。** 不留任何可被证伪的声明,也不留时间。
handler 用单空格是有原因的:置空会退回 ffmpeg 的默认值 `VideoHandler`,等于没清。
见 `residue-map.md` 第 5 条。
---
## 选哪一档
| 场景 | 建议 |
| --- | --- |
| 发布前清掉自己的隐私信息 | `obs`(默认),够了 |
| 交付给客户、不想带自己的工具痕迹 | `bare` |
| 素材库归档,想要一致的元数据 | 任意一档,固定住就行 |
| 不确定 | `bare`——不写就不会错 |
---
## profile 不做的事
- **不写设备型号。** 不会往输出里填 `iPhone 15 Pro` 或任何相机型号。
- **不写 GPS。** 位置那道门判的是「必须不存在」,不是「伪造一个合理的坐标」。
- **不写作者、版权、账号。** 这些字段只会被清,不会被填。
profile 只碰三样东西:封装工具的痕迹、handler 名、创建时间。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |