[PC] Ride 2 music files ( .ogg )

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Scar557
Posts: 31
Joined: Wed May 30, 2018 2:44 am

[PC] Ride 2 music files ( .ogg )

Post by Scar557 »

Hello,

I wanted to extract the full OST of Ride 2, since it is impossible to find rips online.

The files are .ogg, but doesn't seem to play anywhere, and i can't find anything about them.

Does anyone have a clue on how to extract them, or with what does these files were encoded ... ?

Here are some examples here :

https://drive.google.com/file/d/1xqItCY ... njKlx/view

https://drive.google.com/file/d/1_AQUY7 ... UOIay/view

https://drive.google.com/file/d/1-SY9Dm ... YBk73/view
GHOST DEAD
Posts: 218
Joined: Wed Jul 19, 2017 5:04 am

Re: [PC] Ride 2 music files ( .ogg )

Post by GHOST DEAD »

there is no any ogg header or ogg compression
GHOST DEAD
Posts: 218
Joined: Wed Jul 19, 2017 5:04 am

Re: [PC] Ride 2 music files ( .ogg )

Post by GHOST DEAD »

i think it's xored
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [PC] Ride 2 music files ( .ogg )

Post by aluigi »

Eh not so simple I guess.
All your samples start with a difference sequence of bytes which which that the "OggS" magic doesn't match.
It's strange that the first 2 bytes really look like a 16 bit field.
Maybe ogg is only the original extension but the content is a different codec, is it possible?
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Re: [PC] Ride 2 music files ( .ogg )

Post by Warthog1336 »

I must be dreaming. I tested all the GENH headers available and I don't hear any music when playing them!
Scar557
Posts: 31
Joined: Wed May 30, 2018 2:44 am

Re: [PC] Ride 2 music files ( .ogg )

Post by Scar557 »

Warthog1336 wrote:I must be dreaming. I tested all the GENH headers available and I don't hear any music when playing them!


That's why i'm starting to think it's encrypted or some shit, i got no experience with these but i'm pretty sure there is something really strange about these ones.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [PC] Ride 2 music files ( .ogg )

Post by aluigi »

It's a codec since I have seen the same data struct in the vags_eng*.zar files of SOCOM few minutes ago:
viewtopic.php?f=9&t=9251
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Re: [PC] Ride 2 music files ( .ogg )

Post by Warthog1336 »

I'm curious about those strange OGG so I'm asking: what's the link between SOCOM and this?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [PC] Ride 2 music files ( .ogg )

Post by aluigi »

Apparently no link since they are different developers and platforms.
I guess it's better if I move this topic in the Audio section for giving it more visibility (audio is not my field).
Let me know if that's ok for you.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [PC] Ride 2 music files ( .ogg )

Post by aluigi »

Wait, it's possible that they are raw vorbis chunks.
Probably I'm wrong but it may have sense since FMOD used something similar in the FSB archives.
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Re: [PC] Ride 2 music files ( .ogg )

Post by Warthog1336 »

Ride 2 is using FMOD
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Re: [PC] Ride 2 music files ( .ogg )

Post by Warthog1336 »

Found it: it's custom vorbis (OGG inside FSB5 container) 48000Hz
Scar557
Posts: 31
Joined: Wed May 30, 2018 2:44 am

Re: [PC] Ride 2 music files ( .ogg )

Post by Scar557 »

Warthog1336 wrote:Found it: it's custom vorbis (OGG inside FSB5 container) 48000Hz


Shieeet, thanks mane, do you know a way to play it ... ?
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Re: [PC] Ride 2 music files ( .ogg )

Post by Warthog1336 »

Sure, remove everything before "FSB5" (Hex Editor) in the MUSICS.BANK file, save to FSB and then use fsb_aud_extr (viewtopic.php?f=17&t=1901) on it to output WAV-converted music files.
Scar557
Posts: 31
Joined: Wed May 30, 2018 2:44 am

Re: [PC] Ride 2 music files ( .ogg )

Post by Scar557 »

Warthog1336 wrote:Sure, remove everything before "FSB5" (Hex Editor) in the MUSICS.BANK file, save to FSB and then use fsb_aud_extr (viewtopic.php?f=17&t=1901) on it to output WAV-converted music files.


Okay, i'll try that.

But doesn't that ruin the quality ... ?

I mean, .ogg is better than .wav in terms of capacity of quality, right ... ?
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Re: [PC] Ride 2 music files ( .ogg )

Post by Warthog1336 »

WAV PCM is lossless so it's certainly better than OGG (lossy)
Scar557
Posts: 31
Joined: Wed May 30, 2018 2:44 am

Re: [PC] Ride 2 music files ( .ogg )

Post by Scar557 »

Warthog1336 wrote:WAV PCM is lossless so it's certainly better than OGG (lossy)


It thought .wav stopped at 18 kHz or something.

I mean at least that's what i saw on some .wav files from multiple games.
Last edited by Scar557 on Sun Jan 13, 2019 10:08 pm, edited 1 time in total.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: [PC] Ride 2 music files ( .ogg )

Post by AnonBaiter »

there's also vgmstream to decode these fsb files
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Re: [PC] Ride 2 music files ( .ogg )

Post by Warthog1336 »

Right @AnonBaiter, @Scar557 just drag and drop your MUSICS.FSB (after removing everything before FSB5) and it will split the MUSICS.FSB into multiple OGG files which you can play.
Scar557
Posts: 31
Joined: Wed May 30, 2018 2:44 am

Re: [PC] Ride 2 music files ( .ogg )

Post by Scar557 »

Warthog1336 wrote:Right @AnonBaiter, @Scar557 just drag and drop your MUSICS.FSB (after removing everything before FSB5) and it will split the MUSICS.FSB into multiple OGG files which you can play.


Didn't worked by drag'n'drop so i used cmd.exe and it finally worked ( It extracted the files straight to .wav format, though ), thanks dude.