Opened 9 years ago

Last modified 4 years ago

#4478 new enhancement

PlayStation 2 movie files not supported (.pss)

Reported by: Joseph DeVore Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: mpegps adpcm
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I decided to dig out 2 of my
Sony PlayStation 2 games:

  • Suikoden 3
  • Suikoden 4

and extract the Movie (Opening/Closing)
I found some str.bin files as well but all the
movie files are .pss

I get FFmpeg builds from and use them with
http://ffmpeg.zeranoe.com/builds/
http://avanti.arrozcru.com/

OS used on:
DesktopPC -- Windows XP Professional x64
LaptopPC -- Windows 7 Ultimate x64

these files I could barely extract the Video.. but the audio was not getting even seen never-mind getting extracted..

Attachments (4)

EV50511.PSS (768.0 KB ) - added by Joseph DeVore 9 years ago.
PS2 game -- Suikoden 4
EV50405.PSS (1.2 MB ) - added by Joseph DeVore 9 years ago.
PS2 game -- Suikoden 4
EV50408.PSS (1.4 MB ) - added by Joseph DeVore 9 years ago.
PS2 game -- Suikoden 4
EV40701.PSS (1.8 MB ) - added by Joseph DeVore 9 years ago.
PS2 game -- Suikoden 4

Change History (33)

by Joseph DeVore, 9 years ago

Attachment: EV50511.PSS added

PS2 game -- Suikoden 4

by Joseph DeVore, 9 years ago

Attachment: EV50405.PSS added

PS2 game -- Suikoden 4

by Joseph DeVore, 9 years ago

Attachment: EV50408.PSS added

PS2 game -- Suikoden 4

by Joseph DeVore, 9 years ago

Attachment: EV40701.PSS added

PS2 game -- Suikoden 4

comment:1 by Joseph DeVore, 9 years ago

.pss files uploaded to
upload.ffmpeg.org/incoming/Ticket-4478_Suikoden3/
upload.ffmpeg.org/incoming/Ticket-4478_Suikoden4/

comment:2 by Carl Eugen Hoyos, 9 years ago

Keywords: mpegps atrac3 added; PlayStation 2 PS2 .pss removed
Priority: normalwish
Version: unspecifiedgit-master

comment:3 by Joseph DeVore, 9 years ago

while examining a .pss file in a text editor I found...

  • "encoded by TMPGEnc b12h"
  • Tsunami MPEG Encoder <-- Googled

comment:4 by Joseph DeVore, 8 years ago

Any updates?

comment:5 by Elon Musk, 8 years ago

The format is mpeg with strange audio packets, they should be raw pcm but they sounds distorted.

I'm analyzing 2 different applications PSS plex and PSS demux.

PSS Demux crashes inside wine, does it works fine otherwise on Windows?

in reply to:  5 comment:6 by Carl Eugen Hoyos, 8 years ago

Replying to richardpl:

The format is mpeg with strange audio packets, they should be raw pcm but they sounds distorted.

I thought this just needs an atrac parser, am I wrong?

comment:9 by Elon Musk, 8 years ago

Nope, files have PCM hidden in private stream of mpeg files.
Also it appears PCM is planar.
Additionaly it may have adpcm or adx or for psmf case atrac3.

Because they are PCM/ADPCM, there is nothing to parse AFAIK.

comment:10 by Carl Eugen Hoyos, 8 years ago

Thanks for the clarification!
Do you have code that plays something (with distortion)?

comment:11 by Elon Musk, 8 years ago

Nothing useful, it just set 0xff startcode to pcm planar.

comment:12 by Joseph DeVore, 8 years ago

thanks for taking a look at this =D

comment:13 by Joseph DeVore, 8 years ago

any new updates?

comment:14 by Joseph DeVore, 8 years ago

I will note that the current release of VLC Media Player v2.2.2
plays by 'drag and drop' the video animation ONLY and no audio...

in reply to:  14 ; comment:15 by Carl Eugen Hoyos, 8 years ago

Replying to Melchior:

I will note that the current release of VLC Media Player v2.2.2
plays by 'drag and drop' the video animation ONLY and no audio...

And this behaviour is different from which vlc (or FFmpeg) version?

in reply to:  15 comment:16 by Joseph DeVore, 8 years ago

Replying to cehoyos:

Replying to Melchior:

I will note that the current release of VLC Media Player v2.2.2
plays by 'drag and drop' the video animation ONLY and no audio...

And this behaviour is different from which vlc (or FFmpeg) version?

I don't know, I was just mentioning VLC could play the video stream.

using AvantiGUI (and using
ffmpeg version N-78410-g588e2e3 Copyright (c) 2000-2016 the FFmpeg developers
built on 13/02/2016 with gcc 5.3.0 (GCC)

I can play video only using the preview function

comment:17 by Carl Eugen Hoyos, 8 years ago

Both FFplay and FFmpeg (with current, old and very old versions) work fine here for the video in pss files.

in reply to:  17 comment:18 by Joseph DeVore, 8 years ago

Replying to cehoyos:

Both FFplay and FFmpeg (with current, old and very old versions) work fine here for the video in pss files.

so all that remains is to figure out the audio... good luck with it. :)

comment:19 by Joseph DeVore, 8 years ago

any further updates?
I am hoping some one will figure out how the audio works and get FFmpeg updated

comment:20 by Elon Musk, 8 years ago

Please refrain from pinging bug if you have nothing new to add.

comment:21 by Joseph DeVore, 8 years ago

ok sry

comment:22 by v0lt, 8 years ago

MPC-BE can decode the audio stream. See CMpaDecFilter::ProcessPS2ADPCM() in MpaDecFilter.cpp

Last edited 8 years ago by Carl Eugen Hoyos (previous) (diff)

comment:23 by Carl Eugen Hoyos, 8 years ago

Since this file's software license is the GPL, it would be better to describe what is needed to decode the samples.

comment:24 by Carl Eugen Hoyos, 8 years ago

Keywords: adpcm added; atrac3 removed

comment:25 by shiz, 8 years ago

cehoyos: You're thinking of the probably related PSMF format used on the PSP, which does use ATRAC3 in PRIVATE_STREAM_1 encoded packets. Also, I don't think editing out that link was really necessary. I can try taking a stab at this.

comment:26 by Joseph DeVore, 8 years ago

thx for the progress :)

EDIT:
any update Shiz?

EDIT2:
Still no updates? :(

EDIT3:
bumping it since it been soo long since it was last looked at :(
please try to get Sony PS2 audio support in FFmpeg (since video is already playable) ;_;

EDIT4:
Sorry for bumping again, at least if it does as I am not sure if editing a comment bumps it or not...

its been 11 months since I posted this comment..
and I have also noted that when trying to open PlayStation 1 .str vid files it give a depreciated bit of info in the cmdline that opens with the vid... please don't depreciated PlayStation 1 files and please get around to adding support for PlayStation 2 files

Last edited 7 years ago by Joseph DeVore (previous) (diff)

comment:27 by Elon Musk, 4 years ago

The audio codec inside this files is ADPCM_PSX, and it is encapsulated into ads (special ps2 audio container) stream (which can contain bunch of different audio codecs) and then muxed into mpegps.

in reply to:  27 comment:28 by Joseph DeVore, 4 years ago

Replying to richardpl:

The audio codec inside this files is ADPCM_PSX, and it is encapsulated into ads (special ps2 audio container) stream (which can contain bunch of different audio codecs) and then muxed into mpegps.

so what does that mean for FFmpeg? will you guys be able to support it some day or is it too complicated? :-(

comment:29 by Elon Musk, 4 years ago

Its not complicated, its just ugly.

Note: See TracTickets for help on using tickets.