upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorkaoru-maki <360422330+kaoru-maki@users.noreply.github.com>2026-11-25 02:04:57 +0300
committerkaoru-maki <360422330+kaoru-maki@users.noreply.github.com>2026-11-25 02:04:57 +0300
commitc8a4c9b7e5d412b2c86a1686fa0fe47e12aae15c (patch)
tree86973445af6ba152320442a6cafc405a3d070e04 /docs
parent6558d5318d0130b65eba9acfa408ce0ef23d86b5 (diff)
Document captions drawn into Bink video frames
Diffstat (limited to 'docs')
-rw-r--r--docs/text.md20
1 files changed, 18 insertions, 2 deletions
diff --git a/docs/text.md b/docs/text.md
index 4d07e3f97..946d07c90 100644
--- a/docs/text.md
+++ b/docs/text.md
@@ -1,8 +1,8 @@
1# Text: string tables and dialogue subtitles 1# Text: string tables and dialogue subtitles
2 2
3**Status: decoded.** Every string table the descriptor search finds in `data.rpf`, `story000.rpf` and 3**Status: decoded.** Every string table the descriptor search finds in `data.rpf`, `story000.rpf` and
4`shared_minigame000.rpf` is read, and every dialogue line is joined to its subtitles. Labels are stored only as 4`shared_minigame000.rpf` is read, and dialogue records are joined to their available GXT subtitles. Labels are stored
5hashes. Dialogue labels are named by the conversation data; other labels are named only when a dictionary holds them. 5only as hashes. Dialogue labels are named by the conversation data; other labels are named only when a dictionary holds them.
6The tables have no language field, so the language is a guess (below). 6The tables have no language field, so the language is a guess (below).
7 7
8Measured on the Xbox Series 1.0.2.1 package on 2026-11-22. The outputs quote game text, so they are local work 8Measured on the Xbox Series 1.0.2.1 package on 2026-11-22. The outputs quote game text, so they are local work
@@ -163,6 +163,22 @@ keys reuse another mission's lines, so a key's root and its labels' prefix can d
163 163
164About 7-12% of lines have no text in a given language: the label's hash is in none of that language's tables. 164About 7-12% of lines have no text in a given language: the label's hash is in none of that language's tables.
165 165
166### Captions drawn into video frames
167
168Some [Bink clips](movies.md) also contain English dialogue captions drawn into the image. A read-only audit of
169533 clips on Xbox Series 1.0.2.1 sampled video frames every 0.5 seconds and confirmed visible dialogue captions
170in 16 clips. A second pass on those clips sampled every two native frames (about 67 ms at 30 fps), for 3,929
171OCR samples. Visual review joined successive cards belonging to the same line and separated dialogue from overlays.
172
173The review reconstructed 81 complete caption occurrences. When compared with a local snapshot of 579,495
174English GXT entries, 42 were known text or reviewed variants, and 39 distinct complete lines across 13 clips
175had no corresponding text in that snapshot. The same 533 clips passed an independent final-frame check on the
176librempeg decoder. [Decoder revision and validation](https://github.com/librempeg/librempeg/pull/218#issuecomment-7146636607)
177
178Record the Bink stream identity, the source frame number used as evidence, and the first and last frames where
179the caption was observed. Derive clip-relative time from the source frame timing. The sampling interval limits
180the precision of the observed bounds. A GXT key or audio wave association requires independent evidence.
181
166## Tables and label names 182## Tables and label names
167 183
168`--labels` takes word lists or a `hashdict.py` JSON. Each table is then grouped by the longest `_`-prefix (up to three 184`--labels` takes word lists or a `hashdict.py` JSON. Each table is then grouped by the longest `_`-prefix (up to three