OpenDriver2 / REDRIVER2

Driver 2 Playstation game reverse engineering effort
MIT License
1.04k stars 61 forks source link

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

Open SoapyMan opened 3 years ago

SoapyMan commented 3 years ago

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.

DonelBueno commented 3 years ago

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.

DonelBueno commented 3 years ago

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:

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 commented 3 years ago

@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 commented 3 years ago

Thanks =)

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

The-King-of-Toasters commented 3 years ago

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 commented 2 years ago

Ş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.