Format:PSF1 and minipsf (PlayStation Sound Format)
| Platforms | Platform:PlayStation |
|---|---|
| Magic | 50 53 46 01 (PSF, 1) |
| Endianness | little |
| On this wiki | Facts · Code · Notes · Topics |
The PSF container used to rip PlayStation music: magic 'PSF' and version 1, a reserved area, a zlib-compressed PS-X EXE and an optional [TAG] block; minipsf files carry only a small driver state and name their library file in the `_lib` tag.
Overview
PSF1 files (.psf, .minipsf, with _lib files named .psflib) are not the same thing as the PSF of Format:PSF (PARAM.SFO). A PSF1 packs a PlayStation executable together with tags so that a player can emulate the sound hardware only.
Layout as PCSX-Redux reads it
PCSX-Redux src/supportpsx/binloader.cc (MIT), function loadPSF:
| Offset | Size | Field |
|---|---|---|
| 0 | 4 | magic 0x01465350 (50 53 46 01)
|
| 4 | 4 | R: size of the reserved area |
| 8 | 4 | N: size of the compressed program |
| 0x0C | 4 | C: CRC field (read, not checked by that loader) |
| 0x10 | R | reserved area |
| 0x10+R | N | zlib-compressed Format:PS-X EXE |
| after | 5 | optional [TAG] followed by text lines key=value
|
Tags the loader uses: _lib (a library PSF loaded first, in the same directory), _lib2, _lib3... (more libraries, loaded after), and refresh (50 means PAL, 60 NTSC). A minipsf's own EXE header carries a placeholder entry point, so the loader keeps the program counter and stack from the first executable it loaded (see the comment above loadPSEXE).
Unverified: the precise PSF specification (CRC of the compressed program, tag encoding as UTF-8, length/fade tags) is only described here from the loader behaviour; check the psf specification text.
Code & repositories
- https://github.com/grumpycoders/pcsx-redux @
e58d0892c8e824bd7d5da847290f6811331215e5· license: GPL-2.0-or-later (declared by the contributor for the files used; GitHub reports GPL-2.0 for the repository)
PlayStation emulator and tooling (GPL-2.0 overall; the files read, src/supportpsx/binloader.cc, carry the MIT license): the loaders for PS-X EXE, CPE and PSF files.
Tested on: source read, not run: source read, not run: binloader.cc read from a raw file · checked 2026-10-18; last activity 2026-10-18