Wii/GameCube videofile

application/octet-stream

Safe

Magic Bytes

Offset: 0
54 68 69 73 20 69 73 20

THP is a proprietary video and audio container format developed by Nintendo for the GameCube and Wii gaming consoles. It is primarily utilized for full-motion video sequences, cinematic cutscenes, and background loops within game software developed for these specific hardware platforms. Although it is now a legacy format replaced by modern standards, it remains safe for use and is frequently encountered in the context of retro gaming preservation and software emulation.

Extension

.thp

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .thp files in Python

Python
def is_thp(file_path: str) -> bool:
    """Check if file is a valid THP by magic bytes."""
    signature = bytes([0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20])
    with open(file_path, "rb") as f:
        return f.read(8) == signature

How to validate .thp files in Node.js

Node.js
function isTHP(buffer: Buffer): boolean {
  const signature = Buffer.from([0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20]);
  return buffer.subarray(0, 8).equals(signature);
}
Go
func IsTHP(data []byte) bool {
    signature := []byte{0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20}
    if len(data) < 8 {
        return false
    }
    return bytes.Equal(data[:8], signature)
}

API Endpoint

GET /api/v1/thp
curl https://filesignature.org/api/v1/thp

Related Formats