Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Psy-X] Playstation MDEC and ADPCM XAs support #3

Open
SoapyMan opened this issue Nov 3, 2020 · 6 comments
Open

[Psy-X] Playstation MDEC and ADPCM XAs support #3

SoapyMan opened this issue Nov 3, 2020 · 6 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@SoapyMan
Copy link
Contributor

SoapyMan commented Nov 3, 2020

Right now STR and XA files are converted from Playstation formats to simpler formats using JPSXDec software.

STR FMVs are converted to AVI files with MJPG encoding.
XAs are converted to WAV files.

Game needs to have both original files and converted to be supported.

@SoapyMan SoapyMan added enhancement New feature or request help wanted Extra attention is needed labels Nov 3, 2020
@DonelBueno
Copy link

I'm trying to upscale the FMVs, do you know if there is a perceivable loss in quality from JPSXDec's conversion? Do you know if I can change the conversion settings in JPSXDec?

Also, the audio file in the converted FMVs is just 18.9 kHz in sampling rate, is this the original sample rate?

BTW, thanks for the amazing project, great work.

@SoapyMan SoapyMan changed the title Ability to use Playstation (STR) FMVs and ADPCM XAs [Psy-X] Playstation MDEC and ADPCM XAs support Nov 20, 2020
@DonelBueno
Copy link

DonelBueno commented Nov 21, 2020

I've upscaled the first FMV as a test and here is the result:

https://drive.google.com/file/d/1b0YBgT34NpG_B2PzNOxxcm7MrmQ_1ItU/view?usp=sharing

I still have to add the audio back. Basically what I did was:

  • Dump frames with FFMPEG
  • Filter all frames with ESRGAN (JPEG 20-40 model)
  • Assemble the frames back with FFMPEG
  • Upscale with Topaz Video Enhance AI (Gaia-HQ v5, 1920x1080, no cropping, mp4)

It looks much cleaner (less artifacting, macroblocking) than just upscaling with Topaz and still has a decent amount of preserved detail.

@SoapyMan What audio/video codecs and container REDRIVER2 supports?

@SoapyMan
Copy link
Contributor Author

@DonelBueno hey! Nice job, that looks good!
Right now codecs it does only support are mjpeg and wav in avi container because I'm still learning how to implement libavcodec/libavformat into it.

@DonelBueno
Copy link

Thanks =)

Oh, good luck on that, I would help if I had the knowledge.

@The-King-of-Toasters
Copy link

The-King-of-Toasters commented May 25, 2021

Instead of embedding libav, it might be worth looking at pl_mpeg. Disregard, as I realise that the FMV are encoded using MDEC and not MPEG-1.

@DEEJAY33
Copy link

Şu anda STR ve XA dosyaları, JPSXDec yazılımı kullanılarak Playstation formatlarından daha basit formatlara dönüştürülmektedir.

STR FMV'ler, MJPG kodlaması ile AVI dosyalarına dönüştürülür. XA'lar WAV dosyalarına dönüştürülür.

Oyunun desteklenebilmesi için hem orijinal dosyalara sahip olması hem de dönüştürülmüş olması gerekir.

hi.
i converted ps4 xvag files to wav file with vgmstream. now i can't convert these files to "ps3" xvag format.the game name uncharted2 .I have more than 17k files. How can I batch convert them to ps3 xvag format ?
please help me i have been trying to solve this problem for weeks..
i m not developer but I m interested in these kinds of things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants