Files
SpineWallpaper/.scratch/wallpaper-optimization/issues/02-audio-and-image-size.md
T
Shuery 8ad177c822 docs: 优化工作台的 spec 与 6 个实施 issue(.scratch/wallpaper-optimization/)
按本仓 issue-tracker 约定落盘:spec.md 记决策与验收,issues/NN-*.md 一步一票。
01 已完成,02-06 待做。
2026-09-19 19:27:47 +08:00

25 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 02 体积:音频转码 + 未引用资源归位
Status: ready-for-agent
## 现状
- `dist` 合计 105.1 MB,其中音频占 77.3 MB:
- `昔涟立绘/audios/「再度和你」.flac` 37.3 MB / 205.1 s / 1.52 Mbps
- `昔涟立绘/audios/昔涟.flac` 37.7 MB / 186.7 s / 1.69 Mbps(此前零引用,现已声明为第二音源)
- `「成为昨日的明天」/audios/pv37.mp3` 2.3 MB / 81 s
- CEF 的解码白名单含 vorbis / libopus / flac / mp3 / pcm_*(不含 aac,`m4a` 大概率不可用)。
## 步骤
1. 无损母带移出 `dist/`(另存工作区外的 `masters/`,不入库)。
2. 两首 flac 转 Opus(`libopus`,约 96–128 kbps,目标每首 ≤4.5 MB):`ffmpeg -i in.flac -c:a libopus -b:a 112k out.ogg`。保留 `pv37.mp3` 原样。
3. 用工具的音频波形/时长核对转码未截断。
4. PNG → WebP **仅在对拍证明无可见差异后**逐张决定(atlas 页要整组一起转,并同步改 `.atlas` 里的页名)。
## 验收
- `dist` 总体积 ≤35 MB。
- `check-paths` 全绿;本地 curl 确认转码后的音频能播放(时长一致)。
- 每个比例的对拍像素无回归。