diff options
| author | kaoru-maki <360422330+kaoru-maki@users.noreply.github.com> | 2026-11-25 02:04:57 +0300 |
|---|---|---|
| committer | kaoru-maki <360422330+kaoru-maki@users.noreply.github.com> | 2026-11-25 02:04:57 +0300 |
| commit | c8a4c9b7e5d412b2c86a1686fa0fe47e12aae15c (patch) | |
| tree | 86973445af6ba152320442a6cafc405a3d070e04 /docs/text.md | |
| parent | 6558d5318d0130b65eba9acfa408ce0ef23d86b5 (diff) | |
Document captions drawn into Bink video frames
Diffstat (limited to 'docs/text.md')
| -rw-r--r-- | docs/text.md | 20 |
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 |
| 5 | hashes. Dialogue labels are named by the conversation data; other labels are named only when a dictionary holds them. | 5 | only as hashes. Dialogue labels are named by the conversation data; other labels are named only when a dictionary holds them. |
| 6 | The tables have no language field, so the language is a guess (below). | 6 | The tables have no language field, so the language is a guess (below). |
| 7 | 7 | ||
| 8 | Measured on the Xbox Series 1.0.2.1 package on 2026-11-22. The outputs quote game text, so they are local work | 8 | Measured 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 | ||
| 164 | About 7-12% of lines have no text in a given language: the label's hash is in none of that language's tables. | 164 | About 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 | |||
| 168 | Some [Bink clips](movies.md) also contain English dialogue captions drawn into the image. A read-only audit of | ||
| 169 | 533 clips on Xbox Series 1.0.2.1 sampled video frames every 0.5 seconds and confirmed visible dialogue captions | ||
| 170 | in 16 clips. A second pass on those clips sampled every two native frames (about 67 ms at 30 fps), for 3,929 | ||
| 171 | OCR samples. Visual review joined successive cards belonging to the same line and separated dialogue from overlays. | ||
| 172 | |||
| 173 | The review reconstructed 81 complete caption occurrences. When compared with a local snapshot of 579,495 | ||
| 174 | English GXT entries, 42 were known text or reviewed variants, and 39 distinct complete lines across 13 clips | ||
| 175 | had no corresponding text in that snapshot. The same 533 clips passed an independent final-frame check on the | ||
| 176 | librempeg decoder. [Decoder revision and validation](https://github.com/librempeg/librempeg/pull/218#issuecomment-7146636607) | ||
| 177 | |||
| 178 | Record the Bink stream identity, the source frame number used as evidence, and the first and last frames where | ||
| 179 | the caption was observed. Derive clip-relative time from the source frame timing. The sampling interval limits | ||
| 180 | the 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 |