PSS Video: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
 
(36 intermediate revisions by the same user not shown)
Line 13: Line 13:
// big endian
// big endian


// header (26 bytes)
4 bytes (uint32) - section ID  // 0x00 0x00 0x01 0xBA - pack_start_code
4 bytes (uint32) - section ID  // 0x00 0x00 0x01 0xBA - pack_start_code
                                // 0x00 0x00 0x01 0xBD - private_stream_1 (audio data)
22 bytes - unknown
2 bytes (uint16) - section size


x bytes - unknown
 
// ADS Audio stream = SpuStreamHeader + SpuStreamBody
// Note: Audio streams are optional
// Note: Audio structures are little endian
// Note: streams can be stored in different order
 
4 bytes (uint32) - section ID //  0x00 0x00 0x01 0xBD - private_stream_1 (audio data)
19 bytes - unknown


// SpuStreamHeader
// SpuStreamHeader
4 bytes (char) - signature // "SShd"
4 bytes (char) - signature // "SShd"
4 bytes (uint32) - struct size // 24
4 bytes (uint32) - struct size // 24
4 bytes (uint32) - type // 0 - 16bit big endian
4 bytes (uint32) - type // 0 - PCM 16bit big endian
                         // 1 - 16bit little endian
                         // 1 - PCM 16bit little endian
                         // 2 - SPU2-ADPCM (VAG)  
                         // 2 - SPU2-ADPCM (VAG)  
4 bytes (uint32) - sampling rate // e.g. 48000
4 bytes (uint32) - sampling rate // e.g. 48000
Line 34: Line 41:
4 bytes (char) - signature // "SSbd"
4 bytes (char) - signature // "SSbd"
4 bytes (uint32) - size of audio data
4 bytes (uint32) - size of audio data
x bytes - audio data


4 bytes (uint32) - header count // 1
x bytes - data streams
 
x bytes - MPEG2 video stream


// audio buffer
x bytes - audio data


x bytes - unknown
4 bytes (uint32) - padding ID?  // 0x00 0x00 0x01 0xBE
2 bytes (uint16) - unknown
x bytes - padding // 0xFF 0xFF 0xFF 0xFF...


4 bytes (uint32) - file end ID  // 0x00 0x00 0x01 0xB9 - MPEG_program_end_code
4 bytes (uint32) - file end ID  // 0x00 0x00 0x01 0xB9 - MPEG_program_end_code
Line 52: Line 62:
=== Notes and Comments ===  
=== Notes and Comments ===  


* Standard PlayStation 2 movie file format.
* Standard PlayStation 2 movie file format. It contains MPEG2 video data and PCM/ADPCM audio data.
* PSS extension stands for "'''P'''lay'''S'''tation '''S'''tream"
 
=== Games ===
List of games using this file format:
 
* Aliens Versus Predator: Extinction (PS2) (*.PSS)
* PK: Out of the Shadows (PS2) (*.PSS)
* Midnight Club II (PS2) (*.PSS)
* Many more...


=== Compatible Programs ===  
=== Compatible Programs ===  


* foobar2000 + vgmstream plugin (for playing audio only)
* [https://www.zophar.net/utilities/ps2util/pss-plex.html PSSPlex]
* [https://www.zophar.net/utilities/ps2util/pss-plex.html PSSPlex]
* [https://www.zophar.net/utilities/ps2util/pss-demux.html PSS Demux]
* [https://www.zophar.net/utilities/ps2util/pss-demux.html PSS Demux]
Line 80: Line 100:




[[Category:Complete WIP|PSS]]
[[Category:Complete Almost Done|PSS Video]]
[[Category:Platform PS2|PSS]]
[[Category:Platform PS2|PSS Video]]
[[Category:CE None|PSS]]
[[Category:CE None|PSS Video]]
[[Category:Format_Video | Type: Video]]
[[Category:Format_Video | Type: Video]]
[[Category:Extension_pss | Extension: pss]]
[[Category:Extension_pss | Extension: pss]]
[[Category:BMS_None | BMS: None]]
[[Category:BMS_None | BMS: None]]
[[Category:File Format]]
[[Category:File Format]]

Latest revision as of 12:13, 20 December 2022

PSS


Format Specifications

// PS2 Video 
// PSS file format

// big endian

// header (26 bytes)
4 bytes (uint32) - section ID   // 0x00 0x00 0x01 0xBA - pack_start_code
22 bytes - unknown


// ADS Audio stream = SpuStreamHeader + SpuStreamBody
// Note: Audio streams are optional
// Note: Audio structures are little endian
// Note: streams can be stored in different order

4 bytes (uint32) - section ID //  0x00 0x00 0x01 0xBD - private_stream_1 (audio data)
19 bytes - unknown

// SpuStreamHeader
4 bytes (char) - signature // "SShd"
4 bytes (uint32) - struct size // 24
4 bytes (uint32) - type // 0 - PCM 16bit big endian
                        // 1 - PCM 16bit little endian
                        // 2 - SPU2-ADPCM (VAG) 
4 bytes (uint32) - sampling rate // e.g. 48000
4 bytes (uint32) - number of channels  // e.g. 2
4 bytes (uint32) - interleave size // has to be 512
4 bytes (uint32) - loop start block address
4 bytes (uint32) - loop end block sddress

// SpuStreamBody
4 bytes (char) - signature // "SSbd"
4 bytes (uint32) - size of audio data
x bytes - audio data

x bytes - data streams

x bytes - MPEG2 video stream


4 bytes (uint32) - padding ID?  // 0x00 0x00 0x01 0xBE
2 bytes (uint16) - unknown
x bytes - padding // 0xFF 0xFF 0xFF 0xFF...

4 bytes (uint32) - file end ID  // 0x00 0x00 0x01 0xB9 - MPEG_program_end_code

MultiEx BMS Script

Not written yet.

Notes and Comments

  • Standard PlayStation 2 movie file format. It contains MPEG2 video data and PCM/ADPCM audio data.
  • PSS extension stands for "PlayStation Stream"

Games

List of games using this file format:

  • Aliens Versus Predator: Extinction (PS2) (*.PSS)
  • PK: Out of the Shadows (PS2) (*.PSS)
  • Midnight Club II (PS2) (*.PSS)
  • Many more...

Compatible Programs

See Also

Gallery