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:
authorMoonEyes <ducoinbenjamin@yahoo.fr>2026-11-28 22:52:45 +0100
committerGitHub <noreply@github.com>2026-11-28 22:52:45 +0100
commitea90aabfc456984978abf0d7b72bfbdc617f7e2e (patch)
treec4c6b9bb044aed5fef56619502cc1c41dbe4effe /docs
parente4933c33d86e3dc5d0e8477f276992f05c35c346 (diff)
parent77df8717a78f1595c77ba0ae273f14a8b2151322 (diff)
Merge pull request #1022 from klikso/carry/old-10040-bink-index-validate
OLD-10040: bink_index: validate frame offsets within each stored stream
Diffstat (limited to 'docs')
-rw-r--r--docs/movies.md14
1 files changed, 11 insertions, 3 deletions
diff --git a/docs/movies.md b/docs/movies.md
index 02d23c18b..a72a53044 100644
--- a/docs/movies.md
+++ b/docs/movies.md
@@ -90,9 +90,17 @@ The audio flag bits verified against FFmpeg's demuxer are `0x4000` (prefer 16-bi
90All 229 are therefore Bink Audio DCT, stereo, 48 kHz by the header's own description. That does not prove the 90All 229 are therefore Bink Audio DCT, stereo, 48 kHz by the header's own description. That does not prove the
91decoder output format or that every track is used by the game. 91decoder output format or that every track is used by the game.
92 92
93The frame index is not read by `bink_index.py`: its length depends on the frame count, and the index is not needed 93To check the frame index, run `python -I tools/bink_index.py <archive.rpf> --validate-frames`. The indexer skips
94to inventory the stream. `rpf9_carve.py` advances by the stored size instead, which is why it can carve without 94the revision-specific header and the 12 descriptor bytes per audio track, then reads one offset per frame. After
95parsing the index. 95masking the keyframe bit, each offset must follow the complete table, fall inside the stored stream and increase
96strictly from the preceding offset. The first frame can start immediately after the table. Validation stops at the
97first bad table or unsupported revision and exits with status 2 before writing a report. A successful run reports
98the number of frame offsets checked. This checks frame boundaries without decoding video or audio. The default
99inventory and `rpf9_carve.py` can still advance by stored stream size alone.
100
101On 2026-11-23, all 22 RPF archives matched the 1.0.2.1 manifest by size and SHA-256. Four contained indexed
102Bink 2 streams. The validator checked **683,552 frame offsets across all 797 streams** (787 revision `n`, 10
103revision `j`), with no table failures. This count covers streams the indexer found directly in the archives.
96 104
97## 3. How the streams are found 105## 3. How the streams are found
98 106