Join also our Discord channel! Click here.

Project IGI sound file .ILSF Decode and encode

Get help on any and all audio formats, or chip in and help others!
Post Reply
rkthelegend
beginner
Posts: 24
Joined: Wed Jun 20, 2018 4:58 pm
Has thanked: 1 time
Been thanked: 3 times

Project IGI sound file .ILSF Decode and encode

Post by rkthelegend » Sun Dec 01, 2019 10:24 am

Hello Everyone!
I know this topic may look funny but for me its very important.
Here is Some .Wav sound files from #Project_IGI/
I think that they are PCM wav or maybe MP3 but they encrypted them with a header and the header first 16 looks like this _ ILSF........"V.. _ can anyone make a small program to encrypt and decrypt these files?
a am attaching the samples here.

please help me its very important for me.
You do not have the required permissions to view the files attached to this post.

User avatar
DKDave
mega-veteran
mega-veteran
Posts: 200
Joined: Mon May 06, 2019 6:07 pm
Has thanked: 2 times
Been thanked: 71 times

Re: Project IGI sound file .ILSF Decode and encode

Post by DKDave » Sun Dec 01, 2019 12:43 pm

I'm not sure how to re-encode them (maybe FFMPEG?), but the audio is Interleaved DVI 4-Bit IMA ADPCM. The actual audio data starts at offset 0x14, so you can use GENH in VGMToolbox to create playable files. The header seems to be as follows:

0x00 "ILSF"
0x04 Version?
0x06 Interleave value?
0x08 Channels
0x0A ??
0x0C Sample rate
0x10 Number of samples
0x14 Audio data
"Each person is born with their fate written into their own genetic code. It's unchangeable, immutable. But that's not all there is to life." - Dr. Naomi Hunter

Pingu
veteran
Posts: 116
Joined: Sat Apr 16, 2016 3:15 am
Has thanked: 5 times
Been thanked: 24 times

Re: Project IGI sound file .ILSF Decode and encode

Post by Pingu » Sun Dec 01, 2019 9:41 pm

DKDave wrote:
Sun Dec 01, 2019 12:43 pm
I'm not sure how to re-encode them (maybe FFMPEG?), but the audio is Interleaved DVI 4-Bit IMA ADPCM. The actual audio data starts at offset 0x14, so you can use GENH in VGMToolbox to create playable files. The header seems to be as follows:

0x00 "ILSF"
0x04 Version?
0x06 Interleave value?
0x08 Channels
0x0A ??
0x0C Sample rate
0x10 Number of samples
0x14 Audio data
The uint16 value at 0x6 is not an interleave value with the samples provided. Channels are stored at 0x8 uint32, not uint16, removing the unknown value at 0xA. Maybe if there was stereo file would there be interleave, but it is mono.

Attached is an even easier method than using GENH, using the TXTH function of vgmstream:
ilsf_txth.7z
For this you will need foobar2000 with the vgmstream component:
http://foobar2000.org

For some reason, txth sometimes fails with me and foobar, so just get the actual vgmstream with test.exe in case:

https://github.com/losnoco/vgmstream/releases


Rename those wavs to *.ilsf , and drag and drop them in the same folder as "test.exe". Also drag the TXTH in the same folder as "test.exe". Make sure it is named

Code: Select all

.ilsf.txth
and not just

Code: Select all

ilsf.txth
You need the "." in front, or else the function will not work. Happy decoding. As for encoding, I'd check FFMPEG out, not sure if it supports DVI4 though
You do not have the required permissions to view the files attached to this post.

rkthelegend
beginner
Posts: 24
Joined: Wed Jun 20, 2018 4:58 pm
Has thanked: 1 time
Been thanked: 3 times

Re: Project IGI sound file .ILSF Decode and encode

Post by rkthelegend » Wed Jun 03, 2020 9:57 pm

Big thank to you bro you really helped me figure it.

i managed to decode and encode the sound file and it worked perfectly but needed little hard word.

i used a software called brain and it did the job.

no need for vgm toolbox or vgm stream.


tnx again

Post Reply