Falsebound Archive
6 Formats 6.3

Movies (THP)

The THP movie format, and how the game plays its one movie.

Where
Movie/fka_opmv.thp
Format
THP 1.0 (Nintendo’s movie format), ADPCM audio
Opening movie
640 × 480, 1,024 frames, 32 kHz stereo, 21,558,552 bytes

The file

A THP 1.0 file starts with a 0x30-byte header: version, buffer sizes, frame rate as a float, frame count and offsets. A component table follows, then the video information (width and height) and the audio information (channels, frequency, sample count). Each frame begins with the size of the next frame, the size of the previous frame and one size per component (video, then audio). Headers are big-endian.

How the game plays it

The game plays one movie, fka_opmv.thp, the opening, after the title jingle; START skips it from movie frame 240. A separate thread opens the file and prefetches up to 20 frames from the disc. One video frame is decoded per game tick (two screen refreshes); the frame rate in the file’s header (29.97) is not read. Decoding waits while the six-slot audio ring still holds unplayed sound. The picture is drawn as a quad from its Y, U and V planes through four texture stages; the audio is mixed into the sound driver’s output buffers every 5 milliseconds.

The movie table has only that one entry. The disc’s second movie, fka_trial.thp, a trailer, is never opened (files never read).

Evidence

The movie player and its frame and audio handling are part of the decompiled code; the numbers come from the file’s header.